Privilege escalation in Linux kernel - CVE-2016-5195

 

Privilege escalation in Linux kernel - CVE-2016-5195

Published: October 22, 2016 / Updated: December 15, 2022


Vulnerability identifier: #VU1039
CSH Severity: Medium
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-2016-5195
CWE-ID: CWE-362
Exploitation vector: Local access
Exploit availability: The vulnerability is being exploited in the wild

Vulnerability details

The vulnerability allows a  local user to obtain elevated privileges on the target system.
The weakness is due to race condition in the kernel memory subsystem in the management of copy-on-write operations on read-only memory mappings that lets attackers to overwrite kernel memory and gain kernel-level privileges.
Successful exploitation of the vulnerability results in gaining of root privileges on the vulnerable system.

Note: the vulnerability was being actively exploited.

Affected software

Linux kernel
Amazon Linux AMI
Arch Linux
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, big endian
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux Server - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for Power, big endian - Extended Update Support
Red Hat Enterprise Linux EUS Compute Node
Red Hat Enterprise Linux Server for ARM
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for Real Time for NFV
Red Hat Enterprise Linux for Real Time
Red Hat Enterprise Linux for Power 9
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
SUSE Linux
Ubuntu
Slackware Linux
Opensuse
Fedora

ProtecTIER Entry Edition (PID 5639-PTC) - TS7610 / TS7620
ProtecTIER Gateway for System Z (PID 5639-FPA)
ProtecTIER Enterprise Edition (PID 5639-PTA) - TS7650G
ProtecTIER Appliance Edition (PID 5639-PTB) - TS7650AP1
Oracle VM Server for x86
kernel (Red Hat package)
kernel-rt (Red Hat package)
kernel-aarch64 (Red Hat package)
kernel
kernel-alt (Red Hat package)
QRadar Manager for YARA and SIGMA Rules App

How to mitigate CVE-2016-5195


kernel (Red Hat package) - addressed in versions 2.6.18-238.57.1.el5, 2.6.18-348.32.1.el5, 2.6.32-220.68.1.el6, 2.6.32-358.75.1.el6, 2.6.32-431.75.1.el6, 2.6.32-504.54.1.el6, 2.6.32-573.35.2.el6, 2.6.32-642.6.2.el6, 3.10.0-229.42.2.el7, 3.10.0-327.36.3.el7
kernel-rt (Red Hat package) - update to 3.10.0-327.36.3.rt56.238.el7
QRadar Manager for YARA and SIGMA Rules App - update to 2.2.0
kernel-aarch64 (Red Hat package) - update to 4.5.0-15.2.1.el7
kernel - addressed in versions 4.7.9-100.fc23, 4.7.9-200.fc24, 4.8.3-300.fc25
kernel-alt (Red Hat package) - update to 4.11.0-44.4.1.el7a

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins