Skip to main content
← All vulnerabilities
CVE-2018-18955

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 misha

Published
Last modified
published
Not listed in CISA KEV
7 on Exploit-DB, 1 Metasploit module, 2 proofs of concept on GitHub

Summary

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.

Timeline

  1. Public exploit on Exploit-DB

    EDB-45886, EDB-47164, EDB-47166, EDB-45915, EDB-45915, EDB-47165, EDB-47167

  2. CVE published
  3. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

References 24

GitHub · torvalds/linux

cdn.kernel.org

usn.ubuntu.com

bugs.chromium.org

git.kernel.org

Exploit-DB

securityfocus.com

support.f5.com

security.netapp.com

GitHub · rapid7/metasploit-framework

GitHub · WhatsWrongAndWhy/CVE-2018-18955

GitHub · scheatkode/CVE-2018-18955