Privilege escalation in Linux kernel - CVE-2018-18955

 

Privilege escalation in Linux kernel - CVE-2018-18955

Published: November 13, 2018 / Updated: May 23, 2022


Vulnerability identifier: #VU15836
CSH Severity: Low
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-18955
CWE-ID: CWE-264
Exploitation vector: Local access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a local attacker to gain elevated privileges on a targeted system.

The weakness exists due to the map_write() function, as defined in the kernel/user_namespace.c source code file, improperly handles nested user namespaces that have more than five user identifier (UID) or group identifier (GID) ranges. A local attacker with CAP_SYS_ADMIN capabilities in a targeted user namespace can access the system and execute an application that submits malicious input to bypass access controls outside the user namespace and gain elevated privileges on the system.


Affected software

Linux kernel

How to mitigate CVE-2018-18955

The vulnerability has been fixed in the versions 4.18.19, 4.19.2.

Linux kernel - addressed in versions 4.2, 4.18.19, 4.19.2

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins