5.9

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

CVSS: 5.9v4.0MediumDeferred
AliasesMGASA-2025-0220SUSE-SU-2025:02964-1RHSA-2025:12748
Published 23-07-2025Last modified 04-11-2025

Vulnerability summary

CVE-2025-8058 is a medium (CVSS 5.9) Double Free vulnerability in the gnu c library glibc. EPSS estimates a 0.21% chance of exploitation in the next 30 days, higher than 10.2% of scored vulnerabilities.

Overall risk
24/100
0100
Low · default modelHow is this calculated?
CVSS score
5.9/10
010
Medium · v4.0 (CVE.org)
EPSS score
0.21%
0%100%
Low · +0.04 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 4 · Related 6

Timeline

  1. 23-07-2025
    PublishedVulnerability first disclosed.
  2. 04-11-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

7 scores · 7 sources · 2 versions

EPSS trend

Probability

0.21%

Chance of exploitation in the next 30 days

Percentile

10%

Versus all other CVEs

30-day change

+0.04 pp

From 0.16% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.21%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Redhat192 products
  • compat-libpthread-nonshared< 0:2.28-251.el8_10.25
  • glibc< 0:2.34-168.el9_6.23 | < 0:2.28-251.el8_10.25 | < 0:2.39-46.el10_0
  • glibc-all-langpacks< 0:2.34-168.el9_6.23 | < 0:2.28-251.el8_10.25 | < 0:2.39-46.el10_0
  • glibc-all-langpacks-debuginfo< 0:2.28-251.el8_10.25
  • glibc-benchtests< 0:2.34-168.el9_6.23 | < 0:2.28-251.el8_10.25 | < 0:2.39-46.el10_0
Opensuse2 products
  • glibc&distro=openSUSE Leap 15.6< 2.38-150600.14.37.1
  • glibc&distro=openSUSE Tumbleweed< 2.42-1.1
Ubuntu2 products
  • eglibcAll versions (No fix recorded)
  • glibc< 2.23-0ubuntu11.3+esm9 | < 2.27-3ubuntu1.6+esm6 | < 2.31-0ubuntu9.18+esm1 | < 2.35-0ubuntu3.11 | < 2.39-0ubuntu8.6
Chainguard1 product
  • glibc< 2.41-r56
Debian1 product
  • glibc< 2.36-9+deb12u13 | < 2.41-11
Mageia1 product
  • glibc< 2.36-57.mga9
Wolfi1 product
  • glibc< 2.41-r56

7 vendors · 200 products · Showing 200 of 249. Use Open JSON for the complete list.

References

29 links
Show all 29 references