uutils coreutils mkdir Permission Exposure Race Condition with -m
Uutils coreutils
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| uu_mkdir crates.io |
|
|
Original 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.
From the CVE record · canonical
References
- github.com/uutils/coreutils/pull/10036Patch
- github.com/uutils/coreutils/releases/tag/0.6.0Release notes
- github.com/uutils
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/35xxx/CVE-2026-35353.json
- nvd.nist.gov/vuln/detail/CVE-2026-35353
- github.com/uutils/coreutils
- github.com/uutils/coreutils/security/advisories/GHSA-mj6p-44ch-cq69
- github.com/uutils/coreutils/commit/037b9583bc03d814e8516df54ebcda6f681fe1f8