Double free in GNU glibc
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Passive
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · High
- Fix status
- Partial Red Hat: 13 fixed, 3 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA glibc (The GNU C Library) Fixed in 2.42
Red Hat 7 advisories
- RHSA-2025:22529 Released 2025-12-01 · Red Hat rating ImportantRed Hat Ceph Storage
- Red Hat Ceph Storage 7 registry.redhat.io/rhceph/rhceph-7-rhel9
- RHSA-2025:14186 Released 2025-08-20 · Red Hat rating ModerateA Subscription Management tool for finding and reporting Red Hat product usage
- Red Hat Discovery 2 registry.redhat.io/discovery/discovery-server-rhel9
- RHSA-2025:13622 Released 2025-08-11 · Red Hat rating ImportantRed Hat OpenShift distributed tracing platform (Jaeger) 3.5.2 release
- Red Hat OpenShift distributed tracing 3.5.3 registry.redhat.io/rhosdt/jaeger-agent-rhel8, registry.redhat.io/rhosdt/jaeger-all-in-one-rhel8, registry.redhat.io/rhosdt/jaeger-collector-rhel8 +6
Show 4 more Red Hat advisories
- RHSA-2025:13335 Released 2025-08-07 · Red Hat rating ImportantInsights proxy Container Image
- Red Hat Insights proxy 1.5 registry.redhat.io/insights-proxy/insights-proxy-container-rhel9
- RHSA-2025:13240 Released 2025-08-06 · Red Hat rating Moderateglibc security update
- Red Hat Enterprise Linux AppStream (v. 10) glibc-devel-2.39-46.el10_0, glibc-doc-2.39-46.el10_0, glibc-locale-source-2.39-46.el10_0 +1
- Red Hat Enterprise Linux BaseOS (v. 10) glibc-2.39-46.el10_0, glibc-all-langpacks-2.39-46.el10_0, glibc-common-2.39-46.el10_0 +47
- Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) glibc-benchtests-2.39-46.el10_0, glibc-nss-devel-2.39-46.el10_0, glibc-static-2.39-46.el10_0 +2
- RHSA-2025:12980 Released 2025-08-05 · Red Hat rating Moderateglibc security update
- Red Hat Enterprise Linux AppStream (v. 8) compat-libpthread-nonshared-2.28-251.el8_10.25, glibc-utils-2.28-251.el8_10.25
- Red Hat Enterprise Linux BaseOS (v. 8) glibc-2.28-251.el8_10.25, glibc-all-langpacks-2.28-251.el8_10.25, glibc-common-2.28-251.el8_10.25 +47
- Red Hat Enterprise Linux CRB (v. 8) glibc-benchtests-2.28-251.el8_10.25, glibc-nss-devel-2.28-251.el8_10.25, glibc-static-2.28-251.el8_10.25 +1
- RHSA-2025:12748 Released 2025-08-04 · Red Hat rating Moderateglibc security update
- Red Hat Enterprise Linux AppStream (v. 9) glibc-devel-2.34-168.el9_6.23, glibc-doc-2.34-168.el9_6.23, glibc-headers-2.34-168.el9_6.23 +2
- Red Hat Enterprise Linux BaseOS (v. 9) glibc-2.34-168.el9_6.23, glibc-all-langpacks-2.34-168.el9_6.23, glibc-common-2.34-168.el9_6.23 +47
- Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) glibc-benchtests-2.34-168.el9_6.23, glibc-nss-devel-2.34-168.el9_6.23, glibc-static-2.34-168.el9_6.23 +2
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 7 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet: Fix deferred |
| Red Hat Ceph Storage 7 | Fixed | RHSA-2025:22529 |
| Red Hat Discovery 2 | Fixed | RHSA-2025:14186 |
| Red Hat Enterprise Linux AppStream (v. 10) | Fixed | RHSA-2025:13240 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2025:12980 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2025:12748 |
| Red Hat Enterprise Linux BaseOS (v. 10) | Fixed | RHSA-2025:13240 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2025:12980 |
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2025:12748 |
| Red Hat Enterprise Linux CRB (v. 8) | Fixed | RHSA-2025:12980 |
| Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) | Fixed | RHSA-2025:13240 |
| Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) | Fixed | RHSA-2025:12748 |
| Red Hat Insights proxy 1.5 | Fixed | RHSA-2025:13335 |
| Red Hat OpenShift distributed tracing 3.5.3 | Fixed | RHSA-2025:13622 |
Not affected: 2 products
- Red Hat Ceph Storage 7
- Red Hat Discovery 2
Timeline
- 2026-10-02 Threatist record created from CVE-2025-8058
- 2026-10-03 Alias added: GHSA-8xjp-c72j-67q8
References
More GNU vulnerabilities
- TI-2026-19388 telnetd in GNU Inetutils through 2.7 allows remote authentication bypass via a "-f root"… KEVCVSS 3.1CRITICAL 9.8
- TI-2014-05975 GNU Bash through 4.3 bash43-025 processes trailing strings after certain malformed… KEVCVSS 3.1CRITICAL 9.8
- TI-2014-05157 GNU Bash through 4.3 processes trailing strings after function definitions in the values… KEVCVSS 3.1CRITICAL 9.8
- TI-2014-05164 GNU Bash through 4.3 bash43-026 does not properly parse function definitions in the… KEVCVSS 3.1HIGH 8.8
- TI-2023-04522 Glibc: buffer overflow in ld.so leading to privilege escalation KEVCVSS 3.1HIGH 7.8
- TI-2009-03392 The TLS protocol, and the SSL protocol 3.0 and possibly earlier, as used in Microsoft… CVSS 3.1CRITICAL 9.8
Sources
- CVE-2025-8058 · CVE Program
- CVE-2025-8058 · NVD
- FIRST EPSS
- GHSA-8xjp-c72j-67q8 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-8058 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences