Back

HIGH

kernel: Privilege escalation in map_write() in kernel/user_namespace.c

Published Nov 16, 2018

Description

In the Linux kernel 4.15.x through 4.19.x before 4.19.2, map_write() in kernel/user_namespace.c allows privilege escalation because it mishandles nested user namespaces with more than 5 UID or GID ranges. A user who has CAP_SYS_ADMIN in an affected user namespace can bypass access controls on resources outside the namespace, as demonstrated by reading /etc/shadow. This occurs because an ID transformation takes place properly for the namespaced-to-kernel direction but not for the kernel-to-namespaced direction.

Affected products

Remediation

Red Hat statement

This issue does not affect the Linux kernel versions as shipped with Red Hat Enterprise Linux 5, 6 and 7 because they did not include the commit that introduced this issue. This issue does not affect Red Hat Enterprise Linux 8 because the fix for this issue has not been included since the Red Hat Enterprise Linux 8 release.

Metrics

References (20)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner mitre
Published Nov 16, 2018
Updated Aug 5, 2024
Reserved Nov 5, 2018
NVD
Status Modified
Modified Jun 17, 2026
Red Hat
Severity Important
Public date Nov 15, 2018