Visit the Wiz Whimzical Shop at AWS re:Invent
Vulnerability DatabaseCVE-2026-135901

CVE-2026-135901: 
Docker Hardened Images Debian vulnerability analysis and mitigation

Overview

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

Technical details

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

Impact

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

Exploitability

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

Exploitation steps

  1. Reconnaissance: Confirm the target system has newgidmap installed SUID root (ls -la /usr/bin/newgidmap) and that unprivileged user/mount namespaces are permitted (cat /proc/sys/kernel/unprivileged_userns_clone).
  2. Build the PoC: Compile 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.
  3. Stage the SUID helper: Use sudo to install the compiled newgidmap as a disposable SUID root binary and create a root-owned mode-0600 target file to corrupt.
  4. Create user and mount namespace: Use non-SUID bubblewrap (bwrap --unshare-user --unshare-pid --bind / / --proc /proc ...) to enter a user and mount namespace where the host procfs is visible.
  5. Bind-mount the target file: Inside the namespace, bind-mount the root-owned target file over the 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.
  6. Pass the FD to newgidmap: Send the directory FD back to the outer process via a Unix socket (SCM_RIGHTS), clear O_CLOEXEC, and invoke newgidmap fd:<N> 0 <gid> 1.
  7. Observe corruption: The device check in 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).

Indicators of compromise

  • Process: Unexpected invocations of /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.
  • Logs: Audit log entries (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).
  • File System: Unexpected modification timestamps on root-owned files such as /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.
  • Network: Presence of abstract Unix sockets matching the pattern shadow-bwrap-<pid> (used by the PoC for FD passing between processes) (GitHub PoC).

Mitigation and workarounds

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.

Community reactions

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.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

shadow

Affected

sid

shadow: 1:4.20.4-1

Fixed

trixie

shadow: 1:4.17.4-2+deb13u1

Fixed

Ubuntu

Affected

bionic (esm-infra)

shadow

Unknown

devel

shadow

Unknown

focal (esm-infra)

shadow

Unknown

jammy

shadow

Unknown

noble

shadow

Not Affected

resolute

shadow

Affected

trusty (esm-infra-legacy)

shadow

Unknown

xenial (esm-infra-legacy)

shadow

Unknown

RHEL / CentOS

Affected

OpenShift

openshift/ose-rhel-coreos-8

Affected

RHEL 8

Not Affected

RHEL 9

Not Affected

RHEL 10

shadow-utils.src

Affected

Source: This report was generated using AI

Related Docker Hardened Images Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-141539MEDIUM4.8
  • Ruby logoRuby
  • fluentd-kubernetes-daemonset-graylog-1.20
NoYesDec 01, 2026
CVE-2026-141538MEDIUM4.8
  • Ruby logoRuby
  • fluentd-kubernetes-daemonset-syslog-1.19
NoYesDec 01, 2026
CVE-2026-141537LOW3.7
  • Ruby logoRuby
  • fluentd-kubernetes-daemonset-datadog-1.19
NoYesDec 01, 2026
CVE-2026-141536LOW3.7
  • Ruby logoRuby
  • fluentd-kubernetes-daemonset-graylog-1.20
NoYesDec 01, 2026
CVE-2026-141535LOW3.7
  • Ruby logoRuby
  • fluentd-kubernetes-daemonset-gcs-1.20
NoYesDec 01, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management