Out-of-bounds write in Linux kernel - CVE-2019-20636

 

Out-of-bounds write in Linux kernel - CVE-2019-20636

Published: April 8, 2020 / Updated: July 17, 2020


Vulnerability identifier: #VU30312
CSH Severity: Low
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-20636
CWE-ID: CWE-787
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local privileged user to execute arbitrary code.

In the Linux kernel before 5.4.12, drivers/input/input.c has out-of-bounds writes via a crafted keycode table, as demonstrated by input_set_keycode, aka CID-cb222aed03d7.


Affected software

Linux kernel
Anolis OS
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power 9
Red Hat Enterprise Linux for IBM System z (Structure A)
Red Hat Enterprise Linux for Real Time
Red Hat Enterprise Linux for Real Time for NFV
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux Server - TUS
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, big endian - Extended Update Support
Red Hat Enterprise Linux EUS Compute Node
Red Hat Virtualization Host - Extended Update Support 4.2 for RHEL
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat CodeReady Linux Builder for x86_64
Red Hat CodeReady Linux Builder for ARM 64
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
openEuler
kernel (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
kernel-rt (Red Hat package)
kernel-alt (Red Hat package)
kernel-debugsource
kernel
bpftool-debuginfo
bpftool
python3-perf-debuginfo
python3-perf
python2-perf-debuginfo
perf-debuginfo
kernel-debuginfo
kernel-devel
kernel-source
kernel-tools
python2-perf
perf
kernel-tools-devel
kernel-tools-debuginfo
kernel-debug-modules
kernel-debug-devel
kernel-debug-modules-extra
kernel-headers
kernel-modules
kernel-modules-extra
kernel-modules-internal
kernel-tools-libs
kernel-tools-libs-devel
kernel-debug-core
kernel-debug
kernel-core
python-perf

How to mitigate CVE-2019-20636

Install update from vendor's website.

Linux kernel - update to 5.4.12
kernel (Red Hat package) - addressed in versions 3.10.0-693.81.1.el7, 3.10.0-957.65.1.el7, 3.10.0-1062.43.1.el7, 3.10.0-1160.el7, 4.18.0-240.el8
kernel-rt (Red Hat package) - update to 3.10.0-1160.rt56.1131.el7
kernel-alt (Red Hat package) - update to 4.14.0-115.26.1.el7a
kernel-debugsource - update to 4.19.90-2004.1.0.0037
kernel - update to 4.19.90-2004.1.0.0037
bpftool-debuginfo - update to 4.19.90-2004.1.0.0037
bpftool - update to 4.19.90-2004.1.0.0037
python3-perf-debuginfo - update to 4.19.90-2004.1.0.0037
python3-perf - update to 4.19.90-2004.1.0.0037
python2-perf-debuginfo - update to 4.19.90-2004.1.0.0037
perf-debuginfo - update to 4.19.90-2004.1.0.0037
kernel-debuginfo - update to 4.19.90-2004.1.0.0037
kernel-devel - update to 4.19.90-2004.1.0.0037
kernel-source - update to 4.19.90-2004.1.0.0037
kernel-tools - update to 4.19.90-2004.1.0.0037
python2-perf - update to 4.19.90-2004.1.0.0037
perf - update to 4.19.90-2004.1.0.0037
kernel-tools-devel - update to 4.19.90-2004.1.0.0037
kernel-tools-debuginfo - update to 4.19.90-2004.1.0.0037
kernel-debug-modules - update to 4.19.91-26
kernel-debug-devel - update to 4.19.91-26
kernel-debug-modules-extra - update to 4.19.91-26
kernel-devel - update to 4.19.91-26
kernel-headers - update to 4.19.91-26
kernel-modules - update to 4.19.91-26
kernel-modules-extra - update to 4.19.91-26
kernel-modules-internal - 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
python3-perf - update to 4.19.91-26
bpftool - update to 4.19.91-26
kernel-debug-core - update to 4.19.91-26
kernel-debug - update to 4.19.91-26
kernel-core - update to 4.19.91-26
kernel - update to 4.19.91-26
python-perf - update to 4.19.91-26

External References

Related Security Bulletins