cve.bz

CVE-2025-8058 the gnu c library glibc: Double Free

5.9 mediumEPSS 0.2%

Medium (5.9) in the gnu c library glibc. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

5.9 medium
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
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 13th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-07-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-415 Double Free
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-8058 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-8058?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-8058?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-8058 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
The GNU C Library glibcfrom 2.4 before 2.42

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11glibc2.31-13+deb11u14DLA-4621-1
Debian12glibc2.36-9+deb12u13DEBIAN-CVE-2025-8058
Debian13, 14glibc2.41-11DEBIAN-CVE-2025-8058
Ubuntu22.04:LTSglibc2.35-0ubuntu3.11UBUNTU-CVE-2025-8058 USN-7760-1
Ubuntu24.04:LTSglibc2.39-0ubuntu8.6UBUNTU-CVE-2025-8058 USN-7760-1
UbuntuPro:14.04:LTSeglibcno fix listedUBUNTU-CVE-2025-8058
UbuntuPro:16.04:LTSglibc2.23-0ubuntu11.3+esm9UBUNTU-CVE-2025-8058
UbuntuPro:18.04:LTSglibc2.27-3ubuntu1.6+esm6UBUNTU-CVE-2025-8058
UbuntuPro:20.04:LTSglibc2.31-0ubuntu9.18+esm1UBUNTU-CVE-2025-8058
Red Hatenterprise_linux:8::appstreamglibc-utils, nscd-debuginfo, glibc-debuginfo and 10 more0:2.28-251.el8_10.25RHSA-2025:12980
Red Hatenterprise_linux:8::baseosnscd, glibc, libnsl and 216 more0:2.28-251.el8_10.25RHSA-2025:12980
Red Hatenterprise_linux:8::crbnss_hesiod, glibc-static, nscd-debuginfo and 12 more0:2.28-251.el8_10.25RHSA-2025:12980
Red Hatenterprise_linux:9::appstreamglibc-doc, glibc-devel, glibc-utils and 12 more0:2.34-168.el9_6.23RHSA-2025:12748
Red Hatenterprise_linux:9::baseosnscd, glibc, libnsl and 212 more0:2.34-168.el9_6.23RHSA-2025:12748
Red Hatenterprise_linux:9::crbnss_db, nss_hesiod, glibc-static and 12 more0:2.34-168.el9_6.23RHSA-2025:12748
Red Hatenterprise_linux:10.0glibc, libnsl, nss_db and 228 more0:2.39-46.el10_0RHSA-2025:13240
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 9 moreglibc2.31-150300.98.1SUSE-SU-2026:0896-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Module for Development Tools 15 SP6 and 1 moreglibc2.38-150600.14.37.1SUSE-SU-2025:02964-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5glibc2.22-114.43.1SUSE-SU-2026:0680-1
SUSELinux Micro 6.0glibc2.38-11.1SUSE-SU-2026:20527-1
SUSELinux Micro 6.1glibc2.38-slfo.1.1_6.1SUSE-SU-2026:20536-1
openSUSELeap 15.6glibc2.38-150600.14.37.1SUSE-SU-2025:02964-1
openSUSETumbleweedglibc2.42-1.1openSUSE-SU-2025:15459-1
AlmaLinux8nscd, glibc, libnsl and 211 more2.28-251.el8_10.25ALSA-2025:12980
AlmaLinux10glibc-doc2.39-46.el10_0.alma.1ALSA-2025:13240
Rocky Linux8glibc0:2.28-251.el8_10.25RLSA-2025:12980
Rocky Linux9glibc0:2.34-168.el9_6.23RLSA-2025:12748
Rocky Linux10glibc0:2.39-46.el10_0RLSA-2025:13240
Azure Linux3glibc2.38-15AZL-68609
Alpaquita23glibc2.37.0-r19BELL-CVE-2025-8058
Alpaquitastreamglibc2.39.0-r4BELL-CVE-2025-8058
BellSoft Hardened Containers23glibc2.37.0-r19BELL-CVE-2025-8058
BellSoft Hardened Containersstreamglibc2.39.0-r4BELL-CVE-2025-8058

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10glibc-0:2.39-46.el10_0Fixed 2025-08-06RHSA-2025:13240
Red Hat Enterprise Linux 8glibc-0:2.28-251.el8_10.25Fixed 2025-08-05RHSA-2025:12980
Red Hat Enterprise Linux 9glibc-0:2.34-168.el9_6.23Fixed 2025-08-04RHSA-2025:12748
Red Hat Ceph Storage 7rhceph/rhceph-7-rhel9:7Fixed 2025-12-01RHSA-2025:22529
Red Hat Discovery 2discovery/discovery-server-rhel9:2.1.0-1755553939Fixed 2025-08-20RHSA-2025:14186
Red Hat Insights proxy 1.5insights-proxy/insights-proxy-container-rhel9:1.5.5-1754504343Fixed 2025-08-07RHSA-2025:13335
Red Hat OpenShift distributed tracing 3.5.3rhosdt/jaeger-agent-rhel8:rhosdt-3.5-1754559657Fixed 2025-08-11RHSA-2025:13622
Red Hat OpenShift distributed tracing 3.5.3rhosdt/jaeger-all-in-one-rhel8:rhosdt-3.5-1754559845Fixed 2025-08-11RHSA-2025:13622
Red Hat OpenShift distributed tracing 3.5.3rhosdt/jaeger-collector-rhel8:rhosdt-3.5-1754559691Fixed 2025-08-11RHSA-2025:13622
Red Hat OpenShift distributed tracing 3.5.3rhosdt/jaeger-es-index-cleaner-rhel8:rhosdt-3.5-1754559660Fixed 2025-08-11RHSA-2025:13622
Red Hat OpenShift distributed tracing 3.5.3rhosdt/jaeger-es-rollover-rhel8:rhosdt-3.5-1754559663Fixed 2025-08-11RHSA-2025:13622
Red Hat OpenShift distributed tracing 3.5.3rhosdt/jaeger-ingester-rhel8:rhosdt-3.5-1754559657Fixed 2025-08-11RHSA-2025:13622
Red Hat OpenShift distributed tracing 3.5.3rhosdt/jaeger-operator-bundle:rhosdt-3.5-1754569861Fixed 2025-08-11RHSA-2025:13622
Red Hat Enterprise Linux 6compat-glibcFix deferred
Red Hat Enterprise Linux 6glibcFix deferred
Red Hat Enterprise Linux 6nss_dbFix deferred
Red Hat Enterprise Linux 7compat-glibcFix deferred
Red Hat Enterprise Linux 7glibcFix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Fix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Fix deferred
2 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-8058.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-25-072-03Siemens SIMATIC S7-1500 TM MFP2025-03-11Critical ManufacturingSIMATIC S7-1500 TM MFP - BIOSnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON