CVE-2025-8058 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 inter...
MediumCVSS 5.9
EPSS 0.22%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| azure linux glibc(Azure Linux:3.0) | All versions | No fix listed |
| azure linux glibc(Azure Linux:3.0) | < 2.38-15 | 2.38-15 |
| debian/glibc(Debian:12) | < 2.36-9+deb12u13 | 2.36-9+deb12u13 |
| debian/glibc(Debian:12) | = 2.36-9 | No fix listed |
| debian/glibc(Debian:12) | = 2.36-9+deb12u1 | No fix listed |
| debian/glibc(Debian:12) | = 2.36-9+deb12u10 | No fix listed |
| debian/glibc(Debian:12) | = 2.36-9+deb12u11 | No fix listed |
| debian/glibc(Debian:12) | = 2.36-9+deb12u12 | No fix listed |
| debian/glibc(Debian:12) | = 2.36-9+deb12u2 | No fix listed |
| debian/glibc(Debian:12) | = 2.36-9+deb12u3 | No fix listed |
| debian/glibc(Debian:12) | = 2.36-9+deb12u4 | No fix listed |
| debian/glibc(Debian:12) | = 2.36-9+deb12u5 | No fix listed |
| debian/glibc(Debian:12) | = 2.36-9+deb12u6 | No fix listed |
| debian/glibc(Debian:12) | = 2.36-9+deb12u7 | No fix listed |
| debian/glibc(Debian:12) | = 2.36-9+deb12u8 | No fix listed |
| debian/glibc(Debian:12) | = 2.36-9+deb12u9 | No fix listed |
| debian/glibc(Debian:13) | < 2.41-11 | 2.41-11 |
| debian/glibc(Debian:14) | < 2.41-11 | 2.41-11 |
| The GNU C Library glibc | >= 2.4, < 2.42 | 2.42 |
| ubuntu/glibc(Ubuntu:22.04) | < 2.35-0ubuntu3.11 | 2.35-0ubuntu3.11 |
| ubuntu/glibc(Ubuntu:24.04) | < 2.39-0ubuntu8.6 | 2.39-0ubuntu8.6 |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2025-8058 vendor-advisory
- sourceware.org
- sourceware.org
- www.openwall.com
- Ubuntu CVE tracker vendor-advisory
- USN-7760-1 vendor-advisory
- USN-8005-1 vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking