cbcvebase.
CVE-2025-8058
published 2025-07-23

CVE-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
VendorProductVersion rangeFixed in
debianglibc< glibc 2.36-9+deb12u13 (bookworm)glibc 2.36-9+deb12u13 (bookworm)
gnuglibc>= 0 < 2.36-9+deb12u132.36-9+deb12u13
gnuglibc>= 0 < 2.41-112.41-11
gnuglibc>= 0 < 2.41-112.41-11
gnuglibc>= 0 < 2.35-0ubuntu3.132.35-0ubuntu3.13
gnuglibc>= 0 < 2.39-0ubuntu8.72.39-0ubuntu8.7
gnuglibc>= 0 < 2.42-0ubuntu3.12.42-0ubuntu3.1
gnuglibc>= 0 < 2.23-0ubuntu11.3+esm92.23-0ubuntu11.3+esm9
gnuglibc>= 0 < 2.27-3ubuntu1.6+esm62.27-3ubuntu1.6+esm6
gnuglibc>= 0 < 2.31-0ubuntu9.18+esm12.31-0ubuntu9.18+esm1
msrcazl3_glibc_2.38-12_on_azure_linux_3.0
msrcazl3_glibc_2.38-14_on_azure_linux_3.0
msrcazl3_glibc_2.38-15_on_azure_linux_3.0
the_gnu_c_libraryglibc>= 2.4 < 2.422.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