CVE-2018-18955
Reported by mitre · Published November 16, 2018
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux-azure | Ubuntu:14.04:LTS | 4.15.0-1035.36~14.04.2 |
| linux-oem | Ubuntu:18.04:LTS | 4.15.0-1028.33 |
| linux-raspi2 | Ubuntu:18.04:LTS | 4.15.0-1029.31 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
Timeline
- Nov 16, 2018 CVE Published
- Nov 16, 2018 PoC Published (3 in total, the first dated here)
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Sep 8, 2025 CVE Updated
- Mar 6, 2026 Distribution Patch (5 in total, the first dated here)
- Mar 6, 2026 Security Advisory (6 in total, the first dated here)
- Sep 22, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-18955
vulnetix vdb fixes CVE-2018-18955
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-18955/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- USN-3836-2 vendor-advisoryx_refsource_UBUNTU
- USN-3835-1 vendor-advisoryx_refsource_UBUNTU
- x_refsource_MISC
- x_refsource_MISC
- USN-3833-1 vendor-advisoryx_refsource_UBUNTU
- USN-3832-1 vendor-advisoryx_refsource_UBUNTU
- 45915 exploitx_refsource_EXPLOIT-DB
- x_refsource_MISC
- 45886 exploitx_refsource_EXPLOIT-DB
- USN-3836-1 vendor-advisoryx_refsource_UBUNTU
- 105941 vdb-entryx_refsource_BID
- x_refsource_CONFIRM
- x_refsource_CONFIRM