{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-46974","published":"2024-02-27T19:04:07.500000Z","last_modified":"2026-08-04T10:16:39.310000Z","status":"Modified","cvss":{"version":"3.1","score":5.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":[],"cpes":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"4.14.113","version_end_excluding":"4.14.233"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"4.19.19","version_end_excluding":"4.19.190"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.0","version_end_excluding":"5.4.117"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.5","version_end_excluding":"5.10.35"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.11","version_end_excluding":"5.11.19"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.12","version_end_excluding":"5.12.2"}],"cpes_truncated":false,"vendors":["linux"],"products":["linux/linux_kernel"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00249,"percentile":0.09822,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"os","platform":"linux","eol":false,"packages":[],"severity":"medium","priority_score":33,"links":{"html_es":"/es/cve/CVE-2021-46974/","html_en":"/en/cve/CVE-2021-46974/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-46974","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-46974"},"untrusted":{"vendor_name":"Linux","product_name":"Linux Kernel","desc_en":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix masking negation logic upon negative dst register\n\nThe negation logic for the case where the off_reg is sitting in the\ndst register is not correct given then we cannot just invert the add\nto a sub or vice versa. As a fix, perform the final bitwise and-op\nunconditionally into AX from the off_reg, then move the pointer from\nthe src to dst and finally use AX as the source for the original\npointer arithmetic operation such that the inversion yields a correct\nresult. The single non-AX mov in between is possible given constant\nblinding is retaining it as it's not an immediate based operation.","affected":[{"untrusted_vendor":"Linux","untrusted_product":"Linux","versions":[]}],"references":[{"url":"https://git.kernel.org/stable/c/0e2dfdc74a7f4036127356d42ea59388f153f42c","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/2cfa537674cd1051a3b8111536d77d0558f33d5d","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/4d542ddb88fb2f39bf7f14caa2902f3e8d06f6ba","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/53e0db429b37a32b8fc706d0d90eb4583ad13848","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/6eba92a4d4be8feb4dc33976abac544fa99d6ecc","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/7cf64d8679ca1cb20cf57d6a88bfee79a0922a66","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/b9b34ddbe2076ade359cd5ce7537d5ed019e9807","tags":["Patch"]}]}}