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.
Severity
Not rated by the source.
Dates
Published
2025-07-23 20:15 UTC
Modified
2026-09-01 20:05 UTC
Affected packages and fixes
glibc
Debian packages (deb) · Debian 12
Affected
introduced 0, fixed 2.36-9+deb12u13 (ecosystem)
Fixed versions
2.36-9+deb12u13
Fix
Fixed version 2.36-9+deb12u13
sudo apt-get update && sudo apt-get upgrade
This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.
glibc
Debian packages (deb) · Debian 13
Affected
introduced 0, fixed 2.41-11 (ecosystem)
Fixed versions
2.41-11
Fix
Fixed version 2.41-11
sudo apt-get update && sudo apt-get upgrade
This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.
glibc
Debian packages (deb) · Debian 14
Affected
introduced 0, fixed 2.41-11 (ecosystem)
Fixed versions
2.41-11
Fix
Fixed version 2.41-11
sudo apt-get update && sudo apt-get upgrade
This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.