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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.6, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-24 · Modified: 2026-07-24
- Aliases: MGASA-2026-0439, RHSA-2026:46515, UBUNTU-CVE-2026-56391, DEBIAN-CVE-2026-56391, SUSE-SU-2026:24268-1, openSUSE-SU-2026:22147-1, SUSE-SU-2026:24406-1
- Record: https://cvemate.com/vulnerability/CVE-2026-56391 · JSON: https://cvemate.com/vulnerability/CVE-2026-56391/json

## Description

```text
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.
```

## Signals

- CVSS: 6.1 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
- EPSS: 0.131%, percentile 2.883%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian coreutils (Debian): All versions (No fix recorded)
- ubuntu coreutils (Ubuntu): \< 9.7-3ubuntu2.1
- gnu coreutils: ≥ 9.5, ≤ 9.11
- mageia coreutils (Mageia): \< 9.8-3.mga10
- opensuse coreutils-single&distro=openSUSE Leap 16.0 (openSUSE): \< 9.6-160000.3.1
- opensuse coreutils-systemd&distro=openSUSE Leap 16.0 (openSUSE): \< 9.6-160000.3.1
- opensuse coreutils-testsuite&distro=openSUSE Leap 16.0 (openSUSE): \< 9.6-160000.3.1
- opensuse coreutils&distro=openSUSE Leap 16.0 (openSUSE): \< 9.6-160000.3.1
- redhat coreutils (Red Hat): \< 0:9.11-5.1.hum1
- redhat coreutils-common (Red Hat): \< 0:9.11-5.1.hum1
- redhat coreutils-single (Red Hat): \< 0:9.11-5.1.hum1
- suse coreutils-single&distro=SUSE Linux Enterprise Server 16.0 (SUSE Linux Enterprise): \< 9.6-160000.3.1
- suse coreutils-single&distro=SUSE Linux Enterprise Server for SAP applications 16.0 (SUSE Linux Enterprise): \< 9.6-160000.3.1
- suse coreutils-systemd&distro=SUSE Linux Enterprise Server 16.0 (SUSE Linux Enterprise): \< 9.6-160000.3.1
- suse coreutils-systemd&distro=SUSE Linux Enterprise Server for SAP applications 16.0 (SUSE Linux Enterprise): \< 9.6-160000.3.1
- suse coreutils-systemd&distro=SUSE Linux Micro 6.2 (SUSE Linux Enterprise): \< 9.6-160000.3.1
- suse coreutils&distro=SUSE Linux Enterprise Server 16.0 (SUSE Linux Enterprise): \< 9.6-160000.3.1
- suse coreutils&distro=SUSE Linux Enterprise Server for SAP applications 16.0 (SUSE Linux Enterprise): \< 9.6-160000.3.1
- suse coreutils&distro=SUSE Linux Micro 6.2 (SUSE Linux Enterprise): \< 9.6-160000.3.1

## References (first 20 of 22)

- <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>
- <https://advisories.mageia.org/MGASA-2026-0439.html>
- <https://bugs.mageia.org/show_bug.cgi?id=36171>
- <https://www.openwall.com/lists/oss-security/2026/07/25/2>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NBV4TP2X6G6D4ITB6FA6CAPLJARRHBQS/>
- <https://ubuntu.com/security/notices/USN-8697-1>
- <https://access.redhat.com/errata/RHSA-2026:46515>
- <https://access.redhat.com/security/cve/CVE-2026-56391>
- <https://access.redhat.com/security/updates/classification/>
- <https://images.redhat.com/>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_46515.json>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2506691>
- <https://www.cve.org/CVERecord?id=CVE-2026-56391>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-56391>
- <https://ubuntu.com/security/CVE-2026-56391>
- <https://security-tracker.debian.org/tracker/CVE-2026-56391>
- <https://www.suse.com/support/update/announcement/2026/suse-su-202624268-1/>
- <https://bugzilla.suse.com/1272698>

---

Data as of 2026-12-05T03:20:59.894Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
