CVE-2026-35354
JSON

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 packageVersionsReported by
coreutilsNot specifiedCVE List
coreutils (crates.io)up to 0.8.0GitHub Advisory Database
uutils coreutilsNot specifiedNVD

All scores

canonical4.7medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N
GitHub4.7medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N

Classification

CWE-367

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

Sources

SourceRecordLicence
CVE ListCVE-2026-35354 changed 2026-04-22CVE Terms of Use
GitHub Advisory DatabaseGHSA-x4mc-mqm7-gg39 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-35354 changed 2026-10-26Public domain