7.0
HIGH
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.

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.

Affected Products

The following products are affected by CVE-2018-18955 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
1 Canonical ubuntu_linux
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.

URL Resource
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d2f007dbe7e4c9583eea6eb04d60001e85c6f1bd Patch Vendor Advisory
http://www.securityfocus.com/bid/105941 Third Party Advisory VDB Entry
https://bugs.chromium.org/p/project-zero/issues/detail?id=1712 Patch Third Party Advisory
https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.18.19 Patch Vendor Advisory
https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.19.2 Patch Vendor Advisory
https://github.com/torvalds/linux/commit/d2f007dbe7e4c9583eea6eb04d60001e85c6f1bd Patch Vendor Advisory
https://security.netapp.com/advisory/ntap-20190416-0003/
https://support.f5.com/csp/article/K39103040
https://usn.ubuntu.com/3832-1/ Third Party Advisory
https://usn.ubuntu.com/3833-1/ Third Party Advisory
https://usn.ubuntu.com/3835-1/ Third Party Advisory
https://usn.ubuntu.com/3836-1/ Third Party Advisory
https://usn.ubuntu.com/3836-2/ Third Party Advisory
https://www.exploit-db.com/exploits/45886/ Exploit Patch Third Party Advisory VDB Entry
https://www.exploit-db.com/exploits/45915/ Exploit Third Party Advisory VDB Entry
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d2f007dbe7e4c9583eea6eb04d60001e85c6f1bd Patch Vendor Advisory
http://www.securityfocus.com/bid/105941 Third Party Advisory VDB Entry
https://bugs.chromium.org/p/project-zero/issues/detail?id=1712 Patch Third Party Advisory
https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.18.19 Patch Vendor Advisory
https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.19.2 Patch Vendor Advisory
https://github.com/torvalds/linux/commit/d2f007dbe7e4c9583eea6eb04d60001e85c6f1bd Patch Vendor Advisory
https://security.netapp.com/advisory/ntap-20190416-0003/
https://support.f5.com/csp/article/K39103040
https://usn.ubuntu.com/3832-1/ Third Party Advisory
https://usn.ubuntu.com/3833-1/ Third Party Advisory
https://usn.ubuntu.com/3835-1/ Third Party Advisory
https://usn.ubuntu.com/3836-1/ Third Party Advisory
https://usn.ubuntu.com/3836-2/ Third Party Advisory
https://www.exploit-db.com/exploits/45886/ Exploit Patch Third Party Advisory VDB Entry
https://www.exploit-db.com/exploits/45915/ Exploit Third Party Advisory VDB Entry

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

Updated: 2 weeks, 2 days ago
0 stars 0 fork 0 watcher
Born at : July 27, 2024, 3:11 p.m. This repo has been linked 7 different CVEs too.

None

C Shell Python Assembly Ruby Makefile Meson

Updated: 4 months ago
0 stars 0 fork 0 watcher
Born at : July 20, 2024, 8:34 p.m. This repo has been linked 91 different CVEs too.

Auto Root / Privilege Escalation Exploit

autoroot privilege privilege-escalation root

Shell

Updated: 3 months, 1 week ago
2 stars 1 fork 1 watcher
Born at : June 11, 2024, 9:57 p.m. This repo has been linked 85 different CVEs too.

整理容器逃逸相关的漏洞和exploits.

Makefile C Python Dockerfile Shell Go

Updated: 4 months, 2 weeks ago
7 stars 0 fork 0 watcher
Born at : March 20, 2024, 10:19 a.m. This repo has been linked 27 different CVEs too.

Compte rendu ctf mordor fait dans le cadre de INF805

Updated: 8 months, 1 week ago
0 stars 0 fork 0 watcher
Born at : March 16, 2024, 8:05 p.m. This repo has been linked 3 different CVEs too.

None

Updated: 1 year, 3 months ago
0 stars 0 fork 0 watcher
Born at : Aug. 18, 2023, 2:12 a.m. This repo has been linked 11 different CVEs too.

None

C Shell Python Ruby Makefile HTML

Updated: 1 year, 5 months ago
0 stars 0 fork 0 watcher
Born at : June 14, 2023, 7:23 p.m. This repo has been linked 50 different CVEs too.

Linux privilege escalation exploits collection.

C Shell Python Assembly Ruby Makefile Meson

Updated: 2 months, 2 weeks ago
88 stars 13 fork 13 watcher
Born at : April 26, 2023, 2:58 p.m. This repo has been linked 91 different CVEs too.

None

C Shell Python Ruby Makefile HTML

Updated: 1 year, 6 months ago
1 stars 0 fork 0 watcher
Born at : April 26, 2023, 7:11 a.m. This repo has been linked 50 different CVEs too.

💀 Linux local root exploit for CVE-2018-18955

pentest pentesting linux cve exploit

Shell C

Updated: 5 months, 2 weeks ago
14 stars 3 fork 3 watcher
Born at : Jan. 19, 2022, 2:47 p.m. This repo has been linked 1 different CVEs too.

None

C Shell Python Ruby Makefile HTML

Updated: 3 years, 1 month ago
0 stars 0 fork 0 watcher
Born at : Oct. 21, 2021, 9:46 a.m. This repo has been linked 56 different CVEs too.

Various kernel exploits

C Shell

Updated: 2 years, 6 months ago
1 stars 1 fork 1 watcher
Born at : May 2, 2021, 12:38 a.m. This repo has been linked 6 different CVEs too.

TryHackMe - Year of the Jelly Fish

Updated: 3 years, 6 months ago
0 stars 0 fork 0 watcher
Born at : April 26, 2021, 5:07 a.m. This repo has been linked 7 different CVEs too.

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

Updated: 2 months, 2 weeks ago
1053 stars 163 fork 163 watcher
Born at : April 9, 2021, 4:20 a.m. This repo has been linked 47 different CVEs too.

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

Updated: 2 months, 3 weeks ago
390 stars 92 fork 92 watcher
Born at : March 30, 2021, 7:09 a.m. This repo has been linked 72 different CVEs too.

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]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
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

CVSS30 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability