CVE-2026-35354: CWE-367: Time-of-Check Time-of-Use (TOCTOU) Race Condition in Uutils coreutils
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.
AI Analysis
Technical Summary
This vulnerability involves a TOCTOU race condition in the mv utility of uutils coreutils when moving files across devices. The extended attribute preservation logic uses multiple system calls that resolve file paths independently, allowing a local attacker with write permissions in the directory to swap files between these calls. This can result in the destination file receiving inconsistent or incorrect security extended attributes, including SELinux labels or file capabilities. The vulnerability is identified as CWE-367 and has a CVSS 3.1 base score of 4.7, indicating medium severity. There is no vendor advisory or patch information currently available, and no known exploits in the wild have been reported.
Potential Impact
The vulnerability allows a local attacker with write access to the directory to cause the destination file to receive an inconsistent mix of security extended attributes during cross-device moves. This could lead to incorrect security labeling or capabilities being applied to files, potentially undermining security policies enforced by mechanisms such as SELinux or file capabilities. There is no indication of confidentiality or availability impact, and exploitation requires local access with write permissions.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict write access to directories where the mv utility is used for cross-device moves by untrusted users to reduce the risk of exploitation.
CVE-2026-35354: CWE-367: Time-of-Check Time-of-Use (TOCTOU) Race Condition in Uutils coreutils
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability involves a TOCTOU race condition in the mv utility of uutils coreutils when moving files across devices. The extended attribute preservation logic uses multiple system calls that resolve file paths independently, allowing a local attacker with write permissions in the directory to swap files between these calls. This can result in the destination file receiving inconsistent or incorrect security extended attributes, including SELinux labels or file capabilities. The vulnerability is identified as CWE-367 and has a CVSS 3.1 base score of 4.7, indicating medium severity. There is no vendor advisory or patch information currently available, and no known exploits in the wild have been reported.
Potential Impact
The vulnerability allows a local attacker with write access to the directory to cause the destination file to receive an inconsistent mix of security extended attributes during cross-device moves. This could lead to incorrect security labeling or capabilities being applied to files, potentially undermining security policies enforced by mechanisms such as SELinux or file capabilities. There is no indication of confidentiality or availability impact, and exploitation requires local access with write permissions.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict write access to directories where the mv utility is used for cross-device moves by untrusted users to reduce the risk of exploitation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- canonical
- Date Reserved
- 2026-04-02T12:58:56.087Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e8f7d019fe3cd2cdd00c77
Added to database: 4/22/2026, 4:31:12 PM
Last enriched: 4/22/2026, 5:01:52 PM
Last updated: 4/23/2026, 1:06:30 AM
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.