CVE-2026-126765
JSON

3.7low

Double free after allocation failure in glob

Severity
3.7low CVSS:3.1 by glibc
Exploit likelihood
0.45% (higher than 40% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
glibc

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.

Affected

Product or packageVersionsReported by
The GNU C Library glibcup to 2.44CVE List

Classification

CWE-415

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-126765 changed 2026-11-19CVE Terms of Use
NVDCVE-2026-126765 changed 2026-11-23Public domain