Skip to main content
Public proof of conceptFix available

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?

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
  1. 2021-06-0402:15CVE publishedNVD

Versions per branch

NVD
Linux linux kernel
BranchAffectedFixed in
5.12≥ 5.12, < 5.12.45.12.4
5.11≥ 5.11, < 5.11.215.11.21
5.10≥ 5.10, < 5.10.375.10.37
5.13= 5.13no fix published
Canonical ubuntu linux
BranchAffectedFixed in
20.4= 20.04no fix published
20.10= 20.10no fix published
21.4= 21.04no fix published

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

Full record on NVD

Fix

  1. Update Linux linux kernel to 5.12.4 · 5.11.21 · 5.10.37

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
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

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?

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).

Is CVE-2021-3490 actively exploited?

Active exploitation of CVE-2021-3490 has not been confirmed. Its EPSS score was 27.4% on 2026-12-03, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-3490?

CVE-2021-3490 has a CVSS v3 base score of 7.8 (High severity), with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

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

Sources for this record