A flaw was found in shadow-utils. The newgidmap and newuidmap utilities validate that a caller-supplied file descriptor refers to a directory on the /...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Debian:12shadow |
All versions→ Not listed |
Not listed |
| Debian:13shadow |
< 1:4.17.4-2+deb13u1→ 1:4.17.4-2+deb13u1 |
1:4.17.4-2+deb13u1 |
| Debian:14shadow |
< 1:4.20.4-1→ 1:4.20.4-1 |
1:4.20.4-1 |
Original description The description as published by the source.
A flaw was found in shadow-utils. The newgidmap and newuidmap utilities validate that a caller-supplied file descriptor refers to a directory on the /proc filesystem by comparing device numbers, then open a file by name relative to that directory to write privileged group/user ID mapping data. A local, unprivileged user can use Linux user and mount namespaces to bind-mount an attacker-chosen file over the expected path, defeating the device-number check and causing the helper to overwrite the first five bytes of the attacker-chosen file with fixed content.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory security-tracker.debian.org