CVE-2026-56392: CWE-122 Heap-based Buffer Overflow in GNU coreutils
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
AI Analysis
Technical Summary
CVE-2026-56392 is a heap-based buffer overflow vulnerability in GNU coreutils unexpand. The flaw arises from an integer overflow during the calculation of buffer allocation size for large tab stop (-t) values. This overflow causes the allocated buffer to be smaller than intended, allowing subsequent writes to exceed the allocated memory bounds. When unexpand processes attacker-controlled large tab stop arguments, it can lead to a crash and potentially enable exploitation via heap memory corruption. The vulnerability has been fixed in commit b60a159fdc5bfcf9988d3a4cb6f53abe8ad5d35d.
Potential Impact
The vulnerability can cause unexpand to crash due to out-of-bounds heap writes. Depending on the memory layout, it may allow an attacker to achieve a heap write primitive, which could be leveraged for further exploitation. The CVSS 4.0 base score is low (1.8), reflecting limited attack vector and impact.
Mitigation Recommendations
A fix for this vulnerability has been committed by the GNU project (commit b60a159fdc5bfcf9988d3a4cb6f53abe8ad5d35d). Users should update to the patched version of GNU coreutils once it is released. Patch status is not yet confirmed in the advisory; check the vendor's official releases for the fixed version. Until then, avoid processing untrusted input with large tab stop (-t) values in unexpand.
CVE-2026-56392: CWE-122 Heap-based Buffer Overflow in GNU coreutils
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
CVSS v4.0
Score 1.8low
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-56392 is a heap-based buffer overflow vulnerability in GNU coreutils unexpand. The flaw arises from an integer overflow during the calculation of buffer allocation size for large tab stop (-t) values. This overflow causes the allocated buffer to be smaller than intended, allowing subsequent writes to exceed the allocated memory bounds. When unexpand processes attacker-controlled large tab stop arguments, it can lead to a crash and potentially enable exploitation via heap memory corruption. The vulnerability has been fixed in commit b60a159fdc5bfcf9988d3a4cb6f53abe8ad5d35d.
Potential Impact
The vulnerability can cause unexpand to crash due to out-of-bounds heap writes. Depending on the memory layout, it may allow an attacker to achieve a heap write primitive, which could be leveraged for further exploitation. The CVSS 4.0 base score is low (1.8), reflecting limited attack vector and impact.
Mitigation Recommendations
A fix for this vulnerability has been committed by the GNU project (commit b60a159fdc5bfcf9988d3a4cb6f53abe8ad5d35d). Users should update to the patched version of GNU coreutils once it is released. Patch status is not yet confirmed in the advisory; check the vendor's official releases for the fixed version. Until then, avoid processing untrusted input with large tab stop (-t) values in unexpand.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CERT-PL
- Date Reserved
- 2026-06-21T11:40:32.790Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a6320db9c2644c7f8989ba9
Added to database: 07/24/2026, 08:22:51 UTC
Last enriched: 07/24/2026, 08:37:17 UTC
Last updated: 07/24/2026, 23:58:23 UTC
Views: 12
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.