CVE-2026-135901 PUBLISHED

Shadow-utils: shadow-utils: newgidmap and newuidmap improperly validate file descriptor location, allowing local file corruption via bind mount

Assigner: redhat
Reserved: 24.11.2026 Published: 01.12.2026 Updated: 01.12.2026

A flaw was found in shadow-utils. The newgidmap and newuidmap utilities validate that a caller-supplied file descriptor refers to a directory on the /proc filesystem by comparing device numbers, then open a file by name relative to that directory to write privileged group/user ID mapping data. A local, unprivileged user can use Linux user and mount namespaces to bind-mount an attacker-chosen file over the expected path, defeating the device-number check and causing the helper to overwrite the first five bytes of the attacker-chosen file with fixed content.

Metrics

CVSS Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
CVSS Score: 4.4

Product Status

Vendor Red Hat
Product Red Hat Enterprise Linux 10
Versions Default: affected
Vendor Red Hat
Product Red Hat Enterprise Linux 6
Versions Default: unknown
Vendor Red Hat
Product Red Hat Enterprise Linux 7
Versions Default: unknown
Vendor Red Hat
Product Red Hat Enterprise Linux 8
Versions Default: unaffected
Vendor Red Hat
Product Red Hat Enterprise Linux 9
Versions Default: unaffected
Vendor Red Hat
Product Red Hat Hardened Images
Versions Default: affected
Vendor Red Hat
Product Red Hat OpenShift Container Platform 4
Versions Default: affected
Vendor Red Hat
Product Red Hat OpenShift Container Platform 4
Versions Default: affected
Vendor Red Hat
Product Red Hat OpenShift Container Platform 5
Versions Default: affected
Vendor Red Hat
Product Red Hat OpenShift Container Platform 5
Versions Default: affected

Workarounds

Disabling the creation of unprivileged user namespaces (for example, by setting the sysctl user.max_user_namespaces to 0) prevents the creation of the namespaces required to carry out this attack. This can affect functionality that relies on unprivileged user namespaces, such as rootless containers, so it should be tested before being applied broadly. Red Hat Enterprise Linux 10 is not expected to require this mitigation, since newgidmap and newuidmap are not installed setuid-root on these releases.

References

Problem Types

  • Improper Link Resolution Before File Access CWE