Servers and applications
CVE-2026-126765
Double free after allocation failure in glob
- Severity
- Low 3.7
- Published
- 19 Nov 2026
- Last changed
- 19 Nov 2026
- Added to UpHeron
- 19 Nov 2026
- Weakness
- Double free (CWE-415)
- Attack
- Over the network · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Slow it down
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L- Sources
- CVE Program
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 software
| Software | Affected versions |
|---|---|
GNU C LibraryServers and applications · cna:the gnu c library|glibc |
|
About GNU C Library
GNU Project's implementation of the C standard library
- Developer
- GNU ProjectWikidata
- License
- GNU Lesser General Public License, version 2.1 or laterWikidata
- Written in
- CWikidata
- First released
- 1987Wikidata
Vulnerabilities in GNU C Library
- In our list
- 167
- Published in the last 12 months
- 19
- Critical, last 12 months
- 1
- High, last 12 months
- 8
- Known exploited
- 1
- CVE-2026-124024IBM1390/IBM1399 encoders may read past inputMedium 5.9 17 Nov 2026
- CVE-2026-121758ISO-2022-CN-EXT decoder may read past inputMedium 5.9 17 Nov 2026
- CVE-2026-121757CP949 decoder may read past inputMedium 5.9 17 Nov 2026
- CVE-2026-100290Double free after allocation failure in regcomp and regexecLow 3.7 11 Nov 2026
- CVE-2026-115819One-byte buffer overflow in wide scanf %s and %[ conversionsMedium 4.8 11 Nov 2026
- CVE-2026-122054BIG-HKSCS decoding hang on crafted inputMedium 5.9 4 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-126765