CVE-2021-3490
HIGHLinux eBPF ALU32 32-bit Invalid Bounds Tracking LPE
Title source: metasploitExploitation Summary
EIP tracks 5 public exploits for CVE-2021-3490.
PoCs published by chompie1337, pivik271, prabeershakya, including Metasploit module exploits/linux/local/cve_2021_3490_ebpf_alu32_bounds_check_lpe.
AI-analyzed exploit summary This repository contains a functional local privilege escalation (LPE) exploit for CVE-2021-3490, leveraging eBPF map operations to achieve arbitrary kernel memory read/write and ultimately overwrite credentials for root access. The exploit is tested on specific Ubuntu kernel versions and includes detailed technical implementation.
Description
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).
Exploits (5)
This repository contains a functional local privilege escalation (LPE) exploit for CVE-2021-3490, leveraging eBPF map operations to achieve arbitrary kernel memory read/write and ultimately overwrite credentials for root access. The exploit is tested on specific Ubuntu kernel versions and includes detailed technical implementation.
This repository contains a functional exploit for CVE-2021-3490, leveraging eBPF ALU32 bounds tracking flaws to achieve arbitrary read/write in the Linux kernel, leading to privilege escalation. The exploit uses crafted BPF instructions to trigger out-of-bounds memory access and manipulate kernel structures.
This repository contains a functional local privilege escalation (LPE) exploit for CVE-2021-3490, leveraging eBPF map operations to achieve arbitrary kernel memory read/write. The exploit targets Ubuntu 20.04 with kernel 5.8.0-50-generic and includes detailed setup instructions.
This repository provides a technical analysis and educational demonstration of CVE-2021-3490, focusing on eBPF verifier bounds tracking. It includes a C implementation that interacts with the Linux kernel's eBPF subsystem, demonstrating BPF map creation, syscall usage, and namespace setup, but does not include an automated exploit payload.
This Metasploit module exploits CVE-2021-3490, a vulnerability in the Linux kernel's eBPF verifier that allows local privilege escalation (LPE) due to improper bounds tracking in ALU32 operations. It achieves arbitrary code execution as root by leveraging out-of-bounds read/write in the kernel.
References (7)
Scores
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H