Skip to main content
VulnerabilityPublished Updated

CVE-2025-8058: The GNU C Library glibc · Double Free

Affects The GNU C Library glibcSource CVE Database V5

0

Not known to be exploited · CVSS 5.9 Medium.

Data as of 26 Oct 2026, 10:12 UTC

CVSS 4.0 base score
5.9Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 12% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 23 Jul 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
Debiandebian/glibcpkg:deb/debian/glibcOther threatsAffected
  • =2.4
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

  1. Monitor for updates from glibc maintainers and apply patches promptly once available.
  2. Until patches are released, restrict local access to systems running affected glibc versions to trusted users only.
  3. Avoid processing untrusted or user-supplied regular expressions in applications, or implement strict input validation and sanitization.
  4. Employ memory safety tools such as AddressSanitizer or Valgrind during development and testing to detect double free and heap corruption issues.
  5. Use hardened malloc implementations or memory allocators that provide double free detection and mitigation.
  6. Implement robust logging and monitoring to detect abnormal application crashes or memory errors that could indicate exploitation attempts.
  7. For critical systems, consider deploying application whitelisting and privilege restrictions to limit the impact of potential exploitation.
  8. Educate developers and system administrators about the risks of double free vulnerabilities and secure coding practices related to memory management.

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.

References

Community reviews

Loading reviews…