cve.bz

CVE-2018-18955 Incorrect Authorization

7.0 highExploitEPSS 7.7%Fix available

High (7.0). EPSS 7.7% estimated probability of exploitation activity in the next 30 days.

On this page
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

CVSS 3.0

7.0 high
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
7.7% (unchanged from 7.7% a week ago; 7.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 95th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-863 Incorrect Authorization
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-18955 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-18955?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-18955?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-18955 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linux:linux_kernelfrom 4.15 before 4.19.2
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux18.10

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14linux4.18.20-1DEBIAN-CVE-2018-18955
Ubuntu14.04:LTSlinux-azure4.15.0-1035.36~14.04.2UBUNTU-CVE-2018-18955
Ubuntu16.04:LTSlinux-azure4.15.0-1035.36~16.04.1UBUNTU-CVE-2018-18955
Ubuntu16.04:LTSlinux-gcp4.15.0-1025.26~16.04.1UBUNTU-CVE-2018-18955 USN-3836-2
Ubuntu16.04:LTSlinux-hwe4.15.0-42.45~16.04.1UBUNTU-CVE-2018-18955 USN-3836-2
Ubuntu18.04:LTSlinux4.15.0-42.45UBUNTU-CVE-2018-18955 USN-3836-1
Ubuntu18.04:LTSlinux-aws4.15.0-1029.30UBUNTU-CVE-2018-18955 USN-3833-1
Ubuntu18.04:LTSlinux-azure4.15.0-1035.36UBUNTU-CVE-2018-18955
Ubuntu18.04:LTSlinux-gcp4.15.0-1025.26UBUNTU-CVE-2018-18955 USN-3836-1
Ubuntu18.04:LTSlinux-kvm4.15.0-1027.27UBUNTU-CVE-2018-18955 USN-3836-1
Ubuntu18.04:LTSlinux-oem4.15.0-1028.33UBUNTU-CVE-2018-18955
Ubuntu18.04:LTSlinux-raspi24.15.0-1029.31UBUNTU-CVE-2018-18955 USN-3836-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This issue does not affect the Linux kernel versions as shipped with Red Hat Enterprise Linux 5, 6 and 7 because they did not include the commit that introduced this issue.

This issue does not affect Red Hat Enterprise Linux 8 because the fix for this issue has not been included since the Red Hat Enterprise Linux 8 release.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5kernelNot affected
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-altNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise MRG 2kernel-rtNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-18955.

Public exploits

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

References

Check your stackJSON