CVE-2026-135901: Low severity Shadow shadow-utils vulnerability

Published Nov 24, 2026
·
Updated

shadow: Security fix for newgidmap

Other sources

The newgidmap and newuidmap helper utilities accept a directory file descriptor identifying a target process's /proc/<pid>/ directory, and validate that this descriptor refers to the procfs filesystem by comparing device numbers (stdev/strdev) against a known procfs path. After this check, the utilities open a file (for example "setgroups") by name relative to that directory descriptor and write privileged uid/gid mapping data to it.

An unprivileged local user can defeat this validation using Linux user and mount namespaces: by bind-mounting an arbitrary, attacker-chosen file over the expected child path inside a procfs directory they hold a descriptor to, the device-number check (which only inspects the directory itself) still passes, while the subsequent open-by-name resolves through the bind mount to the attacker's chosen file instead of the intended procfs file. This redirects the helper's privileged write, resulting in the first five bytes of the attacker-chosen file being overwritten with the fixed content "deny\n".

This was reported publicly, with a working proof of concept demonstrating the primitive against a SUID-root build of newgidmap, and fixed upstream in shadow 4.20.4 by using openat2(2) with RESOLVENOXDEV for path resolution and by removing the affected "fd:N" argument form entirely.

— Red Hat

Affected Software

5 affected componentsFixes available
Shadow shadow-utils<4.20.4
debian/shadow*
debian/shadow*
debian/shadow*
debian/shadow<=1:4.13+dfsg1-1+deb12u2, <=1:4.17.4-2, <=1:4.20.3-1
1:4.20.4-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/shadow to a version that resolves this vulnerability.

    Fixed in 1:4.20.4-1
  2. Upgrade

    Upgrade shadow to a version that resolves this vulnerability.

    Fixed in 4.20.4

Event History

Nov 24, 2026
Data Sourced
via Red Hat·11:34 AM
DescriptionSeverityAffected Software
CVE Published
via OSV·08:47 PM
Data Sourced
via OSV·08:47 PM
DescriptionAffected Software

Frequently Asked Questions

1

Who can exploit this issue?

An unprivileged local user can exploit it if they can use Linux user and mount namespaces to create a bind mount beneath a procfs directory referenced by the helper. A working proof of concept was demonstrated against a SUID-root build of newgidmap.

2

What is the resulting impact of a successful exploit?

The attacker can redirect the helper's privileged write to an attacker-chosen file. The primitive overwrites the first five bytes of that file with the fixed content "deny\n".

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203