Skip to content
OpenAdvisories
Medium · 4.4 CVE-2026-135901 EUVD-2026-140214GHSA-qqc9-m3j8-78cc

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

Published Dec 1, 2026 · Updated Dec 2, 2026 · Assigned by redhat

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.

Affected products

VendorProductAffectedFixed
Red Hat Red Hat Hardened Images — —
Red Hat Red Hat Enterprise Linux 10 — —
Red Hat Red Hat Enterprise Linux 6 — —
Red Hat Red Hat Enterprise Linux 7 — —
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 9 — —
Red Hat Red Hat OpenShift Container Platform 4 — —
Red Hat Red Hat OpenShift Container Platform 5 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 shadow 1:4.20.4-1 —
Debian 13 shadow 1:4.17.4-2+deb13u1 —
Debian 12 shadow No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 shadow No fix yet —
Ubuntu 26.04 LTS shadow No fix yet —
Ubuntu 22.04 LTS shadow No fix yet —
Ubuntu 20.04 LTS shadow No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS shadow No fix yet —
Ubuntu Pro 16.04 LTS shadow No fix yet —
Ubuntu Pro 14.04 LTS shadow No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 shadow-utils +2 2:4.20.0-2.1.hum1 RHSA-2026:103799

Advisories 1

References