CVE-2025-8058
published 2025-07-23CVE-2025-8058: 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…
medium5.9CVSS 4.0
AVLACHATPPRLUIPVCLVILVAHSCLSILSAHEXCRXIRXARXMAVXMACXMATXMPRXMUIXMVCXMVIXMVAXMSCXMSIXMSAXSXAUXRXVXREXUX
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.
Affected
14 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | glibc | < glibc 2.36-9+deb12u13 (bookworm) | glibc 2.36-9+deb12u13 (bookworm) |
| gnu | glibc | >= 0 < 2.36-9+deb12u13 | 2.36-9+deb12u13 |
| gnu | glibc | >= 0 < 2.41-11 | 2.41-11 |
| gnu | glibc | >= 0 < 2.41-11 | 2.41-11 |
| gnu | glibc | >= 0 < 2.35-0ubuntu3.13 | 2.35-0ubuntu3.13 |
| gnu | glibc | >= 0 < 2.39-0ubuntu8.7 | 2.39-0ubuntu8.7 |
| gnu | glibc | >= 0 < 2.42-0ubuntu3.1 | 2.42-0ubuntu3.1 |
| gnu | glibc | >= 0 < 2.23-0ubuntu11.3+esm9 | 2.23-0ubuntu11.3+esm9 |
| gnu | glibc | >= 0 < 2.27-3ubuntu1.6+esm6 | 2.27-3ubuntu1.6+esm6 |
| gnu | glibc | >= 0 < 2.31-0ubuntu9.18+esm1 | 2.31-0ubuntu9.18+esm1 |
| msrc | azl3_glibc_2.38-12_on_azure_linux_3.0 | — | — |
| msrc | azl3_glibc_2.38-14_on_azure_linux_3.0 | — | — |
| msrc | azl3_glibc_2.38-15_on_azure_linux_3.0 | — | — |
| the_gnu_c_library | glibc | >= 2.4 < 2.42 | 2.42 |
CVSS provenance
nvdv4.05.9MEDIUMCVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:P/VC:L/VI:L/VA:H/SC:L/SI:L/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
osv7.5HIGH