
CVE catalog
CVE-2026-56391
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 leng
- Severity
- Medium · CVSS 6.1
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.13% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | coreutils | sid | 9.10-1 | vulnerable |
| Debian | coreutils | forky | 9.10-1 | vulnerable |
| Debian | coreutils | trixie | 9.7-3 | vulnerable |
| Debian | coreutils | bookworm | 9.1-1 | vulnerable |
| Ubuntu | coreutils | noble | 9.4-3ubuntu6.3 | fixed |
| Opensuse | coreutils | tumbleweed | 9.11-5.1 | fixed |
| Ubuntu | coreutils | 26.04 | 9.5-1ubuntu4 | vulnerable |
| Ubuntu | coreutils | 26.04 | 9.7-3ubuntu1 | vulnerable |
| Ubuntu | coreutils | 26.04 | 9.7-3ubuntu2 | vulnerable |
| Ubuntu | coreutils | 26.04 | 9.7-3ubuntu2.1 | fixed |
| Cpe | coreutils | Not reported | Not reported | unknown |
| Opensuse | coreutils | leap 16.0 | 9.6-160000.3.1 | fixed |
| Opensuse | coreutils-single | leap 16.0 | 9.6-160000.3.1 | fixed |
| Opensuse | coreutils-systemd | leap 16.0 | 9.6-160000.3.1 | fixed |
| Opensuse | coreutils-testsuite | leap 16.0 | 9.6-160000.3.1 | fixed |
| Suse | coreutils | linux enterprise server 16.0 | 9.6-160000.3.1 | fixed |
| Suse | coreutils-single | linux enterprise server 16.0 | 9.6-160000.3.1 | fixed |
| Suse | coreutils-systemd | linux enterprise server 16.0 | 9.6-160000.3.1 | fixed |
| Suse | coreutils | linux enterprise server for sap applications 16.0 | 9.6-160000.3.1 | fixed |
| Suse | coreutils-single | linux enterprise server for sap applications 16.0 | 9.6-160000.3.1 | fixed |
| Suse | coreutils-systemd | linux enterprise server for sap applications 16.0 | 9.6-160000.3.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | coreutils | source | sid | (unfixed) | unimportant | Not reported | Not reported |
| Debian | coreutils | source | forky | (unfixed) | unimportant | Not reported | Not reported |
| Debian | coreutils | source | trixie | (unfixed) | unimportant | Not reported | Not reported |
| Debian | coreutils | source | bookworm | (unfixed) | unimportant | Not reported | Not reported |
| Ubuntu | coreutils | deb | noble | 9.4-3ubuntu6.3 | Not reported | Not reported | Not reported |
| Opensuse | coreutils | rpm | tumbleweed | 9.11-5.1 | Not reported | OPENSUSE-SU-2026:11764-1 | Not reported |
| Ubuntu | coreutils | deb | 26.04 | 9.7-3ubuntu2.1 | Not reported | UBUNTU-CVE-2026-56391 | Not reported |
| Opensuse | coreutils | rpm | leap 16.0 | 9.6-160000.3.1 | Not reported | OPENSUSE-SU-2026:22147-1 | Not reported |
| Opensuse | coreutils-single | rpm | leap 16.0 | 9.6-160000.3.1 | Not reported | OPENSUSE-SU-2026:22147-1 | Not reported |
| Opensuse | coreutils-systemd | rpm | leap 16.0 | 9.6-160000.3.1 | Not reported | OPENSUSE-SU-2026:22147-1 | Not reported |
| Opensuse | coreutils-testsuite | rpm | leap 16.0 | 9.6-160000.3.1 | Not reported | OPENSUSE-SU-2026:22147-1 | Not reported |
| Suse | coreutils | rpm | linux enterprise server 16.0 | 9.6-160000.3.1 | Not reported | SUSE-SU-2026:24268-1 | Not reported |
| Suse | coreutils-single | rpm | linux enterprise server 16.0 | 9.6-160000.3.1 | Not reported | SUSE-SU-2026:24268-1 | Not reported |
| Suse | coreutils-systemd | rpm | linux enterprise server 16.0 | 9.6-160000.3.1 | Not reported | SUSE-SU-2026:24268-1 | Not reported |
| Suse | coreutils | rpm | linux enterprise server for sap applications 16.0 | 9.6-160000.3.1 | Not reported | SUSE-SU-2026:24268-1 | Not reported |
| Suse | coreutils-single | rpm | linux enterprise server for sap applications 16.0 | 9.6-160000.3.1 | Not reported | SUSE-SU-2026:24268-1 | Not reported |
| Suse | coreutils-systemd | rpm | linux enterprise server for sap applications 16.0 | 9.6-160000.3.1 | Not reported | SUSE-SU-2026:24268-1 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [coreutils]Affected
Details (2)
9.1-1· amd64 · bookwormAffected
nvd · coreutils · debian · bookworm; nvd · coreutils · debian · 12
9.1-1· arm64 · bookwormAffected
nvd · coreutils · debian · bookworm; nvd · coreutils · debian · 12
[Debian 13 (Trixie)]
- [coreutils]Affected
Details (2)
9.7-3· amd64 · trixieAffected
nvd · coreutils · debian · 13
9.7-3· arm64 · trixieAffected
nvd · coreutils · debian · 13
[openSUSE Tumbleweed]
- [coreutils]Affected
Source package: [coreutils]
Details (1)
9.11-4.3· x86_64 · tumbleweedAffected · Fixed:
9.11-5.1nvd · coreutils · opensuse · tumbleweed
- [coreutils-doc]Unknown
Source package: [coreutils]
Details (1)
9.11-4.3· noarch · tumbleweedUnknown · Fixed:
9.11-5.1Version impact unknown
nvd · coreutils · opensuse · tumbleweed
- [coreutils-lang]Unknown
Source package: [coreutils]
Details (1)
9.11-4.3· noarch · tumbleweedUnknown · Fixed:
9.11-5.1Version impact unknown
nvd · coreutils · opensuse · tumbleweed
Observed:
References
- [https://cert.pl/en/posts/2026/07/CVE-2026-56391]
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_11764-1.json]
- [https://git.savannah.gnu.org/cgit/coreutils.git/]
- [https://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=d64e35a8a4c0e4608321433e0d84d917e4e36371]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-56391]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-56391]
- [https://osv.dev/vulnerability/SUSE-SU-2026:24268-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-56391]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:11764-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:22147-1]
- [https://security-tracker.debian.org/tracker/CVE-2026-56391]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-56391.json]
- [https://ubuntu.com/security/notices/USN-8697-1]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]