CVE-2026-35353: CWE-367: Time-of-Check Time-of-Use (TOCTOU) Race Condition in Uutils coreutils
The mkdir utility in uutils coreutils incorrectly applies permissions when using the -m flag by creating a directory with umask-derived permissions (typically 0755) before subsequently changing them to the requested mode via a separate chmod system call. In multi-user environments, this introduces a brief window where a directory intended to be private is accessible to other users, potentially leading to unauthorized data access.
AI Analysis
Technical Summary
The mkdir utility in uutils coreutils incorrectly handles permission setting when the -m flag is used. Instead of atomically creating the directory with the requested permissions, it first creates the directory with default umask permissions and then changes them with a separate chmod call. This TOCTOU race condition can expose directories intended to be private to other users for a short time in multi-user environments. The vulnerability is identified as CWE-367 and has a low severity rating (CVSS 3.3). There is no vendor advisory or patch information available at this time.
Potential Impact
The vulnerability allows a brief window during directory creation where permissions are more permissive than intended, potentially enabling unauthorized users to access directories that should be private. However, the impact is limited to information disclosure (confidentiality) and does not affect integrity or availability. The low CVSS score reflects the limited scope and complexity of exploitation.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should be aware of the potential race condition when using the -m flag with mkdir in uutils coreutils and consider alternative methods or additional access controls to protect sensitive directories in multi-user environments.
CVE-2026-35353: CWE-367: Time-of-Check Time-of-Use (TOCTOU) Race Condition in Uutils coreutils
Description
The mkdir utility in uutils coreutils incorrectly applies permissions when using the -m flag by creating a directory with umask-derived permissions (typically 0755) before subsequently changing them to the requested mode via a separate chmod system call. In multi-user environments, this introduces a brief window where a directory intended to be private is accessible to other users, potentially leading to unauthorized data access.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The mkdir utility in uutils coreutils incorrectly handles permission setting when the -m flag is used. Instead of atomically creating the directory with the requested permissions, it first creates the directory with default umask permissions and then changes them with a separate chmod call. This TOCTOU race condition can expose directories intended to be private to other users for a short time in multi-user environments. The vulnerability is identified as CWE-367 and has a low severity rating (CVSS 3.3). There is no vendor advisory or patch information available at this time.
Potential Impact
The vulnerability allows a brief window during directory creation where permissions are more permissive than intended, potentially enabling unauthorized users to access directories that should be private. However, the impact is limited to information disclosure (confidentiality) and does not affect integrity or availability. The low CVSS score reflects the limited scope and complexity of exploitation.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should be aware of the potential race condition when using the -m flag with mkdir in uutils coreutils and consider alternative methods or additional access controls to protect sensitive directories in multi-user environments.
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: 69e8f7d019fe3cd2cdd00c73
Added to database: 4/22/2026, 4:31:12 PM
Last enriched: 4/22/2026, 5:02:00 PM
Last updated: 4/23/2026, 2:42:51 AM
Views: 6
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.
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.