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

[CVE catalog]

Severity
Medium · CVSS 6.1CVSS: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.

DistributionPackageReleaseVersionStatus
Debiancoreutilssid9.10-1vulnerable
Debiancoreutilsforky9.10-1vulnerable
Debiancoreutilstrixie9.7-3vulnerable
Debiancoreutilsbookworm9.1-1vulnerable
Ubuntucoreutilsnoble9.4-3ubuntu6.3fixed
Opensusecoreutilstumbleweed9.11-5.1fixed
Ubuntucoreutils26.049.5-1ubuntu4vulnerable
Ubuntucoreutils26.049.7-3ubuntu1vulnerable
Ubuntucoreutils26.049.7-3ubuntu2vulnerable
Ubuntucoreutils26.049.7-3ubuntu2.1fixed
CpecoreutilsNot reportedNot reportedunknown
Opensusecoreutilsleap 16.09.6-160000.3.1fixed
Opensusecoreutils-singleleap 16.09.6-160000.3.1fixed
Opensusecoreutils-systemdleap 16.09.6-160000.3.1fixed
Opensusecoreutils-testsuiteleap 16.09.6-160000.3.1fixed
Susecoreutilslinux enterprise server 16.09.6-160000.3.1fixed
Susecoreutils-singlelinux enterprise server 16.09.6-160000.3.1fixed
Susecoreutils-systemdlinux enterprise server 16.09.6-160000.3.1fixed
Susecoreutilslinux enterprise server for sap applications 16.09.6-160000.3.1fixed
Susecoreutils-singlelinux enterprise server for sap applications 16.09.6-160000.3.1fixed
Susecoreutils-systemdlinux enterprise server for sap applications 16.09.6-160000.3.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiancoreutilssourcesid(unfixed)unimportantNot reportedNot reported
Debiancoreutilssourceforky(unfixed)unimportantNot reportedNot reported
Debiancoreutilssourcetrixie(unfixed)unimportantNot reportedNot reported
Debiancoreutilssourcebookworm(unfixed)unimportantNot reportedNot reported
Ubuntucoreutilsdebnoble9.4-3ubuntu6.3Not reportedNot reportedNot reported
Opensusecoreutilsrpmtumbleweed9.11-5.1Not reportedOPENSUSE-SU-2026:11764-1Not reported
Ubuntucoreutilsdeb26.049.7-3ubuntu2.1Not reportedUBUNTU-CVE-2026-56391Not reported
Opensusecoreutilsrpmleap 16.09.6-160000.3.1Not reportedOPENSUSE-SU-2026:22147-1Not reported
Opensusecoreutils-singlerpmleap 16.09.6-160000.3.1Not reportedOPENSUSE-SU-2026:22147-1Not reported
Opensusecoreutils-systemdrpmleap 16.09.6-160000.3.1Not reportedOPENSUSE-SU-2026:22147-1Not reported
Opensusecoreutils-testsuiterpmleap 16.09.6-160000.3.1Not reportedOPENSUSE-SU-2026:22147-1Not reported
Susecoreutilsrpmlinux enterprise server 16.09.6-160000.3.1Not reportedSUSE-SU-2026:24268-1Not reported
Susecoreutils-singlerpmlinux enterprise server 16.09.6-160000.3.1Not reportedSUSE-SU-2026:24268-1Not reported
Susecoreutils-systemdrpmlinux enterprise server 16.09.6-160000.3.1Not reportedSUSE-SU-2026:24268-1Not reported
Susecoreutilsrpmlinux enterprise server for sap applications 16.09.6-160000.3.1Not reportedSUSE-SU-2026:24268-1Not reported
Susecoreutils-singlerpmlinux enterprise server for sap applications 16.09.6-160000.3.1Not reportedSUSE-SU-2026:24268-1Not reported
Susecoreutils-systemdrpmlinux enterprise server for sap applications 16.09.6-160000.3.1Not reportedSUSE-SU-2026:24268-1Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [coreutils]Affected
    Details (2)
    • 9.1-1 · amd64 · bookworm

      Affected

      nvd · coreutils · debian · bookworm; nvd · coreutils · debian · 12

    • 9.1-1 · arm64 · bookworm

      Affected

      nvd · coreutils · debian · bookworm; nvd · coreutils · debian · 12

[Debian 13 (Trixie)]

  • [coreutils]Affected
    Details (2)
    • 9.7-3 · amd64 · trixie

      Affected

      nvd · coreutils · debian · 13

    • 9.7-3 · arm64 · trixie

      Affected

      nvd · coreutils · debian · 13

[openSUSE Tumbleweed]

  • [coreutils]Affected

    Source package: [coreutils]

    Details (1)
    • 9.11-4.3 · x86_64 · tumbleweed

      Affected · Fixed: 9.11-5.1

      nvd · coreutils · opensuse · tumbleweed

  • [coreutils-doc]Unknown

    Source package: [coreutils]

    Details (1)
    • 9.11-4.3 · noarch · tumbleweed

      Unknown · Fixed: 9.11-5.1

      Version impact unknown

      nvd · coreutils · opensuse · tumbleweed

  • Source package: [coreutils]

    Details (1)
    • 9.11-4.3 · noarch · tumbleweed

      Unknown · Fixed: 9.11-5.1

      Version impact unknown

      nvd · coreutils · opensuse · tumbleweed

Observed:

References