{"id":"CVE-2026-135901","summary":"Shadow-utils: shadow-utils: newgidmap and newuidmap improperly validate file descriptor location, allowing local file corruption via bind mount","details":"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.","modified":"2026-12-01T16:00:16.259144751Z","published":"2026-12-01T14:52:22.817Z","related":["openSUSE-SU-2026:12695-1"],"database_specific":{"cna_assigner":"redhat","cwe_ids":["CWE-59"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/135xxx/CVE-2026-135901.json"},"references":[{"type":"WEB","url":"https://access.redhat.com/downloads/content/package-browser/"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2026-135901"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2583156"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/135xxx/CVE-2026-135901.json"},{"type":"WEB","url":"https://github.com/shadow-maint/shadow/releases/tag/4.20.4"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-135901"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/shadow-maint/shadow","events":[{"introduced":"0"},{"fixed":"759bb9668de015c6e18a51e0bb7c775ef2546e1d"}],"database_specific":{"extracted_events":[{"source":"REFERENCES_TAG","original_tag":"4.20.4","range":[{"fixed":"759bb9668de015c6e18a51e0bb7c775ef2546e1d"}]}]}}],"versions":["4.20.3","4.20.2","4.20.0","4.20.0-rc3","4.20.0-rc2","4.20.0-rc1","4.19.0","4.19.0-rc1","4.18.0","4.18.0-rc2","4.17.4","4.17.3","4.17.2","4.17.1","4.17.0","4.16.0","4.16.0-rc1","4.15.1","4.15.0","4.15.0-rc3","4.15.0-rc2","4.15.0-rc1","4.14.0","4.14.0-rc5","4.14.0-rc4","4.14.0-rc3","4.14.0-rc2","4.14.0-rc1","4.13","4.12.2","4.12.1","4.12","v4.11.1","v4.10","4.10","v4.9","4.9","4.8.1","4.8","4.7","4.6","4.5","4.4","4.3.1","4.3.0","4.2.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-135901.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L"}]}