CVE-2018-18955: High severity Linux Linux kernel vulnerability

Published Nov 16, 2018
·
Updated

In the Linux kernel 4.15.x through 4.19.x before 4.19.2, mapwrite() in kernel/usernamespace.c allows privilege escalation because it mishandles nested user namespaces with more than 5 UID or GID ranges. A user who has CAPSYSADMIN 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.

Affected Software

5 affected componentsFixes available
Linux Linux kernel>=4.15<4.19.2
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=18.10
debian/linux
6.1.176-16.1.187-16.12.107-17.1.13-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.187-1Fixed in 6.12.107-1Fixed in 7.1.13-1
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.19.2

Event History

Nov 16, 2018
CVE Published
via MITRE·08:00 PM
Data Sourced
via MITRE·08:00 PM
Description
Data Sourced
via NVD·08:29 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·10:57 PM
Description
Jul 4, 2026
Data Sourced
via Ubuntu·11:29 AM
RemedyDescriptionSeverityAffected Software
Sep 12, 2026
Data Sourced
via Debian·01:18 PM
DescriptionAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2018-18955?

CVE-2018-18955 has a severity rating of medium due to its potential for privilege escalation.

2

How do I fix CVE-2018-18955?

To fix CVE-2018-18955, update your Linux kernel to version 4.19.2 or higher.

3

Which versions of the Linux kernel are affected by CVE-2018-18955?

CVE-2018-18955 affects Linux kernel versions 4.15.x through 4.19.x before 4.19.2.

4

What causes the vulnerability in CVE-2018-18955?

The vulnerability in CVE-2018-18955 is caused by the mishandling of nested user namespaces with more than five UID or GID ranges.

5

Who can exploit CVE-2018-18955?

A user with CAP_SYS_ADMIN in an affected user namespace can exploit CVE-2018-18955 to bypass access controls.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203