CVE-2021-3600: Divide by Zero
A flaw was found in the Linux kernel’s eBPF verification code, where the eBPF 32-bit div/mod source register truncation could lead to out-of-bounds reads and writes. By default, accessing the eBPF verifier is only possible to privileged users with CAPSYSADMIN. This flaw allows a local user who can run eBPF instructions to crash the system or possibly escalate their privileges on the system. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.
Other sources
It was discovered that eBPF 32-bit div/mod source register truncation could lead to out-of-bounds reads and writes in the kernel. It was introduced by commit 68fda450a7df ("bpf: fix 32-bit divide by zero"). It was first introduced in 4.15-rc9, but backported and applied to v4.14.y, v4.9.y and v4.4.y. However, this specific attack will not work on v4.4.y and v4.9.y kernels as pointer arithmetic is prohibited on those kernels. This was introduced by commit f1174f77b50c ("bpf/verifier: rework value tracking"), in v4.14-rc1. The fix is commit e88b2c6e5a4d ("bpf: Fix 32 bit src register truncation on div/mod"), introduced in v5.11. It was backported and applied on v5.10.y and v5.4.y, but not v4.19.y and v4.14.y.
Reference: https://www.openwall.com/lists/oss-security/2021/06/23/1
— Red Hat
It was discovered that the eBPF implementation in the Linux kernel did not properly track bounds information for 32 bit registers when performing div and mod operations. A local attacker could use this to possibly execute arbitrary code.
— Launchpad
Affected Software
Remediation
Information
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2021-3600?
CVE-2021-3600 has a medium severity rating due to its potential for local privilege escalation.
How do I fix CVE-2021-3600?
To fix CVE-2021-3600, upgrade to the kernel versions specified in the remediation details or install the provided patches.
What software is affected by CVE-2021-3600?
CVE-2021-3600 affects various versions of the Linux kernel, specifically those prior to the fixed versions stated in the remediation.
Is CVE-2021-3600 exploitable remotely?
No, CVE-2021-3600 is only exploitable locally by users with specific privileges.
What types of vulnerabilities are related to CVE-2021-3600?
CVE-2021-3600 is related to local privilege escalation through out-of-bounds read and write vulnerabilities.