Bug 2506691 (CVE-2026-56391) - CVE-2026-56391 coreutils: GNU coreutils uniq: Denial of Service and information disclosure via out-of-bounds read with multibyte input
Summary: CVE-2026-56391 coreutils: GNU coreutils uniq: Denial of Service and informati...
Keywords:
Status: NEW
Alias: CVE-2026-56391
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2507449
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-24 09:01 UTC by OSIDB Bzimport
Modified: 2026-10-01 14:16 UTC (History)
19 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:67886 0 None None None 2026-09-16 09:25:50 UTC

Description OSIDB Bzimport 2026-07-24 09:01:29 UTC
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.

Comment 3 Jon Orris 2026-09-16 09:25:48 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:67886 https://access.redhat.com/errata/RHSA-2026:67886


Note You need to log in before you can comment on or make changes to this bug.