# CVE-2025-8058

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-07-23 · Modified: 2025-11-04
- Aliases: MGASA-2025-0220, SUSE-SU-2025:02964-1, RHSA-2025:12748, RHSA-2025:12980, RHSA-2025:13240, UBUNTU-CVE-2025-8058, USN-7760-1, DEBIAN-CVE-2025-8058, CGA-cw79-fpr6-v2rx, CGA-pgc4-x5mq-893r, openSUSE-SU-2025:15459-1
- Record: https://cvemate.com/vulnerability/CVE-2025-8058 · JSON: https://cvemate.com/vulnerability/CVE-2025-8058/json

## Description

```text
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.
```

## Signals

- CVSS: 5.9 medium (v4.0, CVE.org) CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:P/VC:L/VI:L/VA:H/SC:L/SI:L/SA:H
- EPSS: 0.229%, percentile 14.592%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 249)

- chainguard glibc (Chainguard): \< 2.41-r56
- wolfi glibc (Wolfi): \< 2.41-r56
- debian glibc (Debian): \< 2.36-9+deb12u13 \| \< 2.41-11
- ubuntu eglibc (Ubuntu): All versions (No fix recorded)
- ubuntu glibc (Ubuntu): \< 2.23-0ubuntu11.3+esm9 \| \< 2.27-3ubuntu1.6+esm6 \| \< 2.31-0ubuntu9.18+esm1 \| \< 2.35-0ubuntu3.11 \| \< 2.39-0ubuntu8.6
- mageia glibc (Mageia): \< 2.36-57.mga9
- opensuse glibc&distro=openSUSE Leap 15.6 (openSUSE): \< 2.38-150600.14.37.1
- opensuse glibc&distro=openSUSE Tumbleweed (openSUSE): \< 2.42-1.1
- redhat compat-libpthread-nonshared (Red Hat): \< 0:2.28-251.el8\_10.25
- redhat glibc (Red Hat): \< 0:2.34-168.el9\_6.23 \| \< 0:2.28-251.el8\_10.25 \| \< 0:2.39-46.el10\_0
- redhat glibc-all-langpacks (Red Hat): \< 0:2.34-168.el9\_6.23 \| \< 0:2.28-251.el8\_10.25 \| \< 0:2.39-46.el10\_0
- redhat glibc-all-langpacks-debuginfo (Red Hat): \< 0:2.28-251.el8\_10.25
- redhat glibc-benchtests (Red Hat): \< 0:2.34-168.el9\_6.23 \| \< 0:2.28-251.el8\_10.25 \| \< 0:2.39-46.el10\_0
- redhat glibc-benchtests-debuginfo (Red Hat): \< 0:2.34-168.el9\_6.23 \| \< 0:2.28-251.el8\_10.25 \| \< 0:2.39-46.el10\_0
- redhat glibc-common (Red Hat): \< 0:2.34-168.el9\_6.23 \| \< 0:2.28-251.el8\_10.25 \| \< 0:2.39-46.el10\_0
- redhat glibc-common-debuginfo (Red Hat): \< 0:2.34-168.el9\_6.23 \| \< 0:2.28-251.el8\_10.25 \| \< 0:2.39-46.el10\_0
- redhat glibc-debuginfo (Red Hat): \< 0:2.34-168.el9\_6.23 \| \< 0:2.28-251.el8\_10.25 \| \< 0:2.39-46.el10\_0
- redhat glibc-debugsource (Red Hat): \< 0:2.34-168.el9\_6.23 \| \< 0:2.28-251.el8\_10.25 \| \< 0:2.39-46.el10\_0
- redhat glibc-devel (Red Hat): \< 0:2.34-168.el9\_6.23 \| \< 0:2.28-251.el8\_10.25 \| \< 0:2.39-46.el10\_0
- redhat glibc-doc (Red Hat): \< 0:2.34-168.el9\_6.23 \| \< 0:2.28-251.el8\_10.25 \| \< 0:2.39-46.el10\_0

## References (first 20 of 29)

- <https://sourceware.org/bugzilla/show_bug.cgi?id=33185>
- <https://sourceware.org/git/?p=glibc.git;a=commit;h=3ff17af18c38727b88d9115e536c069e6b5d601f>
- <http://www.openwall.com/lists/oss-security/2025/07/23/1>
- <https://advisories.mageia.org/MGASA-2025-0220.html>
- <https://bugs.mageia.org/show_bug.cgi?id=34580>
- <https://www.openwall.com/lists/oss-security/2025/07/23/1>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202502964-1/>
- <https://bugzilla.suse.com/1240058>
- <https://bugzilla.suse.com/1246965>
- <https://www.suse.com/security/cve/CVE-2025-8058>
- <https://access.redhat.com/errata/RHSA-2025:12748>
- <https://access.redhat.com/security/updates/classification/#moderate>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2383146>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_12748.json>
- <https://access.redhat.com/security/cve/CVE-2025-8058>
- <https://www.cve.org/CVERecord?id=CVE-2025-8058>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-8058>
- <https://access.redhat.com/errata/RHSA-2025:12980>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_12980.json>
- <https://access.redhat.com/errata/RHSA-2025:13240>

---

Data as of 2026-12-05T03:45:06.829Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
