CVE-2025-8058

MEDIUM

GNU C Library <2.42 - Use After Free

Title source: llm
STIX 2.1

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.

Scores

CVSS v4 5.9
EPSS 0.0001
EPSS Percentile 1.2%
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

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-415
Status published
Products (1)
The GNU C Library/glibc 2.4 - 2.42
Published Jul 23, 2025
Tracked Since Feb 18, 2026