CVE-2018-18955
HIGHLinux Nested User Namespace idmap Limit Local Privilege Escalation
Title source: metasploitDescription
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.
Exploits (9)
exploitdb
WORKING POC
VERIFIED
by Metasploit · rubylocallinux
https://www.exploit-db.com/exploits/45915
exploitdb
WORKING POC
VERIFIED
by Google Security Research · textlocallinux
https://www.exploit-db.com/exploits/45886
gitlab
by os-exploit · poc
https://gitlab.com/penetration-test-learn/10vuln/os-exploit/bcoles-kernel-exploits
metasploit
WORKING POC
GREAT
by Jann Horn, bcoles · rubypoc
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/nested_namespace_idmap_limit_priv_esc.rb
References (15)
Scores
CVSS v3
7.0
EPSS
0.0957
EPSS Percentile
92.9%
Attack Vector
LOCAL
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Details
CWE
CWE-863
Status
published
Products (4)
canonical/ubuntu_linux
16.04
canonical/ubuntu_linux
18.04
canonical/ubuntu_linux
18.10
linux/linux_kernel
4.15 - 4.19.2
Published
Nov 16, 2018
Tracked Since
Feb 18, 2026