CVE-2026-126765
Received Received - Intake

Double Free in GNU C Library glob Functions

Vulnerability report for CVE-2026-126765, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-19

Last updated on: 2026-11-19

Assigner: GNU C Library

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-19
Last Modified
2026-11-19
Generated
2026-11-20
AI Q&A
2026-11-20
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
The GNU C Library glibc From 0 (inc) to 2.44 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-415 The product calls free() twice on the same memory address.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-126765 is a double-free vulnerability in the GNU C Library's glob function. When memory allocation fails during directory name processing, the function frees partially replaced names but leaves their pointers in the result vector. Later calls to globfree by the caller attempt to free these names again, causing a double-free error.

Detection Guidance

Detecting this vulnerability requires checking for the GNU C Library version and potential double-free errors in glob functions. Use 'ldd --version' to check glibc version and 'strings /lib/x86_64-linux-gnu/libc.so.6 | grep GLIBC_' to verify if affected versions are installed.

Impact Analysis

This vulnerability may allow an attacker to cause a denial of service by crashing the affected program or service. It requires the attacker to control the glob pattern and filesystem layout to trigger memory exhaustion, typically on systems close to memory limits.

Mitigation Strategies

Apply the official patch from GNU C Library maintainers. Monitor memory usage limits and avoid running processes under strict address space constraints (RLIMIT_AS). Update to glibc version 2.45 or later if available.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-126765. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...