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.
Problem types
CWE-367: Time-of-Check Time-of-Use (TOCTOU) Race Condition
Product status
Any version before 0.6.0
Credits
Zellic
References
github.com/uutils/coreutils/pull/10036
github.com/uutils/coreutils/releases/tag/0.6.0