CVE-2026-135901: Local file corruption in shadow-utils newgidmap and newuidmap
CVE-2026-135901 is a file-descriptor validation vulnerability in the shadow-utils newgidmap and newuidmap helpers. The helpers validate a supplied process procfs directory descriptor using device-number comparisons, but subsequently open child files relative to that descriptor without preventing traversal across bind mounts. An unprivileged local attacker can use Linux user and mount namespaces to bind-mount an attacker-chosen file over an expected procfs child entry, redirecting a privileged write while the directory validation still succeeds. The demonstrated newgidmap exploit overwrites the first five bytes of the target file with the fixed string "deny\n", potentially causing file corruption and denial of service.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
An unprivileged local attacker can corrupt an attacker-chosen file through a privileged helper, potentially damaging system or application files and causing denial of service. The demonstrated corruption is constrained to overwriting the first five bytes with "deny\n"; arbitrary-content writes, code execution, privilege escalation, and remote exploitation are not established.
Mitigation
If you can’t patch tonight, do this now.
Until patched, restrict untrusted local users' access to the privileged newuidmap and newgidmap helpers, or prevent those users from creating the user and mount namespaces required for the bind-mount attack. These restrictions can disrupt legitimate user-namespace and rootless-container workflows.
Remediation
Patch, then assume compromise.
Upgrade to upstream shadow 4.20.4 or a distribution package containing the equivalent fix. The upstream fix uses openat2() with RESOLVE_NO_XDEV to prevent path resolution across mount points and removes the affected "fd:N" argument form. For Debian 13 (trixie), upgrade shadow packages to 1:4.17.4-2+deb13u1 or later. For Echo, upgrade the affected shadow packages to 1:4.17.4-2+e5 or later.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-135901 exploited in the wild?
- As of Nov 27, 2026, Mallory has no reports of CVE-2026-135901 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-135901?
- As of Nov 27, 2026, Mallory has found no public exploit for CVE-2026-135901.
- Is there a patch for CVE-2026-135901?
- Upgrade to upstream shadow 4.20.4 or a distribution package containing the equivalent fix. The upstream fix uses openat2() with RESOLVE_NO_XDEV to prevent path resolution across mount points and removes the affected "fd:N" argument form.
Recent activity
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.