CVE-2018-18955: canonical ubuntu_linux Incorrect Authorization
Vulnerability summary
CVE-2018-18955 is a high (CVSS 7.0) Incorrect Authorization vulnerability in canonical ubuntu_linux. EPSS estimates a 7.61% chance of exploitation in the next 30 days, higher than 94.5% of scored vulnerabilities. 7 public exploits are recorded.
Advisory lineage
Upstream 0 · Downstream 3 · Related 3Timeline
- 16-11-2018PublishedVulnerability first disclosed.
- 05-08-2024Last modifiedVulnerability information updated.
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 metrics
4 scores · 3 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.0HighCVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.0HighCVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
7.61%
Chance of exploitation in the next 30 days
Percentile
95%
Versus all other CVEs
30-day change
0.00 pp
From 7.61% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
7 foundLinux - Broken uid/gid Mapping for Nested User Namespaces
Maturity: weaponized
Linux - Nested User Namespace idmap Limit Local Privilege Escalation (Metasploit)
Maturity: weaponized
Linux Kernel 4.15.x < 4.19.2 - 'map_write() CAP_SYS_ADMIN' Local Privilege Escalation (cron Method)
Maturity: poc
Show all 7 exploits
Linux Kernel 4.15.x < 4.19.2 - 'map_write() CAP_SYS_ADMIN' Local Privilege Escalation (dbus Method)
Maturity: poc
Linux Kernel 4.15.x < 4.19.2 - 'map_write() CAP_SYS_ADMIN' Local Privilege Escalation (ldpreload Method)
Maturity: poc
Linux Kernel 4.15.x < 4.19.2 - 'map_write() CAP_SYS_ADMIN' Local Privilege Escalation (polkit Method)
Maturity: poc
Linux Nested User Namespace idmap Limit Local Privilege Escalation
exploit/linux/local/nested_namespace_idmap_limit_priv_esc
Maturity: weaponized
Weaknesses
CWE · root causeAffected systems
Ubuntu8 products
- linux< 4.15.0-42.45
- linux-aws< 4.15.0-1029.30
- linux-azure< 4.15.0-1035.36~14.04.2 | < 4.15.0-1035.36~16.04.1 | < 4.15.0-1035.36
- linux-gcp< 4.15.0-1025.26~16.04.1 | < 4.15.0-1025.26
- linux-hwe< 4.15.0-42.45~16.04.1
Canonical1 product
- ubuntu_linuxEOL16.04 | 18.04 | 18.10
Debian1 product
- linux< 4.18.20-1
Linux1 product
- linux_kernel≥ 4.15, < 4.19.2
4 vendors · 11 products
References
23 links- github.com/torvalds/linux/commit/d2f007dbe7e4c9583eea6eb04d60001e85c6f1bdX Refsource MISCPatchVendor Advisory
Show all 23 references
- support.f5.com/csp/article/K39103040X Refsource CONFIRM
- security.netapp.com/advisory/ntap-20190416-0003/X Refsource CONFIRM