CVE-2026-56391
Out‑of‑bounds Read in GNU coreutils
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Active
What an attacker can affect
- Confidentiality
- Low
- Integrity
- None
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
4.6
Out‑of‑bounds Read in GNU coreutils
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.
- Record
CVE-2026-56391- CVSS 4.0
- 4.6 Medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N - Weakness
- CWE-125
- Updated
- 2026-11-02
EUVDEUVD-2026-48524
4.6
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.
- Record
EUVD-2026-48524- CVSS 4.0
- 4.6 Medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-7xvj-m9x7-qgxq
4.6
GNU coreutils uniq is vulnerable to an out‑of‑bounds read due to incorrect handling of multibyte...
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.
- Record
GHSA-7xvj-m9x7-qgxq- CVSS 4.0
- 4.6 Medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
NVD
4.6
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.
- Record
CVE-2026-56391- CVSS 4.0
- 4.6 Medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
OSV
4.6
Out‑of‑bounds Read in GNU coreutils
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.
- Record
CVE-2026-56391- CVSS 4.0
- 4.6 Medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N - Weakness
- CWE-125
- Updated
- 2026-11-07
OSVDEBIAN-CVE-2026-56391
6.1
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.
- Record
DEBIAN-CVE-2026-56391- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H - Updated
- 2026-11-02
Show 12 moreShow less
OSVJLSEC-2026-1195
4.6
GNU coreutils uniq is vulnerable to an out‑of‑bounds read due to incorrect handling of multibyte...
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.
- Record
JLSEC-2026-1195- CVSS 4.0
- 4.6 Medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Updated
- 2026-11-02
OSVRHSA-2026:46515
6.1
Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update
- Record
RHSA-2026:46515- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H - Updated
- 2026-11-02
OSVRHSA-2026:67886
6.1
Red Hat Security Advisory: coreutils security update
- Record
RHSA-2026:67886- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H - Updated
- 2026-11-02
OSVRLSA-2026:67886
6.1
Moderate: coreutils security update
The coreutils packages contain the GNU Core Utilities and represent a combination of the previously used GNU fileutils, sh-utils, and textutils packages.
Security Fix(es):
-
coreutils: GNU coreutils uniq: Denial of Service and information disclosure via out-of-bounds read with multibyte input (CVE-2026-56391)
-
coreutils: GNU coreutils unexpand: Denial of Service via crafted tab stop values (CVE-2026-56392)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
- Record
RLSA-2026:67886- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-56391
4.6
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.
- Record
UBUNTU-CVE-2026-56391- CVSS 4.0
- 4.6 Medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N - CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H - Updated
- 2026-11-02
OSVALSA-2026:67886 No score
Moderate: coreutils security update
The coreutils packages contain the GNU Core Utilities and represent a combination of the previously used GNU fileutils, sh-utils, and textutils packages.
Security Fix(es):
- coreutils: GNU coreutils uniq: Denial of Service and information disclosure via out-of-bounds read with multibyte input (CVE-2026-56391)
- coreutils: GNU coreutils unexpand: Denial of Service via crafted tab stop values (CVE-2026-56392)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
- Record
ALSA-2026:67886- Updated
- 2026-11-02
OSVMGASA-2026-0439 No score
Updated coreutils package fixes a security vulnerability
Out‑of‑bounds Read in GNU coreutils. (CVE-2026-56391)
- Record
MGASA-2026-0439- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:11764-1 No score
coreutils-9.11-5.1 on GA media
These are all security issues fixed in the coreutils-9.11-5.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:11764-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:22147-1 No score
Security update for coreutils
This update for coreutils fixes the following issue:
- CVE-2026-56391: uniq: denial of service and information disclosure via out-of-bounds read with multibyte input (bsc#1272698).
- Record
openSUSE-SU-2026:22147-1- Updated
- 2026-11-02
OSVSUSE-SU-2026:24268-1 No score
Security update for coreutils
This update for coreutils fixes the following issue:
- CVE-2026-56391: uniq: denial of service and information disclosure via out-of-bounds read with multibyte input (bsc#1272698).
- Record
SUSE-SU-2026:24268-1- Updated
- 2026-11-02
OSVSUSE-SU-2026:24406-1 No score
Security update for coreutils
This update for coreutils fixes the following issue:
- CVE-2026-56391: uniq: denial of service and information disclosure via out-of-bounds read with multibyte input (bsc#1272698).
- Record
SUSE-SU-2026:24406-1- Updated
- 2026-11-02
OSVUSN-8697-1 No score
coreutils vulnerabilities
It was discovered that GNU Core Utilities sort had a heap buffer under-read in its begfield() function. A local attacker could possibly use this issue to cause GNU Core Utilities to crash, resulting in a denial of service, or obtain sensitive information. (CVE-2025-5278)
It was discovered that GNU Core Utilities uniq had an out-of-bounds read when the -w option was used with crafted multibyte input. A local attacker could possibly use this issue to cause GNU Core Utilities to crash, resulting in a denial of service, or obtain sensitive information. This issue only affected Ubuntu 26.04 LTS. (CVE-2026-56391)
- Record
USN-8697-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
coreutilsAlmaLinux:10 From an advisory covering 2 CVEs |
before 9.5-8.el10_2.1 | 9.5-8.el10_2.1 |
coreutils-commonAlmaLinux:10 From an advisory covering 2 CVEs |
before 9.5-8.el10_2.1 | 9.5-8.el10_2.1 |
coreutils-singleAlmaLinux:10 From an advisory covering 2 CVEs |
before 9.5-8.el10_2.1 | 9.5-8.el10_2.1 |
coreutilsDebian:12 |
All versions, plus listed versions 9.1-19.10-19.4-19.4-29.4-3 Show 7 moreShow less9.4-3.19.5-19.6-19.6-29.7-19.7-29.7-3 |
None known |
coreutilsDebian:13 |
All versions, plus listed versions 9.10-19.7-3 |
None known |
coreutilsDebian:14 |
All versions, plus listed versions 9.10-19.7-3 |
None known |
coreutils_jllJulia |
9.5.0+0 and later | None known |
coreutilsMageia:10 |
before 9.8-3.mga10 | 9.8-3.mga10 |
coreutilsRed Hat:hummingbird:1 |
before 0:9.11-5.1.hum1 | 0:9.11-5.1.hum1 |
coreutils-commonRed Hat:hummingbird:1 |
before 0:9.11-5.1.hum1 | 0:9.11-5.1.hum1 |
Show 24 moreShow less
| Package | Affected | Fixed |
|---|---|---|
coreutils-singleRed Hat:hummingbird:1 |
before 0:9.11-5.1.hum1 | 0:9.11-5.1.hum1 |
coreutilsRed Hat:enterprise_linux:10.2 From an advisory covering 2 CVEs |
before 0:9.5-8.el10_2.1 | 0:9.5-8.el10_2.1 |
coreutils-debuginfoRed Hat:enterprise_linux:10.2 From an advisory covering 2 CVEs |
before 0:9.5-8.el10_2.1 | 0:9.5-8.el10_2.1 |
coreutils-debugsourceRed Hat:enterprise_linux:10.2 From an advisory covering 2 CVEs |
before 0:9.5-8.el10_2.1 | 0:9.5-8.el10_2.1 |
coreutils-singleRed Hat:enterprise_linux:10.2 From an advisory covering 2 CVEs |
before 0:9.5-8.el10_2.1 | 0:9.5-8.el10_2.1 |
coreutils-single-debuginfoRed Hat:enterprise_linux:10.2 From an advisory covering 2 CVEs |
before 0:9.5-8.el10_2.1 | 0:9.5-8.el10_2.1 |
coreutilsRocky Linux:10 From an advisory covering 2 CVEs |
before 0:9.5-8.el10_2.1 | 0:9.5-8.el10_2.1 |
coreutilsSUSE:Linux Enterprise Server 16.0 |
before 9.6-160000.3.1 | 9.6-160000.3.1 |
coreutils-singleSUSE:Linux Enterprise Server 16.0 |
before 9.6-160000.3.1 | 9.6-160000.3.1 |
coreutils-systemdSUSE:Linux Enterprise Server 16.0 |
before 9.6-160000.3.1 | 9.6-160000.3.1 |
coreutilsSUSE:Linux Enterprise Server for SAP applications 16.0 |
before 9.6-160000.3.1 | 9.6-160000.3.1 |
coreutils-singleSUSE:Linux Enterprise Server for SAP applications 16.0 |
before 9.6-160000.3.1 | 9.6-160000.3.1 |
coreutils-systemdSUSE:Linux Enterprise Server for SAP applications 16.0 |
before 9.6-160000.3.1 | 9.6-160000.3.1 |
coreutilsSUSE:Linux Micro 6.2 |
before 9.6-160000.3.1 | 9.6-160000.3.1 |
coreutils-systemdSUSE:Linux Micro 6.2 |
before 9.6-160000.3.1 | 9.6-160000.3.1 |
coreutilsUbuntu:26.04:LTS |
before 9.7-3ubuntu2.1, plus listed versions 9.5-1ubuntu49.7-3ubuntu19.7-3ubuntu2 |
9.7-3ubuntu2.1 |
coreutilsUbuntu:22.04:LTS From an advisory covering 2 CVEs |
before 8.32-4.1ubuntu1.4, plus listed versions 8.32-4ubuntu28.32-4ubuntu38.32-4.1ubuntu18.32-4.1ubuntu1.18.32-4.1ubuntu1.28.32-4.1ubuntu1.3 |
8.32-4.1ubuntu1.4 |
coreutilsUbuntu:24.04:LTS From an advisory covering 2 CVEs |
before 9.4-3ubuntu6.3, plus listed versions 9.1-1ubuntu29.4-2ubuntu19.4-2ubuntu29.4-2ubuntu39.4-2ubuntu4 Show 5 moreShow less9.4-3ubuntu39.4-3ubuntu59.4-3ubuntu69.4-3ubuntu6.19.4-3ubuntu6.2 |
9.4-3ubuntu6.3 |
coreutilsUbuntu:26.04:LTS From an advisory covering 2 CVEs |
before 9.7-3ubuntu2.1, plus listed versions 9.5-1ubuntu49.7-3ubuntu19.7-3ubuntu2 |
9.7-3ubuntu2.1 |
coreutilsopenSUSE:Tumbleweed From an advisory covering 2 CVEs |
before 9.11-5.1 | 9.11-5.1 |
coreutilsopenSUSE:Leap 16.0 |
before 9.6-160000.3.1 | 9.6-160000.3.1 |
coreutils-singleopenSUSE:Leap 16.0 |
before 9.6-160000.3.1 | 9.6-160000.3.1 |
coreutils-systemdopenSUSE:Leap 16.0 |
before 9.6-160000.3.1 | 9.6-160000.3.1 |
coreutils-testsuiteopenSUSE:Leap 16.0 |
before 9.6-160000.3.1 | 9.6-160000.3.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected, aliases, products, published, references | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-56391 is a medium vulnerability (CVSS 4.6) in Gnu Coreutils, published July 24, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.13%, the 2nd percentile. Fixed in coreutils 9.8-3.mga10.
References
cert.pl/en/posts/2026/07/CVE-2026-56391
git.savannah.gnu.org/cgit/coreutils.git
git.savannah.gnu.org/cgit/coreutils.git/commit?id=d64e35a8a4c0e4608321433e0d84d917e4e36371
nvd.nist.gov/vuln/detail/CVE-2026-56391
github.com/advisories/GHSA-7xvj-m9x7-qgxq
access.redhat.com/errata/RHSA-2026:67886
Show 31 moreShow less
access.redhat.com/security/cve/CVE-2026-56391
access.redhat.com/security/cve/CVE-2026-56392
bugzilla.redhat.com/2506691
bugzilla.redhat.com/2506694
errata.almalinux.org/10/ALSA-2026-67886.html
github.com/CVEProject/cvelistV5/tree/main/cves/2026/56xxx/CVE-2026-56391.json
security-tracker.debian.org/tracker/CVE-2026-56391
advisories.mageia.org/MGASA-2026-0439.html
bugs.mageia.org/show_bug.cgi?id=36171
openwall.com/lists/oss-security/2026/07/25/2
lists.fedoraproject.org/archives/list/[email protected]/message/NBV4TP2X6G6D4ITB6FA6CAPLJARRHBQS
ubuntu.com/security/notices/USN-8697-1
access.redhat.com/errata/RHSA-2026:46515
access.redhat.com/security/updates/classification
images.redhat.com
security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_46515.json
bugzilla.redhat.com/show_bug.cgi?id=2506691
cve.org/CVERecord?id=CVE-2026-56391
bugzilla.redhat.com/show_bug.cgi?id=2506694
security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_67886.json
cve.org/CVERecord?id=CVE-2026-56392
nvd.nist.gov/vuln/detail/CVE-2026-56392
git.savannah.gnu.org/cgit/coreutils.git/commit?id=b60a159fdc5bfcf9988d3a4cb6f53abe8ad5d35d
errata.rockylinux.org/RLSA-2026:67886
suse.com/support/update/announcement/2026/suse-su-202624268-1
bugzilla.suse.com/1272698
suse.com/security/cve/CVE-2026-56391
suse.com/support/update/announcement/2026/suse-su-202624406-1
ubuntu.com/security/CVE-2026-56391
ubuntu.com/security/CVE-2025-5278
suse.com/security/cve/CVE-2026-56392