Buffer overflow in Linux kernel - CVE-2020-8835

 

Buffer overflow in Linux kernel - CVE-2020-8835

Published: March 31, 2020 / Updated: March 24, 2023


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

Vulnerability details

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to a boundary error in bpf verifier for 32 bit systems in Linux kernel. A local user can rigger a buffer overflow and gain access to sensitive information or execute arbitrary code on the system with elevated privileges.


Affected software

Linux kernel
Arch Linux
Ubuntu
Fedora
linux-oracle (Ubuntu package)
linux-hwe (Ubuntu package)
linux (Ubuntu package)
linux-aws (Ubuntu package)
linux-kvm (Ubuntu package)
linux-gcp (Ubuntu package)
linux-azure (Ubuntu package)
linux-raspi2 (Ubuntu package)
linux-azure-5.3 (Ubuntu package)
linux-oracle-5.3 (Ubuntu package)
linux-gcp-5.3 (Ubuntu package)
linux-gke-5.3 (Ubuntu package)
linux-raspi2-5.3 (Ubuntu package)
kernel
kernel-headers
kernel-tools

How to mitigate CVE-2020-8835

Install updates from vendor's website.

As a temporary solution set the following sysctl:

kernel.unprivileged_bpf_disabled = 1

linux-oracle (Ubuntu package) - update to 5.3.0-1013.14
linux-hwe (Ubuntu package) - update to 5.3.0-45.37~18.04.1
linux (Ubuntu package) - update to 5.3.0-45.37
linux-aws (Ubuntu package) - update to 5.3.0-1015.16
linux-kvm (Ubuntu package) - update to 5.3.0-1014.15
linux-gcp (Ubuntu package) - update to 5.3.0-1016.17
linux-azure (Ubuntu package) - update to 5.3.0-1018.19
linux-raspi2 (Ubuntu package) - update to 5.3.0-1021.23
linux-azure-5.3 (Ubuntu package) - update to 5.3.0-1018.19~18.04.1
linux-oracle-5.3 (Ubuntu package) - update to 5.3.0-1013.14~18.04.1
linux-gcp-5.3 (Ubuntu package) - update to 5.3.0-1016.17~18.04.1
linux-gke-5.3 (Ubuntu package) - update to 5.3.0-1016.17~18.04.1
linux-raspi2-5.3 (Ubuntu package) - update to 5.3.0-1021.23~18.04.1
kernel - addressed in versions 5.5.15-100.fc30, 5.5.15-200.fc31, 5.5.16-100.fc30, 5.6.2-300.fc32
kernel-headers - addressed in versions 5.5.15-100.fc30, 5.5.15-200.fc31, 5.5.16-100.fc30
kernel-tools - addressed in versions 5.5.15-100.fc30, 5.5.15-200.fc31, 5.5.16-100.fc30

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins