Red Hat VEX
RHVEX-CVE-2022-21658
rust: Race condition in remove_dir_all leading to removal of files outside of the directory being removed
Details
A race condition flaw was found in Rust's std::fs::remove_dir_all function. Rust applications that use this function may be vulnerable to a race condition where an unprivileged attacker can trick the application into deleting files and directories, causing an impact on system data integrity. If the application is privileged, an attacker can possibly delete files they would not usually have access to.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:8 | stratisd | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | stratisd-dracut | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | stratisd | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | stratisd-dracut | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | stratisd-tools | All versions, will not be fixed |