Use-after-free error in Linux kernel - CVE-2016-0728

 

Use-after-free error in Linux kernel - CVE-2016-0728

Published: December 21, 2016 / Updated: December 4, 2022


Vulnerability identifier: #VU2513
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-0728
CWE-ID: CWE-119
Exploitation vector: Local access
Exploit availability: Public exploit is available

Vulnerability details

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

The weakness exists due to use-after-free error in the join_session_keyring() function in security/keys/process_keys.c when handling keyring object reference counting by Linux kernel's key management subsystem. A local attacker can overflow the usage field via a specially crafted object and execute arbitrary code with root privileges.

Successful exploitation of the vulnerability may result in arbitrary code execution on the vulnerable system.

Note: the vulnerability was being actively exploited.

Affected software

Linux kernel
Amazon Linux AMI
Red Hat Enterprise Linux for Power, big endian
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux Server from RHUI
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Real Time
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux for Power, big endian - Extended Update Support
Red Hat Enterprise Linux Server - Extended Update Support
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux EUS Compute Node
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
SUSE Linux
Ubuntu
Fedora

kernel (Red Hat package)
linux-grsec (Alpine package)
kernel-rt (Red Hat package)
kernel

How to mitigate CVE-2016-0728

Update to version 4.4.1.

kernel (Red Hat package) - update to 3.10.0-327.4.5.el7
kernel-rt (Red Hat package) - update to 3.10.0-327.4.5.rt56.206.el7_2
kernel - addressed in versions 4.3.3-200.fc22, 4.3.3-303.fc23

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins