CVE-2021-3490 in the critical feed json
Linux kernel eBPF bitwise ops ALU32 bounds tracking
published 2021-06-04 5 y ago modified 2026-06-17 4 mo ago also EUVD-2021-26812
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 27.4%
- EPSS 27.4% chance of exploitation in 30 days, percentile 98%
- public exploits
- 1
- Metasploit
Summary
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).
Patch / fix
- Linux Linux kernel v5.10.37, v5.11.21, v5.12.4, v5.13-rc4
- linux Debian 14, Debian 13, Debian 12 5.10.38-1
debian advisories DEBIAN-CVE-2021-3490
- linux-hwe-5.8 Ubuntu 20.04 LTS 5.8.0-53.60~20.04.1
- linux-oem-5.10 Ubuntu 20.04 LTS 5.10.0-1026.27
- linux-riscv-5.8 Ubuntu 20.04 LTS 5.8.0-25.27~20.04.1
ubuntu advisories UBUNTU-CVE-2021-3490
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-64kb SLE Module for Basesystem 15 SP3 5.3.18-59.5.2
- kernel-syms SLE Module for Development Tools 15 SP3 5.3.18-59.5.1
- kernel-source SLE Module for Development Tools 15 SP3, SLE Module for Basesystem 15 SP3 5.3.18-59.5.2
- kernel-default SLE Workstation Extension 15 SP3, SLE Module for Legacy 15 SP3, SLE Module for Basesystem 15 SP3 +2 more 5.3.18-59.5.2
- kernel-preempt SLE Workstation Extension 15 SP3, SLE Module for Development Tools 15 SP3, SLE Module for Basesystem 15 SP3 5.3.18-59.5.2
- kernel-zfcpdump SLE Module for Basesystem 15 SP3 5.3.18-59.5.2
- kernel-obs-build SLE Module for Development Tools 15 SP3 5.3.18-59.5.1
- kernel-default-base SLE Module for Basesystem 15 SP3 5.3.18-59.5.2.18.2.2
suse advisories SUSE-SU-2021:2198-1SUSE-SU-2021:1977-1SUSE-SU-2021:1975-1
- kernel-source openSUSE Tumbleweed 5.14.6-1.4
- kernel-source openSUSE Tumbleweed 6.6.17-1.1
- kernel-64kb openSUSE Leap 15.3 5.3.18-59.5.2
- kernel-syms openSUSE Leap 15.3 5.3.18-59.5.1
- kernel-obs-qa openSUSE Leap 15.3 5.3.18-59.5.1
- kernel-source openSUSE Leap 15.3 5.3.18-59.5.2
- kernel-default openSUSE Leap 15.3 5.3.18-59.5.2
- kernel-preempt openSUSE Leap 15.3 5.3.18-59.5.2
opensuse advisories openSUSE-SU-2024:10728-1openSUSE-SU-2024:13704-1openSUSE-SU-2021:1977-1openSUSE-SU-2021:1975-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-3490 updated cvss 7.8
kernel: Linux kernel eBPF bitwise ops ALU32 bounds tracking
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, kernel-alt, python-perf, +9 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +82 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- First public exploit (Metasploit exploit/linux/local/cve_2021_3490_ebpf_alu32_bounds_check_lpe)
- Published
Exploit prediction
27.38% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Metasploit exploit/linux/local/cve_2021_3490_ebpf_alu32_bounds_check_lpe Linux eBPF ALU32 32-bit Invalid Bounds Tracking LPE metasploit exploit, great rank, 2021-05-11
- packetstormsecurity.com http://packetstormsecurity.com/files/164015/Linux-eBPF-ALU32-32-bit-Invalid-Bounds-Tracking-Local-Privilege-Escalation.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.2 | AV:L/AC:L/Au:N/C:C/I:C/A:C |
Affected products
- Linux Linux kernel
Classification
- Weakness
- Technology feeds
References
-
git.kernel.org
/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=049c4e13714ecbca567b4d5f6d563f05d431c80e
patch, vendor-advisory
-
openwall.com
/lists/oss-security/2021/05/11/11
mailing-list, patch, third-party-advisory
-
packetstormsecurity.com
/files/164015/Linux-eBPF-ALU32-32-bit-Invalid-Bounds-Tracking-Local-Privilege-Escalation.html
exploit, third-party-advisory, vdb-entry
-
ubuntu.com
/security/notices/USN-4950-1
vendor-advisory, third-party-advisory
-
ubuntu.com
/security/notices/USN-4949-1
vendor-advisory, third-party-advisory
-
zerodayinitiative.com
/advisories/ZDI-21-606/
third-party-advisory, vdb-entry
-
security.netapp.com
/advisory/ntap-20210716-0004/
third-party-advisory
Sources
- CVE List CVE-2021-3490
- NVD CVE-2021-3490
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.