CVE-2025-8058
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.
How to fix
- The GNU C Library glibc2.42 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| The GNU C Library glibc | 2.4 ≤ v < 2.42 | 2.42 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.