Shadow-utils: shadow-utils: newgidmap and newuidmap improperly validate file descriptor location, allowing local file corruption via bind mount
Summary
| CVE | CVE-2026-135901 |
|---|---|
| State | PUBLISHED |
| Assigner | redhat |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-12-01 15:17:50 UTC |
| Updated | 2026-12-01 16:18:15 UTC |
| Description | 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. |
Risk And Classification
Primary CVSS: v3.1 4.4 MEDIUM from [email protected]
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
Problem Types: CWE-59 | CWE-59 Improper Link Resolution Before File Access
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 4.4 | MEDIUM | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L |
| 3.1 | CNA | CVSS | 4.4 | MEDIUM | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L |
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
LowAvailability
LowCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Red Hat | Red Hat Enterprise Linux 10 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 6 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 7 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Hardened Images | Not specified | Not specified |
| CNA | Red Hat | Red Hat OpenShift Container Platform 4 | Not specified | Not specified |
| CNA | Red Hat | Red Hat OpenShift Container Platform 4 | Not specified | Not specified |
| CNA | Red Hat | Red Hat OpenShift Container Platform 5 | Not specified | Not specified |
| CNA | Red Hat | Red Hat OpenShift Container Platform 5 | Not specified | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| www.openwall.com/lists/oss-security/2026/11/24/16 | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | |
| bugzilla.redhat.com/show_bug.cgi | [email protected] | bugzilla.redhat.com | |
| www.openwall.com/lists/oss-security/2026/11/25/4 | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | |
| access.redhat.com/security/cve/CVE-2026-135901 | [email protected] | access.redhat.com | |
| www.openwall.com/lists/oss-security/2026/11/24/19 | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | |
| github.com/shadow-maint/shadow/releases/tag/4.20.4 | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-11-22T00:00:00.000Z | Reported to Red Hat. |
| CNA | 2026-11-22T00:00:00.000Z | Made public. |
Workarounds
CNA: 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.
There are currently no legacy QID mappings associated with this CVE.