CVE-2026-56391Out‑of‑bounds Read in GNU coreutils
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | coreutils | Fixed | 9.7-3ubuntu2.1 | UBUNTU-CVE-2026-56391 |
| Ubuntu 24.04 | coreutils | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | coreutils | Not affected vulnerable_code_not_present | ||
| Debian 14 | coreutils | Will 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 13 | coreutils | Will 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 12 | coreutils | Will 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 10 | coreutils | Fixed | 0:9.5-8.el10_2.1 | RHSA-2026:67886 |
| Red Hat Enterprise Linux 10 | coreutils-single | Fixed | 0:9.5-8.el10_2.1 | RHSA-2026:67886 |
| Red Hat Enterprise Linux 9 | coreutils | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | coreutils-common | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | coreutils-single | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | coreutils | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | coreutils-common | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | coreutils-single | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | coreutils | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | coreutils | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | coreutils-libs | Will not fix Out of support scope | ||
| AlmaLinux 10 | coreutils | Fixed | 9.5-8.el10_2.1 | ALSA-2026:67886 |
| AlmaLinux 10 | coreutils-common | Fixed | 9.5-8.el10_2.1 | ALSA-2026:67886 |
| AlmaLinux 10 | coreutils-single | Fixed | 9.5-8.el10_2.1 | ALSA-2026:67886 |
| Rocky Linux 10 | coreutils | Fixed | 0:9.5-8.el10_2.1 | RLSA-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.
- GNU coreutils: affected: 9.5 to 9.11
Vendor advisories:
References
- https://cert.pl/en/posts/2026/07/CVE-2026-56391
- https://git.savannah.gnu.org/cgit/coreutils.git/
- https://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=d64e35a8a4c0e4608321433e0d84d917e4e36371
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.