Advisory
UBUNTU-CVE-2018-18955
Also known as: CVE-2018-18955
Summary
The record has no summary.
Details
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.
Severity
High Basis: CVSS v3 score 7, vector CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Dates
- Published
- 2018-11-16 00:00 UTC
- Modified
- 2026-04-22 11:49 UTC
Affected packages and fixes
| Package | System | Fix |
|---|---|---|
| linux-azure | Debian packages (deb) · Ubuntu 14.04 | sudo apt-get update && sudo apt-get upgrade |
| linux-azure | Debian packages (deb) · Ubuntu 16.04 | sudo apt-get update && sudo apt-get upgrade |
| linux-gcp | Debian packages (deb) · Ubuntu 16.04 | sudo apt-get update && sudo apt-get upgrade |
| linux-hwe | Debian packages (deb) · Ubuntu 16.04 | sudo apt-get update && sudo apt-get upgrade |
| linux | Debian packages (deb) · Ubuntu 18.04 | sudo apt-get update && sudo apt-get upgrade |
| linux-aws | Debian packages (deb) · Ubuntu 18.04 | sudo apt-get update && sudo apt-get upgrade |
| linux-azure | Debian packages (deb) · Ubuntu 18.04 | sudo apt-get update && sudo apt-get upgrade |
| linux-gcp | Debian packages (deb) · Ubuntu 18.04 | sudo apt-get update && sudo apt-get upgrade |
| linux-kvm | Debian packages (deb) · Ubuntu 18.04 | sudo apt-get update && sudo apt-get upgrade |
| linux-oem | Debian packages (deb) · Ubuntu 18.04 | sudo apt-get update && sudo apt-get upgrade |
| linux-raspi2 | Debian packages (deb) · Ubuntu 18.04 | sudo apt-get update && sudo apt-get upgrade |
Some commands upgrade the distribution's packages. Compare the fixed version with the version you have installed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Links
- https://ubuntu.com/security/CVE-2018-18955
- https://ubuntu.com/security/notices/USN-3832-1
- https://ubuntu.com/security/notices/USN-3833-1
- https://ubuntu.com/security/notices/USN-3836-1
- https://ubuntu.com/security/notices/USN-3835-1
- https://ubuntu.com/security/notices/USN-3836-2
- https://www.cve.org/CVERecord?id=CVE-2018-18955
Source
Source: Ubuntu Security Notices · CC BY-SA 4.0