Double free after allocation failure in glob

Summary

CVECVE-2026-126765
StatePUBLISHED
Assignerglibc
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-19 19:17:19 UTC
Updated2026-11-19 22:18:00 UTC
DescriptionThe 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


VersionSourceTypeScoreSeverityVector
3.13ff69d7a-14f2-4f67-a097-88dee7810d18Secondary3.7LOWCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
3.1CNACVSS3.7LOWCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA The GNU C Library Glibc affected 2.44 custom Not specified

References

ReferenceSourceLinkTags
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)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report