# CVE-2026-126765: Double free after allocation failure in glob

- Priority: **Routine**
- Reason: Not severe (CVSS 3.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-19 · Modified: 2026-11-19
- Aliases: DEBIAN-CVE-2026-126765, UBUNTU-CVE-2026-126765, CGA-2fqf-w8p3-xfhm, CGA-2g93-pwfq-c84g, CGA-2m6h-w594-xqfp, CGA-2pxj-qf3m-7v6w, CGA-36fg-948g-4fmg, CGA-397v-6592-5j3p, CGA-3rjm-jp35-4x7f, CGA-44xg-fh74-p624, CGA-4638-r5mq-5w8g, CGA-4fvc-p84p-87xv, CGA-57hf-74g3-rf2q, CGA-5r6x-x9xx-ffx5, CGA-5rcr-954j-9vqx, CGA-6863-2rxr-7f4w, CGA-6xj4-6q3h-3fqw, CGA-73fj-6w9m-6rgj, CGA-794j-wc4j-992g, CGA-7fwv-q3xv-75w3, CGA-7h27-wjhm-9vpj, CGA-7h77-cjfp-gqpf, CGA-7w8v-wh6r-82c9, CGA-86h4-pfc3-mm43, CGA-878c-wpr9-wq82, CGA-8gp4-7rj2-c32x, CGA-8jfp-ppmw-2ph8, CGA-8qqr-qr5g-mgmv, CGA-96jx-mr68-f7j5, CGA-98r8-jmqw-xhwr, CGA-99rg-rpfj-45gm, CGA-9rhf-67hw-5h4x, CGA-9xgp-hwqj-r4jv, CGA-chfg-9p45-56mp, CGA-f3h8-vxh5-pww8, CGA-f5cq-9q6h-xc72, CGA-f689-74jr-jq94, CGA-fpx3-x864-54m4, CGA-g535-gvv2-xcfp, CGA-gvm9-mf25-jhqp, CGA-hgg6-p4q6-jmv5, CGA-hh4g-xf7w-fx95, CGA-jh8c-qjrj-h96v, CGA-jm7c-g2fj-w626, CGA-jpmv-j48v-wv55, CGA-jv8r-jrmm-6c2v, CGA-m29c-63w5-93qg, CGA-m83c-6vqf-j7gq, CGA-mfg3-h9mh-3j3g, CGA-mmm5-wq5m-7wh5, CGA-p4mg-mh6p-c858, CGA-p8rv-3pjh-8cm9, CGA-q2r6-qggc-j443, CGA-q33m-8hg4-9qc6, CGA-q372-gmrq-4jf3, CGA-q39c-2hw6-j2vp, CGA-q3qc-2c4c-v3wj, CGA-q45c-rv5x-xq3p, CGA-q4fc-rcfv-m736, CGA-q9hj-47mm-7g62, CGA-qchx-w8gc-8h7q, CGA-qcr2-4723-fg66, CGA-qgx3-7q3f-3mcq, CGA-r6rm-jm3f-9x53, CGA-r9vf-c42g-268q, CGA-rf4x-8mp5-gqmx, CGA-rg9p-8hq4-jwc2, CGA-rp45-xgx8-9x73, CGA-rpp8-7f87-v7fr, CGA-wcq5-7xm5-x7xq, CGA-wqhc-q72x-j2v9, CGA-wrjg-4pv8-3gr9, CGA-wxxg-vgqg-ghhv, CGA-x4c2-53wx-36xw, CGA-x95m-4jh4-6fqv, CGA-26wj-6qjq-f5p4, CGA-2j5g-x93v-82x7, CGA-32qw-g6m9-gg2w, CGA-53jp-cc48-vm8q, CGA-5542-3rqr-jhr6, CGA-6hr5-6853-3qq3, CGA-752m-g9jm-xvqm, CGA-77mj-2hq9-368h, CGA-8368-2g66-4cp7, CGA-8gxv-j4p5-3rw6, CGA-fcpx-wj8c-6vm3, CGA-gg47-25h8-g99q, CGA-gq9r-g8cj-jgrj, CGA-h54v-g5fq-hpqf, CGA-m6cv-3wgh-5q5q, CGA-m6vw-8gm8-7x26, CGA-pqvf-2j73-j338, CGA-qrr3-h59r-p5rp, CGA-rh9q-3f47-jfj7, CGA-w668-28cp-vx4q, CGA-wj28-7cg4-647f, CGA-wwfj-mjvg-whj2, CGA-wwq2-v3c4-7jfr, CGA-xg2h-h259-jrgj, CGA-2r99-jcm4-vfwv, CGA-36jv-v37c-f7ff, CGA-4frv-jqxp-q4q9, CGA-5p62-5gvf-hw76, CGA-3458-rgv3-9rm2, CGA-4975-qv6r-7cxc, CGA-c9vq-46v8-jw62, CGA-cfjc-rw68-cf37, CGA-g382-9mr8-mccm, CGA-p4h3-779m-677h, CGA-pj6j-322g-x6hj, CGA-q4v8-9m48-gfv5, CGA-wq7q-hf98-7vgq, CGA-j286-4vcv-9wr3, CGA-fvx3-v2rh-ghgv
- Record: https://cvemate.com/vulnerability/CVE-2026-126765 · JSON: https://cvemate.com/vulnerability/CVE-2026-126765/json

## Description

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

## Signals

- CVSS: 3.7 low (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
- EPSS: 0.452%, percentile 40.964%, 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 116)

- chainguard glibc-2.43 (Chainguard): All versions (No fix recorded)
- chainguard glibc-2.43-abi-report (Chainguard): All versions (No fix recorded)
- chainguard glibc-2.43-dev (Chainguard): All versions (No fix recorded)
- chainguard glibc-2.43-iconv (Chainguard): All versions (No fix recorded)
- chainguard glibc-2.43-iconv-common (Chainguard): All versions (No fix recorded)
- chainguard glibc-2.43-locale-ca (Chainguard): All versions (No fix recorded)
- chainguard glibc-2.43-locale-de (Chainguard): All versions (No fix recorded)
- chainguard glibc-2.43-locale-en (Chainguard): All versions (No fix recorded)
- chainguard glibc-2.43-locale-es (Chainguard): All versions (No fix recorded)
- chainguard glibc-2.43-locale-extra (Chainguard): All versions (No fix recorded)
- chainguard glibc-2.43-locale-fr (Chainguard): All versions (No fix recorded)
- chainguard glibc-2.43-locale-posix (Chainguard): All versions (No fix recorded)
- chainguard glibc-2.43-locales (Chainguard): All versions (No fix recorded)
- chainguard glibc-2.43-testresults (Chainguard): All versions (No fix recorded)
- chainguard glibc-2.43-tracing (Chainguard): All versions (No fix recorded)
- chainguard glibc-2.44 (Chainguard): All versions (No fix recorded) \| \< 2.44-r26
- chainguard glibc-2.44-abi-report (Chainguard): All versions (No fix recorded) \| \< 2.44-r26
- chainguard glibc-2.44-dev (Chainguard): All versions (No fix recorded) \| \< 2.44-r26
- chainguard glibc-2.44-iconv (Chainguard): All versions (No fix recorded) \| \< 2.44-r26
- chainguard glibc-2.44-iconv-common (Chainguard): All versions (No fix recorded) \| \< 2.44-r26

## References

- <https://sourceware.org/bugzilla/show_bug.cgi?id=34993>
- <https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=advisories/GLIBC-SA-2026-0032>
- <https://sourceware.org/pipermail/libc-alpha/2026-November/182067.html>
- <http://www.openwall.com/lists/oss-security/2026/11/19/9>
- <https://security-tracker.debian.org/tracker/CVE-2026-126765>
- <https://ubuntu.com/security/CVE-2026-126765>
- <https://www.cve.org/CVERecord?id=CVE-2026-126765>
- <https://www.openwall.com/lists/oss-security/2026/11/19/9>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126765.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-126765>

---

Data as of 2026-12-05T03:24:02.256Z. 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
