1.8Low

CVE-2026-56392Heap-based Buffer Overflow in GNU coreutils

GNU coreutils Published: (3 months ago)

Description

GNU coreutils unexpand is vulnerable to a heap-based buffer overflow due to an integer overflow during buffer allocation when processing large tab stop (-t) values. The multiplication used to calculate the allocation size can wrap around, resulting in an undersized buffer. When processing crafted input, subsequent writes exceed the allocated memory, leading to an out‑of‑bounds heap write. When running GNU coreutils unexpand with attacker-provided large tab stop (-t) arguments, this behavior leads to a crash and potentially achieve a heap write primitive depending on memory layout. This issue has been fixed in the commit b60a159fdc5bfcf9988d3a4cb6f53abe8ad5d35d

Weakness (CWE): CWE-122

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
GNU coreutils ≤ 9.11

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:gnu:coreutils:9.11:*:*:*:*:*:*:*