4.6medium
Out‑of‑bounds Read in GNU coreutils
- Severity
- 4.6medium CVSS:4.0 by CERT-PL
- Exploit likelihood
- 0.13% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- CERT-PL
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| GNU coreutils | from 9.5 up to 9.11 | CVE List, NVD |
All scores
| CERT-PL | 4.6medium CVSS:4.0 | 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 |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
GNU coreutils uniq es vulnerable a una lectura fuera de límites debido a un manejo incorrecto de entrada multibyte cuando se utiliza la opción -w (--check-chars). La función find_field() calcula incorrectamente la longitud en bytes de los caracteres al procesar repetidamente un puntero fijo en lugar de avanzar a través de la entrada, lo que resulta en un valor de longitud inflado. Esta longitud incorrecta se utiliza posteriormente en una operación memcmp, causando lecturas más allá del búfer asignado al procesar entrada multibyte manipulada. Al ejecutar GNU coreutils uniq con argumentos proporcionados por el atacante, este comportamiento conduce a un fallo y a una posible exposición de memoria adyacente del heap. Este problema ha sido corregido en el commit d64e35a8a4c0e4608321433e0d84d917e4e36371.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-56391 changed 2026-07-24 | CVE Terms of Use |
| NVD | CVE-2026-56391 changed 2026-10-24 | Public domain |