{"api_version":"1","generated_at":"2026-05-13T21:10:22+00:00","cve":"CVE-2018-18955","urls":{"html":"https://cve.report/CVE-2018-18955","api":"https://cve.report/api/cve/CVE-2018-18955.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2018-18955","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-18955"},"summary":{"title":"CVE-2018-18955","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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2018-11-16 20:29:00","updated_at":"2020-08-24 17:37:00"},"problem_types":["CWE-863"],"metrics":[],"references":[{"url":"https://bugs.chromium.org/p/project-zero/issues/detail?id=1712","name":"https://bugs.chromium.org/p/project-zero/issues/detail?id=1712","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"1712 - \n Linux: broken uid/gid mapping for nested user namespaces with >5 ranges - \n \n project-zero -\n \n \n Monorail","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://usn.ubuntu.com/3832-1/","name":"USN-3832-1","refsource":"UBUNTU","tags":["Third Party Advisory"],"title":"USN-3832-1: Linux kernel (AWS) vulnerabilities | Ubuntu security notices","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://support.f5.com/csp/article/K39103040","name":"https://support.f5.com/csp/article/K39103040","refsource":"CONFIRM","tags":[],"title":"","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://usn.ubuntu.com/3835-1/","name":"USN-3835-1","refsource":"UBUNTU","tags":["Third Party Advisory"],"title":"USN-3835-1: Linux kernel vulnerabilities | Ubuntu security notices","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d2f007dbe7e4c9583eea6eb04d60001e85c6f1bd","name":"http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d2f007dbe7e4c9583eea6eb04d60001e85c6f1bd","refsource":"MISC","tags":["Patch","Vendor Advisory"],"title":"kernel/git/torvalds/linux.git - Linux kernel source tree","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.exploit-db.com/exploits/45915/","name":"45915","refsource":"EXPLOIT-DB","tags":["Exploit","Third Party Advisory","VDB Entry"],"title":"Linux - Nested User Namespace idmap Limit Local Privilege Escalation (Metasploit) - Linux local Exploit","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.18.19","name":"https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.18.19","refsource":"MISC","tags":["Patch","Vendor Advisory"],"title":"","mime":"text/plain","httpstatus":"200","archivestatus":"200"},{"url":"https://security.netapp.com/advisory/ntap-20190416-0003/","name":"https://security.netapp.com/advisory/ntap-20190416-0003/","refsource":"CONFIRM","tags":[],"title":"CVE-2018-18955 Linux Kernel Vulnerability in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.19.2","name":"https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.19.2","refsource":"MISC","tags":["Patch","Vendor Advisory"],"title":"","mime":"text/plain","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/torvalds/linux/commit/d2f007dbe7e4c9583eea6eb04d60001e85c6f1bd","name":"https://github.com/torvalds/linux/commit/d2f007dbe7e4c9583eea6eb04d60001e85c6f1bd","refsource":"MISC","tags":["Patch","Vendor Advisory"],"title":"userns: also map extents in the reverse map to kernel IDs · torvalds/linux@d2f007d · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://usn.ubuntu.com/3836-1/","name":"USN-3836-1","refsource":"UBUNTU","tags":["Third Party Advisory"],"title":"USN-3836-1: Linux kernel vulnerabilities | Ubuntu security notices","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.exploit-db.com/exploits/45886/","name":"45886","refsource":"EXPLOIT-DB","tags":["Exploit","Patch","Third Party Advisory","VDB Entry"],"title":"Linux - Broken uid/gid Mapping for Nested User Namespaces - Linux local Exploit","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://usn.ubuntu.com/3836-2/","name":"USN-3836-2","refsource":"UBUNTU","tags":["Third Party Advisory"],"title":"USN-3836-2: Linux kernel (HWE) vulnerabilities | Ubuntu security notices","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://usn.ubuntu.com/3833-1/","name":"USN-3833-1","refsource":"UBUNTU","tags":["Third Party Advisory"],"title":"USN-3833-1: Linux kernel (AWS) vulnerabilities | Ubuntu security notices","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/105941","name":"105941","refsource":"BID","tags":["Third Party Advisory","VDB Entry"],"title":"Linux Kernel CVE-2018-18955 Local Privilege Escalation Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-18955","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-18955","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2018","cve_id":"18955","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"16.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"18955","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"18.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"18955","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"18.10","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"18955","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"16.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"18955","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"18.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"18955","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"18.10","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"18955","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"18955","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2018-18955","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://github.com/torvalds/linux/commit/d2f007dbe7e4c9583eea6eb04d60001e85c6f1bd","refsource":"MISC","url":"https://github.com/torvalds/linux/commit/d2f007dbe7e4c9583eea6eb04d60001e85c6f1bd"},{"name":"https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.18.19","refsource":"MISC","url":"https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.18.19"},{"name":"USN-3836-2","refsource":"UBUNTU","url":"https://usn.ubuntu.com/3836-2/"},{"name":"USN-3835-1","refsource":"UBUNTU","url":"https://usn.ubuntu.com/3835-1/"},{"name":"https://bugs.chromium.org/p/project-zero/issues/detail?id=1712","refsource":"MISC","url":"https://bugs.chromium.org/p/project-zero/issues/detail?id=1712"},{"name":"http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d2f007dbe7e4c9583eea6eb04d60001e85c6f1bd","refsource":"MISC","url":"http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d2f007dbe7e4c9583eea6eb04d60001e85c6f1bd"},{"name":"USN-3833-1","refsource":"UBUNTU","url":"https://usn.ubuntu.com/3833-1/"},{"name":"USN-3832-1","refsource":"UBUNTU","url":"https://usn.ubuntu.com/3832-1/"},{"name":"45915","refsource":"EXPLOIT-DB","url":"https://www.exploit-db.com/exploits/45915/"},{"name":"https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.19.2","refsource":"MISC","url":"https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.19.2"},{"name":"45886","refsource":"EXPLOIT-DB","url":"https://www.exploit-db.com/exploits/45886/"},{"name":"USN-3836-1","refsource":"UBUNTU","url":"https://usn.ubuntu.com/3836-1/"},{"name":"105941","refsource":"BID","url":"http://www.securityfocus.com/bid/105941"},{"refsource":"CONFIRM","name":"https://support.f5.com/csp/article/K39103040","url":"https://support.f5.com/csp/article/K39103040"},{"refsource":"CONFIRM","name":"https://security.netapp.com/advisory/ntap-20190416-0003/","url":"https://security.netapp.com/advisory/ntap-20190416-0003/"}]}},"nvd":{"publishedDate":"2018-11-16 20:29:00","lastModifiedDate":"2020-08-24 17:37:00","problem_types":["CWE-863"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.0","vectorString":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7,"baseSeverity":"HIGH"},"exploitabilityScore":1,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:L/AC:M/Au:N/C:P/I:P/A:P","accessVector":"LOCAL","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":4.4},"severity":"MEDIUM","exploitabilityScore":3.4,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.15","versionEndExcluding":"4.19.2","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2018","CveId":"18955","Ordinal":"135881","Title":"CVE-2018-18955","CVE":"CVE-2018-18955","Year":"2018"},"notes":[{"CveYear":"2018","CveId":"18955","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2018","CveId":"18955","Ordinal":"2","NoteData":"2018-11-16","Type":"Other","Title":"Published"},{"CveYear":"2018","CveId":"18955","Ordinal":"3","NoteData":"2019-04-16","Type":"Other","Title":"Modified"}]}}}