Skip to content
OpenAdvisories
Medium · 5.9 CVE-2025-8058 EUVD-2025-22469GHSA-8xjp-c72j-67q8

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…

Published Jul 23, 2025 · Updated Nov 4, 2025 · Assigned by glibc

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.

Affected products

VendorProductAffectedFixed
The GNU C Library glibc 2.4 – < 2.42 2.42

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 glibc 2.41-11 —
Debian 13 glibc 2.41-11 —
Debian 12 glibc 2.36-9+deb12u13 —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS glibc 2.39-0ubuntu8.6 USN-7760-1
Ubuntu 22.04 LTS glibc 2.35-0ubuntu3.11 USN-7760-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS glibc 2.31-0ubuntu9.18+esm1 —
Ubuntu Pro 18.04 LTS glibc 2.27-3ubuntu1.6+esm6 —
Ubuntu Pro 16.04 LTS glibc 2.23-0ubuntu11.3+esm9 —
Ubuntu Pro 14.04 LTS eglibc No fix yet —
ReleasePackageFixed inAdvisory
RHEL 10 glibc +220 2.39-46.el10_0 RHSA-2025:13240
RHEL 9 nscd +214 2.34-168.el9_6.23 RHSA-2025:12748
RHEL 8 nscd +213 2.28-251.el8_10.25 RHSA-2025:12980

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 glibc-doc 2.39-46.el10_0.alma.1 ALSA-2025:13240
AlmaLinux 8 nscd +213 2.28-251.el8_10.25 ALSA-2025:12980

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 glibc 2.39-46.el10_0 RLSA-2025:13240
Rocky Linux 9 glibc 2.34-168.el9_6.23 RLSA-2025:12748
Rocky Linux 8 glibc 2.28-251.el8_10.25 RLSA-2025:12980
ReleasePackageFixed inAdvisory
SLES 15 SP7 glibc 2.38-150600.14.37.1 SUSE-SU-2025:02964-1
SLES 15 SP6 glibc 2.38-150600.14.37.1 SUSE-SU-2025:02964-1
SLES 15 SP5 glibc 2.31-150300.98.1 SUSE-SU-2026:0896-1
SLES 15 SP4 glibc 2.31-150300.98.1 SUSE-SU-2026:0896-1
SLES 12 SP5 glibc 2.22-114.43.1 SUSE-SU-2026:0680-1
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP5 glibc 2.31-150300.98.1 SUSE-SU-2026:0896-1
SLES for SAP 15 SP4 glibc 2.31-150300.98.1 SUSE-SU-2026:0896-1
SLE Micro 6.1 glibc 2.38-slfo.1.1_6.1 SUSE-SU-2026:20536-1
SLE Micro 6.0 glibc 2.38-11.1 SUSE-SU-2026:20527-1
SLE Micro 5.5 glibc 2.31-150300.98.1 SUSE-SU-2026:0896-1
SLE Micro 5.4 glibc 2.31-150300.98.1 SUSE-SU-2026:0896-1
SLE Micro 5.3 glibc 2.31-150300.98.1 SUSE-SU-2026:0896-1
SLE Micro 5.2 glibc 2.31-150300.98.1 SUSE-SU-2026:0896-1
SLE HPC 15 SP5 glibc 2.31-150300.98.1 SUSE-SU-2026:0896-1
SLE HPC 15 SP4 glibc 2.31-150300.98.1 SUSE-SU-2026:0896-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed glibc 2.42-1.1 openSUSE-SU-2025:15459-1
openSUSE Leap 15.6 glibc 2.38-150600.14.37.1 SUSE-SU-2025:02964-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 nscd +217 2.34-231.amzn2023.0.1 ALAS2023-2025-1179
Amazon Linux 2 nscd +199 2.26-64.amzn2.0.5 ALAS2-2025-3040

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 glibc 2.38-15 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 glibc +220 2.39-46.0.1.el10_0 ELSA-2025-13240
Oracle Linux 9 nscd +214 2.34-168.0.1.el9_6.23 ELSA-2025-12748
Oracle Linux 8 nscd +213 2.28-251.0.3.el8_10.25 ELSA-2025-12980

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling glibc 2.41-r56 —

Advisories 28

References