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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.4, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-12-01 · Modified: 2026-12-02
- Aliases: DEBIAN-CVE-2026-135901, DSA-6661-1, UBUNTU-CVE-2026-135901, openSUSE-SU-2026:12695-1, RHSA-2026:103799
- Record: https://cvemate.com/vulnerability/CVE-2026-135901 · JSON: https://cvemate.com/vulnerability/CVE-2026-135901/json

## Description

```text
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.
```

## Signals

- CVSS: 4.4 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
- EPSS: 0.315%, percentile 26.295%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian shadow (Debian): All versions (No fix recorded) \| \< 1:4.17.4-2+deb13u1 \| \< 1:4.20.4-1
- ubuntu shadow (Ubuntu): All versions (No fix recorded)
- opensuse shadow&distro=openSUSE Tumbleweed (openSUSE): \< 4.20.4-2.1
- redhat shadow-utils (Red Hat): \< 2:4.20.0-2.1.hum1
- redhat shadow-utils-subid (Red Hat): \< 2:4.20.0-2.1.hum1
- redhat shadow-utils-subid-devel (Red Hat): \< 2:4.20.0-2.1.hum1

## References

- <https://security-tracker.debian.org/tracker/CVE-2026-135901>
- <https://ubuntu.com/security/CVE-2026-135901>
- <https://www.cve.org/CVERecord?id=CVE-2026-135901>
- <https://www.openwall.com/lists/oss-security/2026/11/22/12>
- <https://gist.github.com/DicksonWu654/cdad661068d6a50da475aac57a9f07f2>
- <https://www.suse.com/security/cve/CVE-2026-135901>
- <https://access.redhat.com/security/cve/CVE-2026-135901>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2583156>
- <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>
- <https://access.redhat.com/errata/RHSA-2026:103799>
- <https://access.redhat.com/security/updates/classification/>
- <https://images.redhat.com/>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_103799.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-135901>

---

Data as of 2026-12-05T03:00:47.258Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
