CVE-2025-8058 json
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.
published 2025-07-23 15 mo ago modified 2026-06-17 4 mo ago also EUVD-2025-22469
- cvss
- 5.9
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 13%
- public exploits
- 0
- none known
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.
Patch / fix
- The GNU C Library glibc 2.42
- glibc Debian 12 2.36-9+deb12u13
- glibc Debian 14, Debian 13 2.41-11
debian advisories DEBIAN-CVE-2025-8058
- glibc Ubuntu 22.04 LTS 2.35-0ubuntu3.11
- glibc Ubuntu 24.04 LTS 2.39-0ubuntu8.6
- glibc Ubuntu Pro 16.04 LTS 2.23-0ubuntu11.3+esm9
- glibc Ubuntu Pro 18.04 LTS 2.27-3ubuntu1.6+esm6
- glibc Ubuntu Pro 20.04 LTS 2.31-0ubuntu9.18+esm1
ubuntu advisories UBUNTU-CVE-2025-8058
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- glibc RHEL 10.0 2.39-46.el10_0
- libnsl RHEL 10.0 2.39-46.el10_0
- nss_db RHEL 10.0 2.39-46.el10_0
- nss_hesiod RHEL 10.0 2.39-46.el10_0
- glibc-utils RHEL 10.0 2.39-46.el10_0
- glibc-common RHEL 10.0 2.39-46.el10_0
- glibc-benchtests RHEL 10.0 2.39-46.el10_0
- glibc-gconv-extra RHEL 10.0 2.39-46.el10_0
red hat advisories RHSA-2025:13240RHSA-2025:12980RHSA-2025:12748
- glibc SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +9 more 2.31-150300.98.1
- glibc Linux Micro 6.1 2.38-slfo.1.1_6.1
- glibc Linux Micro 6.0 2.38-11.1
- glibc SLE Module for Development Tools 15 SP7, SLE Module for Development Tools 15 SP6, SLE Module for Basesystem 15 SP7 +2 more 2.38-150600.14.37.1
- glibc SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 2.22-114.43.1
suse advisories SUSE-SU-2026:0896-1SUSE-SU-2026:20536-1SUSE-SU-2026:0680-1SUSE-SU-2026:20527-1SUSE-SU-2025:02964-1
- glibc openSUSE Tumbleweed 2.42-1.1
opensuse advisories openSUSE-SU-2025:15459-1
- glibc AlmaLinux 8 2.28-251.el8_10.25
- nscd AlmaLinux 8 2.28-251.el8_10.25
- libnsl AlmaLinux 8 2.28-251.el8_10.25
- nss_db AlmaLinux 8 2.28-251.el8_10.25
- nss_hesiod AlmaLinux 8 2.28-251.el8_10.25
- glibc-utils AlmaLinux 8 2.28-251.el8_10.25
- glibc-common AlmaLinux 8 2.28-251.el8_10.25
- glibc-benchtests AlmaLinux 8 2.28-251.el8_10.25
almalinux advisories ALSA-2025:12980
- glibc Rocky Linux 9 2.34-168.el9_6.23
- glibc Rocky Linux 10 2.39-46.el10_0
- glibc Rocky Linux 8 2.28-251.el8_10.25
rocky linux advisories RLSA-2025:12748RLSA-2025:13240RLSA-2025:12980
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-8058 updated cvss 4.2
glibc: Double free in glibc
-
Red Hat Enterprise Linux 6 nscd, glibc, nss_db, glibc-utils, compat-glibc, glibc-common Red Hat Enterprise Linux 7 nscd, glibc, glibc-utils, compat-glibc, glibc-common Red Hat OpenShift Container Platform 4 openshift/ose-rhel-coreos-8, openshift/ose-rhel-coreos-9affected: workaround, no fix available “Fix deferred”
-
Red Hat Ceph Storage 7 rhcephfixed: vendor fix RHSA-2025:22529
-
Red Hat Discovery 2 discovery 2.1.0-1755553939fixed: vendor fix RHSA-2025:14186
-
Red Hat Enterprise Linux AppStream (v. 8) glibc-utils 2.28-251.el8_10.25, compat-libpthread-nonshared 2.28-251.el8_10.25fixed: vendor fix RHSA-2025:12980
-
Red Hat Enterprise Linux AppStream (v. 9) glibc-utils 2.34-168.el9_6.23, glibc-locale-source 2.34-168.el9_6.23fixed: vendor fix RHSA-2025:12748
-
Red Hat Enterprise Linux AppStream (v. 10) glibc-utils 2.39-46.el10_0, glibc-locale-source 2.39-46.el10_0fixed: vendor fix RHSA-2025:13240
-
Red Hat Enterprise Linux BaseOS (v. 8) nscd 2.28-251.el8_10.25, glibc 2.28-251.el8_10.25, libnsl 2.28-251.el8_10.25, nss_db 2.28-251.el8_10.25, glibc-common 2.28-251.el8_10.25, glibc-gconv-extra 2.28-251.el8_10.25, +3 morefixed: vendor fix RHSA-2025:12980
-
Red Hat Enterprise Linux BaseOS (v. 9) nscd 2.34-168.el9_6.23, glibc 2.34-168.el9_6.23, libnsl 2.34-168.el9_6.23, glibc-common 2.34-168.el9_6.23, glibc-gconv-extra 2.34-168.el9_6.23, glibc-all-langpacks 2.34-168.el9_6.23, +1 morefixed: vendor fix RHSA-2025:12748
show 7 moreshow fewer
-
Red Hat Enterprise Linux BaseOS (v. 10) glibc 2.39-46.el10_0, libnsl 2.39-46.el10_0, glibc-common 2.39-46.el10_0, glibc-gconv-extra 2.39-46.el10_0, glibc-all-langpacks 2.39-46.el10_0, glibc-minimal-langpack 2.39-46.el10_0fixed: vendor fix RHSA-2025:13240
-
Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) nss_db 2.34-168.el9_6.23, nss_hesiod 2.34-168.el9_6.23, glibc-benchtests 2.34-168.el9_6.23fixed: vendor fix RHSA-2025:12748
-
Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) nss_db 2.39-46.el10_0, nss_hesiod 2.39-46.el10_0, glibc-benchtests 2.39-46.el10_0fixed: vendor fix RHSA-2025:13240
-
Red Hat Enterprise Linux CRB (v. 8) nss_hesiod 2.28-251.el8_10.25, glibc-benchtests 2.28-251.el8_10.25fixed: vendor fix RHSA-2025:12980
-
Red Hat Insights proxy 1.5 insights-proxy 1.5.5-1754504343fixed: vendor fix RHSA-2025:13335
-
Red Hat OpenShift distributed tracing 3.5.3 rhosdt rhosdt-3.5-1754559651, rhosdt rhosdt-3.5-1754559657, rhosdt rhosdt-3.5-1754559660, rhosdt rhosdt-3.5-1754559663, rhosdt rhosdt-3.5-1754559691, rhosdt rhosdt-3.5-1754559845, +2 morefixed: vendor fix RHSA-2025:13622
-
Red Hat Ceph Storage 7 rhceph Red Hat Discovery 2 discovery 2.1.0-1755621568not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-25-072-03 updated cvss 7.0
Siemens SIMATIC S7-1500 TM MFP
-
Siemens SIMATIC S7-1500 TM MFP - BIOSaffected: workaround, no fix available
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 15 mo ago
Exploit prediction
0.22% chance of exploitation in the next 30 days, higher than 13% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 5.9 | 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 |
| CNA | 4.0 | 5.9 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected products
- The GNU C Library glibc
Classification
- Weakness
-
- CWE-415 Double Free
References
Sources
- CVE List CVE-2025-8058
- NVD CVE-2025-8058
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.