CVE-2018-18955

published 16 Nov 2018 · updated 5 Aug 2024

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…

6.0MediumEPSS 8%8 public exploits

8 public exploits exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 8%. No fixed version is recorded.

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.

Exploit evidence

8 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2018-18955 severity on Zeptric[![CVE-2018-18955](https://zeptric.io/badge/cve/CVE-2018-18955.svg)](https://zeptric.io/cve/CVE-2018-18955)