Shadow-utils: shadow-utils: newgidmap and newuidmap improperly validate file descriptor location, allowing local file corruption via bind mount
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-135901 shadow Fix available
- Ubuntu UBUNTU-CVE-2026-135901 shadow No fixed version in this record
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: oss-security (Openwall) NVD GitHub Advisory
References
- advisory nvd.nist.gov
- advisory github.com
- DSA DSA-6661-1
- OSS-SECURITY Re: Re: [PATCH v7 0/2] shadow: Security fix for newgidmap(1)
- web secalert@redhat.com
- web secalert@redhat.com
- web secalert@redhat.com
- web openwall.com
- web openwall.com
- web openwall.com
- web github.com
- web access.redhat.com
- web secalert@redhat.com
- web catalog.redhat.com