{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-3490","id":"CVE-2021-3490","title":"Linux kernel eBPF bitwise ops ALU32 bounds tracking","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 ke","descriptionLong":"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).","published":"2021-06-04T01:40:20.129Z","updated":"2026-06-17T04:05:11.737Z","reserved":"2021-04-09T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"canonical","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"high","source":"canonical"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"high","source":"canonical"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"high","source":"ubuntu.com"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"2.0","score":7.2,"vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","rating":"high","source":"NVD"}],"rating":"high","products":["Linux kernel"],"affectedProducts":[{"vendor":"Linux","product":"Linux kernel","defaultStatus":null,"versions":[{"lessThan":"v5.13-rc4","status":"affected","version":"trunk","versionType":"custom"},{"lessThan":"v5.12.4","status":"affected","version":"linux-5.12.y","versionType":"custom"},{"lessThan":"v5.11.21","status":"affected","version":"linux-5.11.y","versionType":"custom"},{"lessThan":"v5.10.37","status":"affected","version":"linux-5.10.y","versionType":"custom"},{"lessThan":"5.7*","status":"affected","version":"v5.7-rc1","versionType":"custom"}],"platforms":[]}],"packages":[],"cwes":["CWE-787","CWE-20","CWE-125"],"aliases":["A-190876666","PUB-A-190876666"],"references":[{"url":"https://ubuntu.com/security/notices/USN-4950-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","Third Party Advisory","advisory"]},{"url":"https://ubuntu.com/security/notices/USN-4949-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","Third Party Advisory","advisory"]},{"url":"https://www.openwall.com/lists/oss-security/2021/05/11/11","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Patch","Third Party Advisory","fix"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=049c4e13714ecbca567b4d5f6d563f05d431c80e","tags":["x_refsource_MISC","x_transferred","Patch","Vendor Advisory","fix"]},{"url":"https://www.zerodayinitiative.com/advisories/ZDI-21-606/","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20210716-0004/","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory"]},{"url":"http://packetstormsecurity.com/files/164015/Linux-eBPF-ALU32-32-bit-Invalid-Bounds-Tracking-Local-Privilege-Escalation.html","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","VDB Entry","evidence"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.27381,"epssPercentile":0.98102,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-3490","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3490","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-3490","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-3490","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["linux-kernel"],"critical":["EPSS 27% with CVSS 7.8"],"attention":null}