CVE-2025-8058CWE-415

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

Medium · published July 23, 2025

CVSS v4.0
5.9
EPSS
0%
Percentile
10.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
5.9 · MEDIUM
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
EPSS
0.00208 · 10.3th percentile
Weakness
CWE-415 · Double Free
Published
2025-07-23T19:57Z
EPSS history
Timeline
  • 23 JUL 19:57Z
    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
    cvelistv5