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

Published Jul 24, 2026
·
Updated

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 findfield() 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.

Affected Software

1 affected component
GNU coreutils uniq

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade GNU coreutils uniq to a version that resolves this vulnerability.

    Patch d64e35a8a4c0e4608321433e0d84d917e4e36371

Event History

Jul 24, 2026
CVE Published
via MITRE·07:44 AM
Data Sourced
via MITRE·07:44 AM
DescriptionWeakness
Data Sourced
via NVD·09:16 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-56391?

CVE-2026-56391 has a risk score of 23, indicating a significant security vulnerability.

2

How do I fix CVE-2026-56391?

To remediate CVE-2026-56391, update your GNU coreutils to the latest version where the vulnerability has been patched.

3

What type of vulnerability is CVE-2026-56391?

CVE-2026-56391 is classified as an out-of-bounds read vulnerability.

4

Which software is affected by CVE-2026-56391?

CVE-2026-56391 affects the GNU coreutils uniq tool.

5

How does CVE-2026-56391 impact system security?

CVE-2026-56391 can lead to information disclosure through incorrect handling of multibyte input.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203