Double free after allocation failure in glob
Summary
| CVE | CVE-2026-126765 |
|---|---|
| State | PUBLISHED |
| Assigner | glibc |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-19 19:17:19 UTC |
| Updated | 2026-11-19 22:18:00 UTC |
| Description | 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. |
Risk And Classification
Primary CVSS: v3.1 3.7 LOW from 3ff69d7a-14f2-4f67-a097-88dee7810d18
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
Problem Types: CWE-415 | CWE-415 CWE-415 Double Free
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | 3ff69d7a-14f2-4f67-a097-88dee7810d18 | Secondary | 3.7 | LOW | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
| 3.1 | CNA | CVSS | 3.7 | LOW | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
HighPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | The GNU C Library | Glibc | affected 2.44 custom | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| sourceware.org/pipermail/libc-alpha/2026-November/182067.html | 3ff69d7a-14f2-4f67-a097-88dee7810d18 | sourceware.org | |
| www.openwall.com/lists/oss-security/2026/11/19/9 | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | |
| sourceware.org/bugzilla/show_bug.cgi | 3ff69d7a-14f2-4f67-a097-88dee7810d18 | sourceware.org | |
| sourceware.org/git | 3ff69d7a-14f2-4f67-a097-88dee7810d18 | sourceware.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Jack Doan (en)
There are currently no legacy QID mappings associated with this CVE.