Vulnerability · Published Jul 24, 2026 · Assigned by CERT-PL

CVE-2026-56391Out‑of‑bounds Read in GNU coreutils

Medium 4.6

In plain English

A medium-severity out-of-bounds read in coreutils from GNU. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 3% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)4.6Medium
Exploit odds (30 days)0.1%top 97.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

GNU coreutils uniq is vulnerable to an out‑of‑bounds read due to incorrect handling of multibyte input when the -w (--check-chars) option is used. The find_field() function miscalculates the byte length of characters by repeatedly processing a fixed pointer instead of advancing through the input, resulting in an inflated length value. This incorrect length is later used in a memcmp operation, causing reads beyond the allocated buffer when processing crafted multibyte input. When running GNU coreutils uniq with attacker-provided arguments, this behavior leads to a crash and potential adjacent heap memory exposure. This issue has been fixed in the commit d64e35a8a4c0e4608321433e0d84d917e4e36371.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10coreutils9.5-8.el10_2.1ALSA-2026:67886
AlmaLinux:10coreutils-common9.5-8.el10_2.1ALSA-2026:67886
AlmaLinux:10coreutils-single9.5-8.el10_2.1ALSA-2026:67886
Debian:12coreutilsno fix listedDEBIAN-CVE-2026-56391
Debian:13coreutilsno fix listedDEBIAN-CVE-2026-56391
Debian:14coreutilsno fix listedDEBIAN-CVE-2026-56391
Rocky Linux:10coreutils0:9.5-8.el10_2.1RLSA-2026:67886
Ubuntu:22.04:LTScoreutils8.32-4.1ubuntu1.4USN-8697-1
Ubuntu:24.04:LTScoreutils9.4-3ubuntu6.3USN-8697-1
Ubuntu:26.04:LTScoreutils9.7-3ubuntu2.1USN-8697-1
Ubuntu:26.04:LTScoreutils9.7-3ubuntu2.1UBUNTU-CVE-2026-56391

Affected products (as reported)

VendorProductVersions
GNU coreutils 9.5 – through 9.11

Weakness: CWE-125 · Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N

References