4.7medium
uutils coreutils mv Security Xattr TOCTOU Race in Cross-Device
- Severity
- 4.7medium CVSS:3.1 by canonical
- Exploit likelihood
- 0.11% (higher than 1% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- canonical
- Also known as
- GHSA-x4mc-mqm7-gg39
Description
A Time-of-Check to Time-of-Use (TOCTOU) vulnerability exists in the mv utility of uutils coreutils during cross-device moves. The extended attribute (xattr) preservation logic uses multiple path-based system calls that perform fresh path-to-inode lookups for each operation. A local attacker with write access to the directory can exploit this race to swap files between calls, causing the destination file to receive an inconsistent mix of security xattrs, such as SELinux labels or file capabilities.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| coreutils | Not specified | CVE List |
| coreutils (crates.io) | up to 0.8.0 | GitHub Advisory Database |
| uutils coreutils | Not specified | NVD |
All scores
| canonical | 4.7medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N |
| GitHub | 4.7medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
A Time-of-Check to Time-of-Use (TOCTOU) vulnerability exists in the mv utility of uutils coreutils during cross-device moves. The extended attribute (xattr) preservation logic uses multiple path-based system calls that perform fresh path-to-inode lookups for each operation. A local attacker with write access to the directory can exploit this race to swap files between calls, causing the destination file to receive an inconsistent mix of security xattrs, such as SELinux labels or file capabilities.
NVD (es)
Una vulnerabilidad de tipo Time-of-Check to Time-of-Use (TOCTOU) existe en la utilidad mv de uutils coreutils durante movimientos entre dispositivos. La lógica de preservación de atributos extendidos (xattr) utiliza múltiples llamadas al sistema basadas en rutas que realizan nuevas búsquedas de ruta a inodo para cada operación. Un atacante local con acceso de escritura al directorio puede explotar esta condición de carrera para intercambiar archivos entre llamadas, causando que el archivo de destino reciba una mezcla inconsistente de xattrs de seguridad, como etiquetas SELinux o capacidades de archivo.
References
| https://github.com/uutils/coreutils/issues/10014 | exploit, issue-tracking, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-35354 | advisory | |
| https://github.com/uutils/coreutils | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-35354 changed 2026-04-22 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-x4mc-mqm7-gg39 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-35354 changed 2026-10-26 | Public domain |