CVE-2025-8058

Medium

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.

SeverityMedium
CVSS5.9
Exploit probability—
ProductThe Gnu C Library Glibc
PublishedJul 23, 2025
First seenJul 23, 2025
Weakness typeCWE-415CWE-415

How to fix

Update
  • The GNU C Library glibc2.42 or later

Affected products

ProductAffected versionsFixed in
The GNU C Library glibc2.4 ≤ v < 2.422.42

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.