Skip to content
OpenAdvisories
Unscored CVE-2018-7169 EUVD-2018-18911GHSA-m2px-jr9v-8hhp

An issue was discovered in shadow 4.5. newgidmap (in shadow-utils) is setuid and allows an unprivileged user to be placed in a user namespa…

Published Feb 15, 2018 · Updated Aug 5, 2024 · Assigned by mitre

Description

An issue was discovered in shadow 4.5. newgidmap (in shadow-utils) is setuid and allows an unprivileged user to be placed in a user namespace where setgroups(2) is permitted. This allows an attacker to remove themselves from a supplementary group, which may allow access to certain filesystem paths if the administrator has used "group blacklisting" (e.g., chmod g-rwx) to restrict access to paths. This flaw effectively reverts a security feature in the kernel (in particular, the /proc/self/setgroups knob) to prevent this sort of privilege escalation.

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.7-1 —
Debian 13 shadow 1:4.7-1 —
Debian 12 shadow 1:4.7-1 —
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS shadow 1:4.5-1ubuntu2.2 USN-5254-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS shadow 1:4.2-3.1ubuntu5.5+esm1 USN-5254-1
Ubuntu Pro 14.04 LTS shadow 1:4.1.5.1-1ubuntu9.5+esm1 USN-5254-1
ReleasePackageFixed inAdvisory
SLES 12 SP3 shadow 4.2.1-27.6.1 SUSE-SU-2018:0662-1
SLES 12 SP2 shadow 4.2.1-27.6.1 SUSE-SU-2018:0662-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP3 shadow 4.2.1-27.6.1 SUSE-SU-2018:0662-1
SLES for SAP 12 SP2 shadow 4.2.1-27.6.1 SUSE-SU-2018:0662-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed shadow 4.9-1.1 openSUSE-SU-2024:11378-1

Advisories 5

References