CVE-2025-8058

Publication date 23 July 2025

Last updated 16 October 2026


Ubuntu priority

Description

The regcomp function in the GNU C library version from 2.4 to 2.41 is subject to a double free if some previous allocation fails. It can be accomplished either by a malloc failure or by using an interposed malloc that injects random malloc failures. The double free can allow buffer manipulation depending of how the regex is constructed. This issue affects all architectures and ABIs supported by the GNU C library.

Status

Package Ubuntu Release Status
glibc 26.10 stonking
Not affected
26.04 LTS resolute
Not affected
25.10 questing
Not affected
25.04 plucky
Fixed in 2.41-6ubuntu1.2
24.04 LTS noble
Fixed in 2.39-0ubuntu8.6
22.04 LTS jammy
Fixed in 2.35-0ubuntu3.11
20.04 LTS focal
Fixed in 2.31-0ubuntu9.18+esm1
18.04 LTS bionic
Fixed in 2.27-3ubuntu1.6+esm6
16.04 LTS xenial
Fixed in 2.23-0ubuntu11.3+esm9
eglibc 26.10 stonking Not in release
26.04 LTS resolute Not in release
25.10 questing Not in release
25.04 plucky Not in release
24.04 LTS noble Not in release
22.04 LTS jammy Not in release
14.04 LTS trusty
Needs evaluation

Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

Get Ubuntu Pro 30-day free trial

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
glibc

Severity score breakdown

CVSS version: CVSS v4.0

Base score 5.9 · Medium

Vector: CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:P/VC:L/VI:L/VA:H/SC:L/SI:L/SA:H

References

Related Ubuntu Security Notices (USN)

    • USN-7760-1
    • GNU C Library vulnerability
    • 22 September 2025
    • USN-8005-1
    • GNU C Library vulnerabilities
    • 3 February 2026

Other references


Access our resources on patching vulnerabilities