CVE-2021-3490
A public proof of concept exists; no exploitation attested.
- Published2021-06-04
- Fixed in5.12.4 · 5.11.21 · 5.10.37
- WeaknessCWE-125 · CWE-20 · CWE-787
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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).
Timeline
dates in UTC- 2021-06-0402:15CVE publishedNVD
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 5.12 | ≥ 5.12, < 5.12.4 | 5.12.4 | NVD |
| 5.11 | ≥ 5.11, < 5.11.21 | 5.11.21 | NVD |
| 5.10 | ≥ 5.10, < 5.10.37 | 5.10.37 | NVD |
| 5.13 | = 5.13 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 20.4 | = 20.04 | no fix published | NVD |
| 20.10 | = 20.10 | no fix published | NVD |
| 21.4 | = 21.04 | no fix published | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- :linux_kernel:Androidfrom :0 · fixed in :2021-10-05
- kernelTuxCare:CentOS:8.4all versions · fixed in 4.18.0-305.25.1.el8_4.tuxcare.els52and 21 other packages
- kernel-64kbSUSE:Linux Enterprise Module for Basesystem 15 SP3all versions · fixed in 5.3.18-59.5.2and 4 other packages
- kernel-64kbopenSUSE:Leap 15.3all versions · fixed in 5.3.18-59.5.2and 7 other packages
- kernel-azureSUSE:Linux Enterprise Module for Public Cloud 15 SP3all versions · fixed in 5.3.18-38.3.1and 2 other packages
- kernel-azureopenSUSE:Leap 15.3all versions · fixed in 5.3.18-38.3.1and 2 other packages
- kernel-defaultSUSE:Linux Enterprise Workstation Extension 15 SP3all versions · fixed in 5.3.18-59.5.2and 1 other package
- kernel-defaultSUSE:Linux Enterprise Module for Legacy 15 SP3all versions · fixed in 5.3.18-59.5.2
20 more package ranges on OSV.dev
Vendor advisories
- CVE-2021-3490 Red Hat Product Security
kernel: Linux kernel eBPF bitwise ops ALU32 bounds tracking
Fix
- Update Linux linux kernel to 5.12.4 · 5.11.21 · 5.10.37
Advisories and patches
- git.kernel.orgPatch · Vendor Advisory
- www.openwall.comPatch
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHub5 repositories, unverifiedknown since 2026-11-01chompie1337/Linux_LPE_eBPF_CVE-2021-3490pivik271/CVE-2021-3490sandesh9978/cve-2021-3490-ebpf-analysisprabeershakya/CVE-2021-3490-POCWhatsWrongAndWhy/CVE-2021-3490
- Metasploit modules
- 1 moduleexploit/linux/local/cve_2021_3490_ebpf_alu32_bounds_check_lperank: greatModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause. Metasploit Framework
Sources
- CNACVSS 3.17.8known since 2026-10-23
- NVDCVSS 3.17.8read 2026-10-23
- NVDCVSS 2.07.2read 2026-10-23
- CNAweakness (CWE)CWE-20, CWE-787known since 2026-10-23
- NVDweakness (CWE)CWE-125, CWE-787read 2026-10-23
- FIRST EPSSEPSS score27.4 %read 2026-12-04
- PoC-in-GitHubproof of concept5known since 2026-11-01
- Metasploit FrameworkMetasploit modules1known since 2026-11-01
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- EUVD-2021-26812same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-9wfm-q59x-qc3xsame flawGitHub Advisory Database · CC-BY-4.0
- PUB-A-190876666same flawAndroid Security Bulletins · CC-BY-4.0
- exploit/linux/local/cve_2021_3490_ebpf_alu32_bounds_check_lpeexploit moduleMetasploit Framework © Rapid7 · BSD-3-Clause
- openSUSE-SU-2021:1975-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2021:1977-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:10728-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:13704-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- SUSE-SU-2021:1975-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:1977-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:2198-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-4948-1advisory covering several CVEsUbuntu
- USN-4949-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Published
- 2021-06-04
- Last modified
- 2026-06-17
- NVD status
- Modified
- GitHub advisory
- GHSA-9wfm-q59x-qc3x
Frequently asked questions
What is CVE-2021-3490?
Is CVE-2021-3490 actively exploited?
What is the CVSS score for CVE-2021-3490?
Running Linux kernel? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-9wfm-q59x-qc3x
- Metasploit Framework · BSD-3-Clause
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0