
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-135901 is a file descriptor validation vulnerability in the newgidmap and newuidmap SUID-root utilities from the shadow-utils package. An unprivileged local user can exploit user and mount namespaces combined with a bind mount to redirect privileged UID/GID mapping writes, allowing corruption of arbitrary root-owned files. The vulnerability was discovered by Dickson Wu and reported on November 6, 2026, with public disclosure occurring on November 22, 2026 following a one-week embargo (oss-security). It affects shadow-utils through version 4.20.3; the fixed release is 4.20.4 (oss-security). The CVE is currently in Reserved status with a CVSS category estimate of HIGH (Feedly).
The root cause is improper file descriptor validation (CWE-610: Externally Controlled Reference to a Resource in Another Sphere). In lib/get_pid.c, get_pidfd_from_fd() validates that a caller-supplied directory FD resides on the same device as /proc/self/uid_map, but in src/newgidmap.c, write_setgroups() subsequently calls openat(proc_dir_fd, "setgroups", O_RDWR) as root without verifying that the opened file is still on the procfs device (GitHub PoC). An attacker creates a user and mount namespace (e.g., via non-SUID bubblewrap), bind-mounts a root-owned target file over the setgroups entry under a host procfs task directory, and passes that directory FD to newgidmap. The directory FD passes the device check because it is still on the host procfs, but openat() resolves to the bind-mounted file, causing newgidmap to overwrite its first five bytes with deny\n as root (GitHub PoC). No /etc/subgid entry is required; mapping the caller's own GID with count 1 is sufficient to reach write_setgroups(), and the later gid_map write failure does not roll back the file modification (oss-security).
A local unprivileged user can overwrite the first five bytes of any root-owned regular file they can name (read permission is not required) with the fixed string deny\n at offset 0. While this is not arbitrary-content write and has not been demonstrated to achieve code execution or information disclosure, targeting files such as /etc/passwd, /etc/shadow, or root-run configuration files could corrupt the first entry and cause a local denial of service or disrupt authentication (GitHub PoC). File ownership, permissions, and content beyond the first five bytes remain unchanged, limiting but not eliminating the integrity impact (oss-security).
A public proof-of-concept exploit (bwrap_proc_attack.c) was published by the discoverer alongside the disclosure, demonstrating successful exploitation against shadow-utils 4.20.3 on Ubuntu 24.04 (GitHub PoC). Exploitation requires a local unprivileged account, newgidmap installed SUID root (the default for the uidmap package, commonly pulled in for rootless container support), and unprivileged user and mount namespaces enabled. No in-the-wild exploitation has been reported, and the CVE is not currently listed in the CISA KEV catalog. No EPSS score is available at this time given the Reserved CVE status (Feedly).
newgidmap installed SUID root (ls -la /usr/bin/newgidmap) and that unprivileged user/mount namespaces are permitted (cat /proc/sys/kernel/unprivileged_userns_clone).bwrap_proc_attack.c and build shadow-utils 4.20.3 from source to obtain a local copy of newgidmap for staging: cc -std=gnu11 -O2 -o bwrap_proc_attack bwrap_proc_attack.c.sudo to install the compiled newgidmap as a disposable SUID root binary and create a root-owned mode-0600 target file to corrupt.bwrap --unshare-user --unshare-pid --bind / / --proc /proc ...) to enter a user and mount namespace where the host procfs is visible.setgroups entry of a host procfs task directory (e.g., /proc/<pid>/setgroups), so the directory FD still points to host procfs but openat(fd, "setgroups") resolves to the target file.SCM_RIGHTS), clear O_CLOEXEC, and invoke newgidmap fd:<N> 0 <gid> 1.get_pidfd_from_fd() passes (directory is on host procfs); write_setgroups() opens and overwrites the first five bytes of the target file with deny\n as root. newgidmap exits 1 due to the subsequent gid_map write failure, but the file has already been modified (GitHub PoC, oss-security)./usr/bin/newgidmap or /usr/bin/newuidmap with fd:<N> arguments from non-container management processes; newgidmap processes spawned by unprivileged users outside of normal container runtime activity.auditd) showing newgidmap or newuidmap executed by unprivileged UIDs with fd: style arguments; newgidmap: write to gid_map failed: Operation not permitted in system logs (indicating the exploit ran but the later write failed)./etc/passwd, /etc/shadow, /etc/sudoers, or root-run configuration files; files whose first five bytes have been replaced with 64 65 6e 79 0a (deny\n) while ownership and permissions remain root:root 0600.shadow-bwrap-<pid> (used by the PoC for FD passing between processes) (GitHub PoC).Upgrade shadow-utils to version 4.20.4, released publicly on November 22, 2026, which applies two patches: replacing openat() calls in lib/idmapping.c and src/newidmap.c with openat2() using RESOLVE_NO_XDEV | RESOLVE_NO_SYMLINKS to reject mount crossings, and dropping the fd:N argument form from newgidmap/newuidmap (oss-security). As a temporary workaround where upgrading is not immediately possible, administrators can disable unprivileged user namespaces (sysctl -w kernel.unprivileged_userns_clone=0) to remove the precondition for exploitation, though this may break rootless container workflows. Distributions shipping the uidmap package (e.g., Debian uidmap 1:4.20.3-1) should apply vendor-provided updates as they become available.
The vulnerability was discovered by Dickson Wu using AI-assisted tools (OpenAI Codex and Anthropic Claude), which he disclosed transparently to the shadow-utils maintainers; maintainer Alejandro Colomar noted the AI policy concern but proceeded with a human-written patch from Serge Hallyn (GitHub PoC). The coordinated disclosure followed a one-week embargo with linux-distros, and the fix was released promptly as shadow-4.20.4 (oss-security). Discussion on oss-security was technical and constructive, with no significant controversy beyond the AI tooling disclosure.
Fix availability across major Linux distributions and their releases.
bionic (esm-infra)
shadow
devel
shadow
focal (esm-infra)
shadow
jammy
shadow
noble
shadow
resolute
shadow
trusty (esm-infra-legacy)
shadow
xenial (esm-infra-legacy)
shadow
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."