Linux kernel eBPF bitwise ops ALU32 bounds tracking
Key Information:
- Vendor
Linux
- Status
- CVE ID
- CVE ID:
- CVE-2021-3490
- Vendor
- CVE Published:
- 11 May 2021
- Fixed in
- Fixed in:
- 5.7*
Timeline
Exploit known 695 days after it was published
- ๐ก
Public PoC available
- ๐พ
Exploit known to exist
Vulnerability published
Vulnerability Reserved
Badges
How risky is it?
- No: Needs local access
- Yes: Public exploit code (3 proof-of-concepts)
- No: Not on CISA's exploited list
- No: No ransomware use seen
Our verdict
Patch this week
Exploitation is likely. Prioritise the fix.
What to do
1Update to a fixed version
Several version ranges are affected; the full list is under Affected Version(s).
2Look for signs of compromise
Exploit code is public, so check logs on exposed Linux kernel systems for unusual requests or new processes from before you patched. The 3 public proof-of-concepts show what an attack looks like.
3Why it's rated "Patch this week"
- Exploit code is public, so attacks are easy to copy.
- EPSS gives it a 27.3% chance of exploitation in the next 30 days.
- Its CVSS severity is high (7.8).
What is CVE-2021-3490?
The eBPF ALU32 bounds tracking for bitwise ops (AND, OR and XOR) in the Linux kernel did not properly update 32-bit bounds, which could be turned into out of bounds reads and writes in the Linux kernel and therefore, arbitrary code execution. This issue was fixed via commit 049c4e13714e ("bpf: Fix alu32 const subreg bound tracking on bitwise operations") (v5.13-rc4) and backported to the stable kernels in v5.12.4, v5.11.21, and v5.10.37. The AND/OR issues were introduced by commit 3f50f132d840 ("bpf: Verifier, do explicit ALU32 bounds tracking") (5.7-rc1) and the XOR variant was introduced by 2921c90d4718 ("bpf:Fix a verifier failure with xor") ( 5.10-rc1).
Affected Version(s)
Linux kernel trunk
Linux kernel linux-5.12.y
Linux kernel linux-5.11.y
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
References
More Linux Vulnerabilities
Memory Ordering Flaw in Linux Kernel
Linux Kernel Vulnerability in SCTP Control Chunk Migration
Data Copy Vulnerability in Linux Kernel
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities ยท Report a correction
EPSS Score
27% chance of being exploited in the next 30 days.
