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).
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux kernel | trunk – < v5.13-rc4, linux-5.12.y – < v5.12.4, linux-5.11.y – < v5.11.21, linux-5.10.y – < v5.10.37, v5.7-rc1 – < 5.7* | v5.13-rc4 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 5.10.38-1 | — |
| Debian 13 | linux | 5.10.38-1 | — |
| Debian 12 | linux | 5.10.38-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | linux-hwe-5.8 | 5.8.0-53.60~20.04.1 | USN-4949-1 |
| Ubuntu 20.04 LTS | linux-oem-5.10 | 5.10.0-1026.27 | USN-4948-1 |
| Ubuntu 20.04 LTS | linux-raspi2 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-riscv-5.8 | 5.8.0-25.27~20.04.1 | — |
| Ubuntu 18.04 LTS | linux-gcp +11 | No fix yet | — |
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP3 | kernel-64kb +5 | 5.3.18-59.5.2 | SUSE-SU-2021:1977-1 |
| SLES 15 SP3 | kernel-azure +2 | 5.3.18-38.3.1 | SUSE-SU-2021:1975-1 |
| SLES 15 SP3 | kernel-default-base | 5.3.18-59.5.2.18.2.2 | SUSE-SU-2021:1977-1 |
| SLES 15 SP3 | kernel-syms +1 | 5.3.18-59.5.1 | SUSE-SU-2021:1977-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLE Live Patching 15 SP3 | kernel-default | 5.3.18-59.5.2 | SUSE-SU-2021:1977-1 |
| SLE Live Patching 15 SP3 | kernel-livepatch-SLE15-SP3_Update_0 | 2-3.1 | SUSE-SU-2021:2198-1 |
| SLE Live Patching 15 SP3 | kernel-livepatch-SLE15-SP3_Update_1 | 1-7.5.1 | SUSE-SU-2021:1977-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | kernel-source | 5.14.6-1.4 | openSUSE-SU-2024:13704-1, openSUSE-SU-2024:10728-1 |
| openSUSE Leap 15.3 | kernel-64kb +7 | 5.3.18-59.5.2 | openSUSE-SU-2021:1977-1 |
| openSUSE Leap 15.3 | kernel-azure +2 | 5.3.18-38.3.1 | openSUSE-SU-2021:1975-1 |
| openSUSE Leap 15.3 | kernel-default-base | 5.3.18-59.5.2.18.2.2 | openSUSE-SU-2021:1977-1 |
| openSUSE Leap 15.3 | kernel-syms +2 | 5.3.18-59.5.1 | openSUSE-SU-2021:1977-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Linux eBPF ALU32 32-bit Invalid Bounds Tracking LPE
exploit/linux/local/cve_2021_3490_ebpf_alu32_bounds_check_lpe
GitHub 5 repositories
-
chompie1337/Linux_LPE_eBPF_CVE-2021-3490 ★ 318 · Jun 24, 2021
-
pivik271/CVE-2021-3490 ★ 2 · Apr 6, 2023
-
WhatsWrongAndWhy/CVE-2021-3490 ★ 0 · Jul 21, 2026
-
prabeershakya/CVE-2021-3490-POC ★ 0 · Mar 4, 2026
-
sandesh9978/cve-2021-3490-ebpf-analysis ★ 0 · Mar 3, 2026
Research implementation demonstrating interaction with Linux eBPF subsystem related to CVE-2021-3490. Includes BPF map creation, syscall wrappers, namespace setup, and verifier analysis. For educatio…
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 9
- USN-4949-1 linux, linux-aws, linux-azure, linux-gcp, linux-hwe-5.8, linux-kvm, linux-oracle, linux-raspi vulnerabilities Ubuntu Security Notices (USN) · Jun 3, 2026
- USN-4948-1 linux-oem-5.10 vulnerabilities Ubuntu Security Notices (USN) · Jun 3, 2026
- SUSE-SU-2021:2198-1 Security update for the Linux Kernel (Live Patch 0 for SLE 15 SP3) SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:13704-1 kernel-devel-longterm-6.6.17-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:1975-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10728-1 kernel-devel-5.14.6-1.4 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:1977-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:1975-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · May 2, 2025
- SUSE-SU-2021:1977-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · May 2, 2025
References
- https://ubuntu.com/security/notices/USN-4950-1 vendor-advisory
- https://ubuntu.com/security/notices/USN-4949-1 vendor-advisory
- [oss-security] CVE-2021-3490 - Linux kernel eBPF bitwise ops ALU32 bounds tracking mailing-list
- https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=049c4e13714ecbca567b4d5f6d563f05d431c80e
- https://www.zerodayinitiative.com/advisories/ZDI-21-606/
- https://security.netapp.com/advisory/ntap-20210716-0004/
- http://packetstormsecurity.com/files/164015/Linux-eBPF-ALU32-32-bit-Invalid-Bounds-Tracking-Local-Privilege-Escalation.html