CVE-2018-18955
Linux Kernel User Namespace Map Write Privilege Escalation Vulnerability
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.
INFO
Published Date :
Nov. 16, 2018, 8:29 p.m.
Last Modified :
Nov. 21, 2024, 3:56 a.m.
Source :
[email protected]
Remotely Exploitable :
No
Impact Score :
5.9
Exploitability Score :
1.0
Public PoC/Exploit Available at Github
CVE-2018-18955 has a 27 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2018-18955
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Try to create walkthroughs of Tryhackme-Labs, self learning purpose
linux-privilege-escalation windows-privilege-escalation tryhackme tryhackme-answers tryhackme-writeups
PHP Python Shell
None
C Shell Python Assembly Ruby Makefile Meson
Auto Root / Privilege Escalation Exploit
autoroot privilege privilege-escalation root
Shell
整理容器逃逸相关的漏洞和exploits.
Makefile C Python Dockerfile Shell Go
Compte rendu ctf mordor fait dans le cadre de INF805
None
None
C Shell Python Ruby Makefile HTML
Linux privilege escalation exploits collection.
C Shell Python Assembly Ruby Makefile Meson
None
C Shell Python Ruby Makefile HTML
💀 Linux local root exploit for CVE-2018-18955
pentest pentesting linux cve exploit
Shell C
None
C Shell Python Ruby Makefile HTML
Various kernel exploits
C Shell
TryHackMe - Year of the Jelly Fish
Metarget is a framework providing automatic constructions of vulnerable infrastructures.
cloud-native kubernetes container cloud-native-security kubernetes-security container-security container-escape target vulnerable-infrastructure vulnerabilities vulnerable-scenes vulnerable-infrastructures privilege-escalation kernel-exploitation
Python Shell HTML JavaScript PHP Perl Dockerfile C
Linux Eelvation(持续更新)
cve-2021-3156 cve-2019-7304 cve-2019-13272 cve-2018-18955 cve-2018-1000001 cve-2018-17182 cve-2017-1000367 cve-2017-1000112 cve-2017-16995 cve-2017-16939 linux-kernel elevation cve-2021-4034 cve-2022-0847
C Shell Python Ruby Makefile HTML
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2018-18955
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2018-18955
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CWE Remap by [email protected]
Aug. 24, 2020
Action Type Old Value New Value Changed CWE CWE-20 CWE-863 -
CVE Modified by [email protected]
Apr. 16, 2019
Action Type Old Value New Value Added Reference https://security.netapp.com/advisory/ntap-20190416-0003/ [No Types Assigned] -
CVE Modified by [email protected]
Apr. 09, 2019
Action Type Old Value New Value Added Reference https://support.f5.com/csp/article/K39103040 [No Types Assigned] -
Initial Analysis by [email protected]
Dec. 19, 2018
Action Type Old Value New Value Added CVSS V2 (AV:L/AC:M/Au:N/C:P/I:P/A:P) Added CVSS V3 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H Changed Reference Type http://www.securityfocus.com/bid/105941 No Types Assigned http://www.securityfocus.com/bid/105941 Third Party Advisory, VDB Entry Changed Reference Type http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d2f007dbe7e4c9583eea6eb04d60001e85c6f1bd No Types Assigned http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d2f007dbe7e4c9583eea6eb04d60001e85c6f1bd Patch, Vendor Advisory Changed Reference Type https://github.com/torvalds/linux/commit/d2f007dbe7e4c9583eea6eb04d60001e85c6f1bd No Types Assigned https://github.com/torvalds/linux/commit/d2f007dbe7e4c9583eea6eb04d60001e85c6f1bd Patch, Vendor Advisory Changed Reference Type https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.18.19 No Types Assigned https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.18.19 Patch, Vendor Advisory Changed Reference Type https://www.exploit-db.com/exploits/45886/ No Types Assigned https://www.exploit-db.com/exploits/45886/ Exploit, Patch, Third Party Advisory, VDB Entry Changed Reference Type https://bugs.chromium.org/p/project-zero/issues/detail?id=1712 No Types Assigned https://bugs.chromium.org/p/project-zero/issues/detail?id=1712 Patch, Third Party Advisory Changed Reference Type https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.19.2 No Types Assigned https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.19.2 Patch, Vendor Advisory Changed Reference Type https://usn.ubuntu.com/3835-1/ No Types Assigned https://usn.ubuntu.com/3835-1/ Third Party Advisory Changed Reference Type https://usn.ubuntu.com/3833-1/ No Types Assigned https://usn.ubuntu.com/3833-1/ Third Party Advisory Changed Reference Type https://usn.ubuntu.com/3832-1/ No Types Assigned https://usn.ubuntu.com/3832-1/ Third Party Advisory Changed Reference Type https://usn.ubuntu.com/3836-1/ No Types Assigned https://usn.ubuntu.com/3836-1/ Third Party Advisory Changed Reference Type https://www.exploit-db.com/exploits/45915/ No Types Assigned https://www.exploit-db.com/exploits/45915/ Exploit, Third Party Advisory, VDB Entry Changed Reference Type https://usn.ubuntu.com/3836-2/ No Types Assigned https://usn.ubuntu.com/3836-2/ Third Party Advisory Added CWE CWE-20 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.15 up to (excluding) 4.19.2 Added CPE Configuration OR *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:*:*:*:*:*:*:* -
CVE Modified by [email protected]
Dec. 04, 2018
Action Type Old Value New Value Added Reference https://usn.ubuntu.com/3836-2/ [No Types Assigned] Added Reference https://usn.ubuntu.com/3836-1/ [No Types Assigned] Added Reference https://usn.ubuntu.com/3835-1/ [No Types Assigned] -
CVE Modified by [email protected]
Dec. 01, 2018
Action Type Old Value New Value Added Reference https://www.exploit-db.com/exploits/45915/ [No Types Assigned] -
CVE Modified by [email protected]
Nov. 30, 2018
Action Type Old Value New Value Added Reference https://usn.ubuntu.com/3833-1/ [No Types Assigned] Added Reference https://usn.ubuntu.com/3832-1/ [No Types Assigned] -
CVE Modified by [email protected]
Nov. 18, 2018
Action Type Old Value New Value Added Reference https://www.exploit-db.com/exploits/45886/ [No Types Assigned] -
CVE Modified by [email protected]
Nov. 17, 2018
Action Type Old Value New Value Added Reference http://www.securityfocus.com/bid/105941 [No Types Assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2018-18955
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2018-18955
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.11 }} 0.02%
score
0.43720
percentile