CVE-2025-8058

CWE-41511 documents9 sources
Severity
5.9MEDIUM
EPSS
0.0%
top 99.08%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedJul 23
Latest updateFeb 3

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 vector

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

Affected Packages2 packages

▶CVEListV5the_gnu_c_library/glibc2.4 — 2.42
â–¶Debianglibc< 2.36-9+deb12u13+2

🔴Vulnerability Details

4
OSV
glibc vulnerabilities↗2026-02-03
â–¶
GHSA
GHSA-8xjp-c72j-67q8: The regcomp function in the GNU C library version from 2↗2025-07-23
â–¶
OSV
CVE-2025-8058: The regcomp function in the GNU C library version from 2↗2025-07-23
â–¶
CVEList
CVE-2025-8058: The regcomp function in the GNU C library version from 2↗2025-07-23
â–¶

📋Vendor Advisories

6
Ubuntu
GNU C Library vulnerabilities↗2026-02-03
â–¶
Oracle
Oracle Oracle Communications Applications Risk Matrix: Installation (glibc) — CVE-2025-8058↗2025-10-15
â–¶
Ubuntu
GNU C Library vulnerability↗2025-09-22
â–¶
Red Hat
glibc: Double free in glibc↗2025-07-23
â–¶
Microsoft
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 int↗2025-07-08
â–¶
CVE-2025-8058 (MEDIUM CVSS 5.9) | The regcomp function in the GNU C l | cvebase.io