CVE-2018-18955 Privilege escalation in n/a

High 7.0 Published Updated

A local attacker with CAP_SYS_ADMIN in a user namespace can bypass access controls to read sensitive files like /etc/shadow due to mishandled ID transformations.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2018-18955?

CVE-2018-18955 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 16 Nov 2018. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-863

Which versions are affected by CVE-2018-18955?

It affects 2 products.

Products include Canonical Ubuntu Linux, Linux kernel.

How do I fix CVE-2018-18955?

Apply the vendor's patch.

Is CVE-2018-18955 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-18955 exists.

Public exploit code: 1 Metasploit module, 7 Exploit-DB entries and 2 proofs of concept on GitHub.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2018-18955, GHSA-c6xj-3c77-g5rg, UBUNTU-CVE-2018-18955.

Is CVE-2018-18955 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free