← Vulnerability feed

Vulnerability record · CVE-2018-18955 · published 16 November 2018

CVE-2018-18955: Linux kernel incorrect authorization vulnerability

Linux · Linux Kernel

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.

7.0 CVSS 3.0 High EPSS 7.6% · top 5.7% CWE-863 · Incorrect authorization
7.0CVSS 3.0 base score, v2 4.4
7.6%EPSS exploitation probability, 30 days
NoNot in CISA KEV
2Affected product versions listed by NVD
30References, 4 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d2f007dbe7e4c9583eea6eb04d60001e85c6f1bd PatchVendor Advisory
http://www.securityfocus.com/bid/105941 Third Party AdvisoryVDB Entry
https://bugs.chromium.org/p/project-zero/issues/detail?id=1712 PatchThird Party Advisory
https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.18.19 PatchVendor Advisory
https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.19.2 PatchVendor Advisory
https://github.com/torvalds/linux/commit/d2f007dbe7e4c9583eea6eb04d60001e85c6f1bd PatchVendor 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/ ExploitPatchThird Party AdvisoryVDB Entry
https://www.exploit-db.com/exploits/45915/ ExploitThird Party AdvisoryVDB Entry
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d2f007dbe7e4c9583eea6eb04d60001e85c6f1bd PatchVendor Advisory
http://www.securityfocus.com/bid/105941 Third Party AdvisoryVDB Entry
https://bugs.chromium.org/p/project-zero/issues/detail?id=1712 PatchThird Party Advisory
https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.18.19 PatchVendor Advisory
https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.19.2 PatchVendor Advisory
https://github.com/torvalds/linux/commit/d2f007dbe7e4c9583eea6eb04d60001e85c6f1bd PatchVendor 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/ ExploitPatchThird Party AdvisoryVDB Entry
https://www.exploit-db.com/exploits/45915/ ExploitThird Party AdvisoryVDB Entry

Track CVE-2018-18955 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2020-11651SaltStack Salt master authentication bypass in ClearFuncsSaltStack Salt before 2019.2.4 and 3000 before 3000.2 fails to properly validate method calls in the salt-master ClearFuncs class, allowing remote un…KEVEPSS 97%analysed9.8CVE-2020-7247OpenSMTPD MAIL FROM command injection allows remote root code executionOpenSMTPD 6.6, as shipped in OpenBSD 6.6 and other products, mishandles input validation in smtp_mailaddr in smtp_session.c, returning an incorrect v…KEVEPSS 99%analysed9.8CVE-2019-11043PHP-FPM buffer overflow enables remote code executionPHP-FPM in certain configurations writes past allocated buffers into FCGI protocol data space, an out-of-bounds write (CWE-787, CWE-120). It affects …KEVEPSS 100%analysed9.8CVE-2019-16928Exim heap buffer overflow in string_vformat via long EHLO commandExim 4.92 through 4.92.2 contains a heap-based buffer overflow in string_vformat in string.c triggered by a long EHLO command, allowing remote code e…KEVEPSS 42%analysed9.8CVE-2019-10149Exim MTA improper recipient validation leads to remote command executionExim versions 4.87 through 4.91 fail to properly validate recipient addresses in the deliver_message() function in /src/deliver.c, allowing command i…KEVEPSS 100%analysed9.8CVE-2018-6789Exim SMTP base64d buffer overflow allows remote code executionExim before 4.90.1 contains a buffer overflow in the base64d function of its SMTP listener. A handcrafted message can trigger the overflow, and the f…KEVEPSS 82%analysed9.8CVE-2016-8735Apache Tomcat JmxRemoteLifecycleListener remote code executionApache Tomcat's JmxRemoteLifecycleListener was not updated to match the Oracle CVE-2016-3427 credential-type fix, leaving a deserialization weakness …KEVEPSS 90%analysed

Source: NIST National Vulnerability Database (record CVE-2018-18955), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.