Where
-Infinity
0

Hi Alexander, Date: 2026-11-24 18:29:43+0100 From: Solar Designer <solar () openwall com>

On Sun, Nov 22, 2026 at 10:22:56PM +0100, Alejandro Colomar wrote: I've released publicly shadow-4.20.4 a moment ago. Below are the details about the security issues (from the previous email, to linux-distros@).

The release is available at <https://github.com/shadow-maint/shadow/releases/tag/4.20.4>. Thanks! Looks like this is CVE-2026-135901:

https://bugzilla.redhat.com/showbug.cgi?id=2583156 Thanks! Quoting from there: CVE-2026-135901 shadow-utils: shadow-utils: newgidmap and newuidmap improperly validate file descriptor location, allowing local file corruption via bind mount

OSIDB Bzimport 2026-11-24 11:34:55 UTC

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. I guess "reported publicly" refers to: I guess the same.

Report, affected lines, a suggested fix (fstat the opened setgroups FD, or openat2 with RESOLVENOXDEV) and the PoC are here:

<https://gist.github.com/DicksonWu654/cdad661068d6a50da475aac57a9f07f2>

Happy to test a fix or answer questions whenever it's useful.

Best, Dickson which didn't appear to draw any attention before the release. Yup; I was a bit confused by the report coming encrypted but having a link to a public github page with the report. We kept it embargoed because

1) The issue wasn't too critical, so even if some people might have found that, I don't think they could do much harm.

2) There were some chances that nobody had found that link. Hopefully, the reporter didn't share that link with other people.

3) If we went public before having a fix, we'd have given that link more publicity.

Have a lovely night! Alex Alexander -- <https://www.alejandro-colomar.es>

Severity
1

shadow: Security fix for newgidmap

1 / 2
Source: Debian
First published (updated )
Severity
3.6
AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N

shadow-utils (aka shadow) 4.4 through 4.17.0 establishes a default /etc/subuid behavior (e.g., uid 100000 through 165535 for the first user account) that can realistically conflict with the uids of users defined on locally administered networks, potentially leading to account takeover, e.g., by leveraging newuidmap for access to an NFS home directory (or same-host resources in the case of remote logins by these local network users). NOTE: it may also be argued that system administrators should not have assigned uids, within local networks, that are within the range that can occur in /etc/subuid.

First published (updated )

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