CVE-2018-18955
A public proof of concept exists; no exploitation attested.
- Published2018-11-16
- WeaknessCWE-863
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2018-11-16Exploit-DB entryExploit-DB
- 2018-11-1620:29CVE publishedNVD
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 16.4 | = 16.04 | no fix published | NVD |
| 18.4 | = 18.04 | no fix published | NVD |
| 18.10 | = 18.10 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 4.x | ≥ 4.15, < 4.19.2 | 4.19.2 | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- linuxUbuntu:18.04:LTSall versions · fixed in 4.15.0-42.45
- linuxDebian:14all versions · fixed in 4.18.20-1
- linuxDebian:13all versions · fixed in 4.18.20-1
- linuxDebian:12all versions · fixed in 4.18.20-1
- linux-awsUbuntu:18.04:LTSall versions · fixed in 4.15.0-1029.30
- linux-azureUbuntu:18.04:LTSall versions · fixed in 4.15.0-1035.36
- linux-azureUbuntu:16.04:LTSall versions · fixed in 4.15.0-1035.36~16.04.1
- linux-azureUbuntu:14.04:LTSall versions · fixed in 4.15.0-1035.36~14.04.2
6 more package ranges on OSV.dev
Vendor advisories
- CVE-2018-18955 Red Hat Product Security
kernel: Privilege escalation in map_write() in kernel/user_namespace.c
Fix
Advisories and patches
- git.kernel.orgPatch · Vendor Advisory
- bugs.chromium.orgPatch
- cdn.kernel.orgPatch · Vendor Advisory
- cdn.kernel.orgPatch · Vendor Advisory
- github.comPatch · Vendor Advisory
- www.exploit-db.comPatch
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Proof of concept
- PoC-in-GitHub2 repositories, unverifiedknown since 2026-11-01scheatkode/CVE-2018-18955WhatsWrongAndWhy/CVE-2018-18955
- Metasploit modules
- 1 moduleexploit/linux/local/nested_namespace_idmap_limit_priv_escrank: greatModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause. Metasploit Framework
Sources
- NVDCVSS 3.07read 2026-10-23
- NVDCVSS 2.04.4read 2026-10-23
- NVDweakness (CWE)CWE-863read 2026-10-23
- FIRST EPSSEPSS score7.7 %2026-11-04
- PoC-in-GitHubproof of concept2known since 2026-11-01
- Exploit-DBdetectionread 2026-11-04
- Metasploit FrameworkMetasploit modules1known since 2026-11-01
- OSVaffected packages—
Identifiers
- EUVD-2018-10659same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- exploit/linux/local/nested_namespace_idmap_limit_priv_escexploit moduleMetasploit Framework © Rapid7 · BSD-3-Clause
- EDB-45886exploit referenceExploit-DB · BSD-3-Clause
- USN-3833-1advisory covering several CVEsUbuntu
- USN-3836-1advisory covering several CVEsUbuntu
- USN-3836-2advisory covering several CVEsUbuntu
Technical details
- CVSS v3 Vector
- CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Published
- 2018-11-16
- Last Modified
- 2026-06-17
- NVD status
- Modified
Frequently asked questions
What is CVE-2018-18955?
Is CVE-2018-18955 actively exploited?
What is the CVSS score for CVE-2018-18955?
Running Linux kernel? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- Exploit-DB · Exploit-DB terms of service · terms restrict redistribution
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- Metasploit Framework · BSD-3-Clause
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0