Use-after-free in Linux kernel - CVE-2020-12657

 

Use-after-free in Linux kernel - CVE-2020-12657

Published: May 21, 2020


Vulnerability identifier: #VU28167
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-2020-12657
CWE-ID: CWE-416
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to compromise vulnerable system.

The vulnerability exists due to a use-after-free error in "block/bfq-iosched.c" file related to "bfq_idle_slice_timer_body". A local user can execute arbitrary code on the target system.

Successful exploitation of the vulnerability may allow an attacker to compromise vulnerable system.


Affected software

Linux kernel
Amazon Linux AMI
Anolis OS
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for Real Time
Red Hat Enterprise Linux for Real Time for NFV
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for ARM 64
Red Hat CodeReady Linux Builder for x86_64
Red Hat CodeReady Linux Builder for ARM 64
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat CodeReady Linux Builder for x86_64 - Extended Update Support
Red Hat CodeReady Linux Builder for Power, little endian - Extended Update Support
Red Hat CodeReady Linux Builder for ARM 64 - Extended Update Support
Red Hat Enterprise Linux Server - TUS
kernel (Red Hat package)
kernel-rt (Red Hat package)
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
kpatch-patch-4_18_0-147_13_2 (Red Hat package)
kpatch-patch-4_18_0-193_1_2 (Red Hat package)
kpatch-patch-4_18_0-193 (Red Hat package)
kpatch-patch-4_18_0-147_8_1 (Red Hat package)
kpatch-patch-4_18_0-147_5_1 (Red Hat package)
kpatch-patch-4_18_0-147_0_2 (Red Hat package)
kpatch-patch-4_18_0-147_0_3 (Red Hat package)
kpatch-patch-4_18_0-147_3_1 (Red Hat package)
kpatch-patch-4_18_0-147 (Red Hat package)
bpftool
kernel
kernel-debug
kernel-debug-devel
kernel-devel
kernel-headers
kernel-tools
kernel-tools-libs
kernel-tools-libs-devel
perf
python-perf

How to mitigate CVE-2020-12657

Install updates from vendor's website.

Linux kernel - update to 5.6.5
kernel (Red Hat package) - addressed in versions 4.18.0-80.23.2.el8_0, 4.18.0-147.20.1.el8_1, 4.18.0-193.6.3.el8_2
kernel-rt (Red Hat package) - update to 4.18.0-193.6.3.rt13.59.el8_2
kpatch-patch-4_18_0-147_13_2 (Red Hat package) - update to 1-1.el8_1
kpatch-patch-4_18_0-193_1_2 (Red Hat package) - update to 1-1.el8_2
kpatch-patch-4_18_0-193 (Red Hat package) - update to 1-3.el8
kpatch-patch-4_18_0-147_8_1 (Red Hat package) - update to 1-3.el8_1
kpatch-patch-4_18_0-147_5_1 (Red Hat package) - update to 1-5.el8_1
kpatch-patch-4_18_0-147_0_2 (Red Hat package) - update to 1-10.el8
kpatch-patch-4_18_0-147_0_3 (Red Hat package) - update to 1-10.el8
kpatch-patch-4_18_0-147_3_1 (Red Hat package) - update to 1-10.el8_1
kpatch-patch-4_18_0-147 (Red Hat package) - update to 1-14.el8
bpftool - update to 4.19.91-26
kernel - update to 4.19.91-26
kernel-debug - update to 4.19.91-26
kernel-debug-devel - update to 4.19.91-26
kernel-devel - update to 4.19.91-26
kernel-headers - update to 4.19.91-26
kernel-tools - update to 4.19.91-26
kernel-tools-libs - update to 4.19.91-26
kernel-tools-libs-devel - update to 4.19.91-26
perf - update to 4.19.91-26
python-perf - update to 4.19.91-26

External References

Related Security Bulletins