CVE-2021-3444
Linux kernel bpf verifier incorrect mod32 truncation
- State
- Published
- Severity
- 7.8 High
- Published
- Mar 23, 2021
- Updated
- Sep 16, 2024
- Reserved
- Mar 16, 2021
Description
The bpf verifier in the Linux kernel did not properly handle mod32 destination register truncation when the source register was known to be 0. A local attacker with the ability to load bpf programs could use this gain out-of-bounds reads in kernel memory leading to information disclosure (kernel memory), and possibly out-of-bounds writes that could potentially lead to code execution. This issue was addressed in the upstream kernel in commit 9b00f1b78809 ("bpf: Fix truncation handling for mod32 dst reg wrt zero") and in Linux stable kernels 5.11.2, 5.10.19, and 5.4.101.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 7.8 High | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H | canonical |
Weaknesses
- CWE-681 Incorrect Conversion between Numeric Types
Affected Products
| Product | Versions |
|---|---|
kernelLinux |
|
References
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9b00f1b78809
- https://www.openwall.com/lists/oss-security/2021/03/23/2
- [oss-security] 20210323 [CVE-2021-3444] Linux kernel bpf verifier incorrect mod32 truncationmailing-list
- http://packetstormsecurity.com/files/162117/Kernel-Live-Patch-Security-Notice-LSN-0075-1.html
- https://security.netapp.com/advisory/ntap-20210416-0006/
- [debian-lts-announce] 20211015 [SECURITY] [DLA 2785-1] linux-4.19 security updatemailing-list
- http://packetstormsecurity.com/files/164950/Kernel-Live-Patch-Security-Notice-LSN-0082-1.html
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.