CVE-2025-8058
CVE-2025-8058
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 5.9 · Medium · EPSS 0.2% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
glibc
- Versions
- ≥ 2.4, < 2.42: Affected (custom)
Update to 2.42
glibc Debian:12
- Versions
- 2.36-9
- 2.36-9+deb12u1
- 2.36-9+deb12u10
- 2.36-9+deb12u11
- 2.36-9+deb12u12
- 2.36-9+deb12u2
- 2.36-9+deb12u3
- 2.36-9+deb12u4
- 2.36-9+deb12u5
- 2.36-9+deb12u6
- 2.36-9+deb12u7
- 2.36-9+deb12u8
- 2.36-9+deb12u9
- Affected ranges
- ECOSYSTEM: < 2.36-9+deb12u13
Update to 2.36-9+deb12u13
glibc Debian:13
- Affected ranges
- ECOSYSTEM: < 2.41-11
Update to 2.41-11
glibc Debian:14
- Affected ranges
- ECOSYSTEM: < 2.41-11
Update to 2.41-11
eglibc Ubuntu:Pro:14.04:LTS
- Versions
- 2.17-93ubuntu4
- 2.18-0ubuntu1
- 2.18-0ubuntu2
- 2.18-0ubuntu4
- 2.18-0ubuntu5
- 2.18-0ubuntu6
- 2.18-0ubuntu7
- 2.19-0ubuntu2
- 2.19-0ubuntu3
- 2.19-0ubuntu4
- 2.19-0ubuntu5
- 2.19-0ubuntu6
- 2.19-0ubuntu6.1
- 2.19-0ubuntu6.3
- 2.19-0ubuntu6.4
- 2.19-0ubuntu6.5
- 2.19-0ubuntu6.6
- 2.19-0ubuntu6.7
- 2.19-0ubuntu6.8
- 2.19-0ubuntu6.9
- 2.19-0ubuntu6.10
- 2.19-0ubuntu6.11
- 2.19-0ubuntu6.13
- 2.19-0ubuntu6.14
- 2.19-0ubuntu6.15
- 2.19-0ubuntu6.15+esm1
- 2.19-0ubuntu6.15+esm2
- 2.19-0ubuntu6.15+esm3
- 2.19-0ubuntu6.15+esm4
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
glibc Ubuntu:Pro:16.04:LTS
- Versions
- 2.21-0ubuntu4
- 2.21-0ubuntu5
- 2.21-0ubuntu6
- 2.23-0ubuntu1
- 2.23-0ubuntu2
- 2.23-0ubuntu3
- 2.23-0ubuntu4
- 2.23-0ubuntu5
- 2.23-0ubuntu6
- 2.23-0ubuntu7
- 2.23-0ubuntu9
- 2.23-0ubuntu10
- 2.23-0ubuntu11
- 2.23-0ubuntu11.2
- 2.23-0ubuntu11.3
- 2.23-0ubuntu11.3+esm1
- 2.23-0ubuntu11.3+esm2
- 2.23-0ubuntu11.3+esm3
- 2.23-0ubuntu11.3+esm5
- 2.23-0ubuntu11.3+esm6
- 2.23-0ubuntu11.3+esm7
- 2.23-0ubuntu11.3+esm8
- Affected ranges
- ECOSYSTEM: < 2.23-0ubuntu11.3+esm9
Update to 2.23-0ubuntu11.3+esm9
glibc Ubuntu:Pro:18.04:LTS
- Versions
- 2.26-0ubuntu2
- 2.26-0ubuntu2.1
- 2.27-0ubuntu2
- 2.27-0ubuntu3
- 2.27-3ubuntu1
- 2.27-3ubuntu1.2
- 2.27-3ubuntu1.3
- 2.27-3ubuntu1.4
- 2.27-3ubuntu1.5
- 2.27-3ubuntu1.6
- 2.27-3ubuntu1.6+esm1
- 2.27-3ubuntu1.6+esm2
- 2.27-3ubuntu1.6+esm3
- 2.27-3ubuntu1.6+esm4
- 2.27-3ubuntu1.6+esm5
- Affected ranges
- ECOSYSTEM: < 2.27-3ubuntu1.6+esm6
Update to 2.27-3ubuntu1.6+esm6
glibc Ubuntu:Pro:20.04:LTS
- Versions
- 2.30-0ubuntu2
- 2.30-0ubuntu3
- 2.31-0ubuntu5
- 2.31-0ubuntu6
- 2.31-0ubuntu7
- 2.31-0ubuntu9
- 2.31-0ubuntu9.1
- 2.31-0ubuntu9.2
- 2.31-0ubuntu9.3
- 2.31-0ubuntu9.7
- 2.31-0ubuntu9.9
- 2.31-0ubuntu9.12
- 2.31-0ubuntu9.14
- 2.31-0ubuntu9.15
- 2.31-0ubuntu9.16
- 2.31-0ubuntu9.17
- 2.31-0ubuntu9.18
- Affected ranges
- ECOSYSTEM: < 2.31-0ubuntu9.18+esm1
Update to 2.31-0ubuntu9.18+esm1
glibc Ubuntu:22.04:LTS
- Versions
- 2.34-0ubuntu3
- 2.35-0ubuntu1
- 2.35-0ubuntu3
- 2.35-0ubuntu3.1
- 2.35-0ubuntu3.3
- 2.35-0ubuntu3.4
- 2.35-0ubuntu3.5
- 2.35-0ubuntu3.6
- 2.35-0ubuntu3.7
- 2.35-0ubuntu3.8
- 2.35-0ubuntu3.9
- 2.35-0ubuntu3.10
- Affected ranges
- ECOSYSTEM: < 2.35-0ubuntu3.11
Update to 2.35-0ubuntu3.11
glibc Ubuntu:24.04:LTS
- Versions
- 2.38-1ubuntu6
- 2.38-3ubuntu1
- 2.39-0ubuntu1
- 2.39-0ubuntu2
- 2.39-0ubuntu6
- 2.39-0ubuntu8
- 2.39-0ubuntu8.1
- 2.39-0ubuntu8.2
- 2.39-0ubuntu8.3
- 2.39-0ubuntu8.4
- 2.39-0ubuntu8.5
- Affected ranges
- ECOSYSTEM: < 2.39-0ubuntu8.6
Update to 2.39-0ubuntu8.6