CVEfocus › CVE database › CVE-2026-56391

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

CVSS 4.6 MediumEPSS 0.2% (higher than 4% of CVEs)Published 2026-07-24Updated 2026-07-24Assigner: CERT-PL

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.

CWE-125

What to do

Fixed builds are available from AlmaLinux, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Red Hat has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

7Fixed
6Fix pending
6Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04coreutilsFixed9.7-3ubuntu2.1UBUNTU-CVE-2026-56391
Ubuntu 24.04coreutilsNot affected
vulnerable_code_not_present
Ubuntu 22.04coreutilsNot affected
vulnerable_code_not_present
Debian 14coreutilsWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2026-56391
Debian 13coreutilsWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2026-56391
Debian 12coreutilsWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2026-56391
Red Hat Enterprise Linux 10coreutilsFixed0:9.5-8.el10_2.1RHSA-2026:67886
Red Hat Enterprise Linux 10coreutils-singleFixed0:9.5-8.el10_2.1RHSA-2026:67886
Red Hat Enterprise Linux 9coreutilsFix pending
Fix deferred
Red Hat Enterprise Linux 9coreutils-commonFix pending
Fix deferred
Red Hat Enterprise Linux 9coreutils-singleFix pending
Fix deferred
Red Hat Enterprise Linux 8coreutilsFix pending
Fix deferred
Red Hat Enterprise Linux 8coreutils-commonFix pending
Fix deferred
Red Hat Enterprise Linux 8coreutils-singleFix pending
Fix deferred
Red Hat Enterprise Linux 7coreutilsWill not fix
Out of support scope
Red Hat Enterprise Linux 6coreutilsWill not fix
Out of support scope
Red Hat Enterprise Linux 6coreutils-libsWill not fix
Out of support scope
AlmaLinux 10coreutilsFixed9.5-8.el10_2.1ALSA-2026:67886
AlmaLinux 10coreutils-commonFixed9.5-8.el10_2.1ALSA-2026:67886
AlmaLinux 10coreutils-singleFixed9.5-8.el10_2.1ALSA-2026:67886
Rocky Linux 10coreutilsFixed0:9.5-8.el10_2.1RLSA-2026:67886

What the vendor says

As published in the CVE record by CERT-PL, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.