Technical impact
The flaw in shadow-utils’ newgidmap and newuidmap utilities allows a local, unprivileged user to bind‑mount an attacker‑chosen file over the expected /proc directory path used by the helper. The utilities perform a device-number check on the supplied file descriptor then open a file within that directory to write mapping data. By intercepting the path with a bind mount, the attacker defeats the check and causes the helper to overwrite the first five bytes of the target file with fixed content, corrupting data on the local system. This weakness is a classic example of improper handling of file descriptors leading to unauthorized file modification (CWE‑59).
Affected Systems
Red Hat Enterprise Linux 10, 6, 7, 8, 9, Red Hat Hardened Images, and Red Hat OpenShift Container Platform 4 and 5 all ship the vulnerable shadow-utils setuid binaries that expose newgidmap and newuidmap to privileged operations.
Risk and Exploitability
The CVSS score of 4.4 indicates moderate severity, and the EPSS score is not available; this vulnerability is not listed in the CISA KEV catalog. It can be exploited by any local process that can create unprivileged user namespaces and bind‑mount an arbitrary file. Successful exploitation requires the presence of the setuid-root newgidmap/newuidmap binaries, but the attacker does not need elevated privileges at launch. The workaround provided by Red Hat is to disable the creation of unprivileged user namespaces (e.g., set sysctl user.max_user_namespaces to 0), which prevents the required namespace creation.