# CVE-2026-135901: Shadow-utils: shadow-utils: newgidmap and newuidmap improperly validate file descriptor location, allowing local file corruption via bind mount

- Severity: Medium 4.4 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-12-01T14:52:22.817Z
- Modified: 2026-12-01T16:18:15.533Z
- Weaknesses: CWE-59
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- shadow-utils: no versions given
- openshift/ose-rhel-coreos-8: no versions given
- openshift/ose-rhel-coreos-9: no versions given
- openshift/ose-rhel-coreos-10: no versions given

## References

- <https://access.redhat.com/security/cve/CVE-2026-135901> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2583156> (issue-tracking)
- <https://github.com/shadow-maint/shadow/releases/tag/4.20.4>
- <http://www.openwall.com/lists/oss-security/2026/11/24/16>
- <http://www.openwall.com/lists/oss-security/2026/11/24/19>
- <http://www.openwall.com/lists/oss-security/2026/11/25/4>

## Sources

- CVE List: [CVE-2026-135901](https://www.cve.org/CVERecord?id=CVE-2026-135901), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-135901](https://nvd.nist.gov/vuln/detail/CVE-2026-135901), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-135901 · Whole record: https://cve.day/CVE-2026-135901.json · Rebuilt by cve.day 2026-12-01T16:32:15.931Z
