Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Red Hat | Red Hat Hardened Images | — | — |
| Red Hat | Red Hat Enterprise Linux 10 | — | — |
| Red Hat | Red Hat Enterprise Linux 6 | — | — |
| Red Hat | Red Hat Enterprise Linux 7 | — | — |
| Red Hat | Red Hat Enterprise Linux 8 | — | — |
| Red Hat | Red Hat Enterprise Linux 9 | — | — |
| Red Hat | Red Hat OpenShift Container Platform 4 | — | — |
| Red Hat | Red Hat OpenShift Container Platform 5 | — | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | shadow | 1:4.20.4-1 | — |
| Debian 13 | shadow | 1:4.17.4-2+deb13u1 | — |
| Debian 12 | shadow | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | shadow | No fix yet | — |
| Ubuntu 26.04 LTS | shadow | No fix yet | — |
| Ubuntu 22.04 LTS | shadow | No fix yet | — |
| Ubuntu 20.04 LTS | shadow | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | shadow | No fix yet | — |
| Ubuntu Pro 16.04 LTS | shadow | No fix yet | — |
| Ubuntu Pro 14.04 LTS | shadow | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Hardened Images 1 | shadow-utils +2 | 2:4.20.0-2.1.hum1 | RHSA-2026:103799 |
Advisories 1
- RHSA-2026:103799 Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update Red Hat Security Advisories (RHSA) · Dec 2, 2026
References
- RHSA-2026:103799 vendor-advisory
- https://access.redhat.com/security/cve/CVE-2026-135901 vdb-entry
- RHBZ#2583156 issue-tracking
- https://github.com/shadow-maint/shadow/releases/tag/4.20.4