Double free after allocation failure in glibc glob
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Partial Red Hat: 1 fixed, 7 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat.
Summary
The glob functions in the GNU C Library versions through 2.44 may free the same heap block twice when a memory allocation fails while glob prepends the directory name to matched names. This double free (CWE-415) can be triggered over the network when an attacker controls the glob pattern or result size and pushes the program close to its memory limit. Exploiting it requires high attack complexity and can cause a denial of service.
Written with Claude Haiku 5.5 from the sources below · 2026-11-27
Description from the CNA
The glob functions in the GNU C Library versions 2.44 and earlier may free the same heap block twice when a memory allocation fails while glob prepends the directory name to the names it matched. The names already rewritten are freed, but their pointers stay in the result vector, and the error path frees them again with globfree. The allocation must fail after at least one name has been rewritten, so the issue can only be reached when the process is already close to its memory limit, for example under an address space limit (RLIMIT_AS) or on a 32-bit system. The attacker needs control to make the result large enough to make the program or service run out of memory, either by controlling the glob pattern and having knowledge of the filesystem layout or through other means. This issue affects all architectures and ABIs supported by the GNU C Library.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
The sources list no fixed version for glibc. Red Hat Hardened Images are fixed by RHSA-2026:103937. Red Hat lists no available plan for Red Hat Enterprise Linux 6, 7, 8, 9 and 10 or for Red Hat OpenShift Container Platform 4 and 5.
Written with Claude Haiku 5.5 from the sources below · 2026-11-27
Red Hat 1 advisory
- RHSA-2026:103937 Released 2026-11-26 · Red Hat rating ModerateRed Hat Hardened Images RPMs Security Update
- Red Hat Hardened Images compat-libpthread-nonshared-2.43-9.5.hum1@aarch64, compat-libpthread-nonshared-2.43-9.5.hum1@s390x, compat-libpthread-nonshared-2.43-9.5.hum1@x86_64 +47
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 10 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 6 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 7 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 8 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 9 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 5 | Affected | No fix yet: Fix deferred |
| Red Hat Hardened Images | Fixed | RHSA-2026:103937 |
Not affected: 1 product
- Red Hat Hardened Images
Timeline
- 2026-11-19 Threatist record created from CVE-2026-126765
- 2026-11-19 CISA SSVC decision points changed
- 2026-11-19 Alias added: GHSA-4rvq-wr96-324w
- 2026-11-20 Affected versions changed · Red Hat
- 2026-11-20 CVSS score added · Red Hat
- 2026-11-27 Fix available: RHSA-2026:103937 · Red Hat
- 2026-11-27 Fix available: Red Hat Hardened Images · Red Hat
- 2026-11-27 Affected versions changed · Red Hat
References
More GNU vulnerabilities
- TI-2026-19388 Authentication bypass in GNU Inetutils telnetd via USER variable KEVCVSS 3.1CRITICAL 9.8
- TI-2014-05975 GNU Bash environment variable parsing flaw lets attackers write files KEVCVSS 3.1CRITICAL 9.8
- TI-2014-05157 Code execution in GNU Bash through crafted environment variables KEVCVSS 3.1CRITICAL 9.8
- TI-2014-05164 Command injection in GNU Bash via crafted environment variables KEVCVSS 3.1HIGH 8.8
- TI-2023-04522 Buffer overflow in glibc ld.so allows privilege escalation KEVCVSS 3.1HIGH 7.8
- TI-2009-03392 The TLS protocol, and the SSL protocol 3.0 and possibly earlier, as used in Microsoft… CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-126765 · CVE Program
- CVE-2026-126765 · NVD
- FIRST EPSS
- GHSA-4rvq-wr96-324w · GitHub Advisory Database · CC BY 4.0
- CVE-2026-126765 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences