Vulnerability Details : CVE-2018-18955
Public exploit exists!
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.
Vulnerability category: Gain privilege
Products affected by CVE-2018-18955
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
- cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*
- cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
- cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2018-18955
0.11%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 44 %
Percentile, the proportion of vulnerabilities that are scored at or less
Metasploit modules for CVE-2018-18955
-
Linux Nested User Namespace idmap Limit Local Privilege Escalation
Disclosure Date: 2018-11-15First seen: 2020-04-26exploit/linux/local/nested_namespace_idmap_limit_priv_escThis module exploits a vulnerability in Linux kernels 4.15.0 to 4.18.18, and 4.19.0 to 4.19.1, where broken uid/gid mappings between nested user namespaces and kernel uid/gid mappings allow elevation to root (CVE-2018-18955). The target system must
CVSS scores for CVE-2018-18955
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
4.4
|
MEDIUM | AV:L/AC:M/Au:N/C:P/I:P/A:P |
3.4
|
6.4
|
NIST | |
7.0
|
HIGH | CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
1.0
|
5.9
|
NIST |
CWE ids for CVE-2018-18955
-
The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. This allows attackers to bypass intended access restrictions.Assigned by: nvd@nist.gov (Primary)
References for CVE-2018-18955
-
https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.19.2
Patch;Vendor Advisory
-
https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.18.19
Patch;Vendor Advisory
-
https://support.f5.com/csp/article/K39103040
-
https://www.exploit-db.com/exploits/45886/
Linux - Broken uid/gid Mapping for Nested User NamespacesExploit;Patch;Third Party Advisory;VDB Entry
-
https://bugs.chromium.org/p/project-zero/issues/detail?id=1712
1712 - Linux: broken uid/gid mapping for nested user namespaces with >5 ranges - project-zero - MonorailPatch;Third Party Advisory
-
https://usn.ubuntu.com/3835-1/
USN-3835-1: Linux kernel vulnerabilities | Ubuntu security noticesThird Party Advisory
-
https://security.netapp.com/advisory/ntap-20190416-0003/
CVE-2018-18955 Linux Kernel Vulnerability in NetApp Products | NetApp Product Security
-
https://usn.ubuntu.com/3836-1/
USN-3836-1: Linux kernel vulnerabilities | Ubuntu security noticesThird Party Advisory
-
https://www.exploit-db.com/exploits/45915/
Linux - Nested User Namespace idmap Limit Local Privilege Escalation (Metasploit)Exploit;Third Party Advisory;VDB Entry
-
http://www.securityfocus.com/bid/105941
Linux Kernel CVE-2018-18955 Local Privilege Escalation VulnerabilityThird Party Advisory;VDB Entry
-
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d2f007dbe7e4c9583eea6eb04d60001e85c6f1bd
kernel/git/torvalds/linux.git - Linux kernel source treePatch;Vendor Advisory
-
https://usn.ubuntu.com/3833-1/
USN-3833-1: Linux kernel (AWS) vulnerabilities | Ubuntu security noticesThird Party Advisory
-
https://github.com/torvalds/linux/commit/d2f007dbe7e4c9583eea6eb04d60001e85c6f1bd
userns: also map extents in the reverse map to kernel IDs · torvalds/linux@d2f007d · GitHubPatch;Vendor Advisory
-
https://usn.ubuntu.com/3832-1/
USN-3832-1: Linux kernel (AWS) vulnerabilities | Ubuntu security noticesThird Party Advisory
-
https://usn.ubuntu.com/3836-2/
USN-3836-2: Linux kernel (HWE) vulnerabilities | Ubuntu security noticesThird Party Advisory
Jump to