Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2021-46974

HIGH 7.1EPSS 10%

bpf: Fix masking negation logic upon negative dst register

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= ae03b6b1c880a03d4771257336dc3bca156dd51b, < 4d542ddb88fb2f39bf7f14caa2902f3e8d06f6ba; >= f92a819b4cbef8c9527d9797110544b2055a4b96, < 0e2dfdc74a7f4036127356d42ea59388f153f42c; >= 979d63d50c0c0f7bc537bf821e056cc9fe5abd38, < 53e0db429b37a32b8fc706d0d90eb4583ad13848; >= 979d63d50c0c0f7bc537bf821e056cc9fe5abd38, < 2cfa537674cd1051a3b8111536d77d0558f33d5d; >= 979d63d50c0c0f7bc537bf821e056cc9fe5abd38, < 6eba92a4d4be8feb4dc33976abac544fa99d6ecc; >= 979d63d50c0c0f7bc537bf821e056cc9fe5abd38, < 7cf64d8679ca1cb20cf57d6a88bfee79a0922a66; >= 979d63d50c0c0f7bc537bf821e056cc9fe5abd38, < b9b34ddbe2076ade359cd5ce7537d5ed019e9807; 078da99d449f64ca04d459cdbdcce513b64173cd; >= 4.14.113, < 4.14.233; >= 4.19.19, < 4.19.190; …
  • Anyone running Linux 5.0

Vulnerability facts

Affected
Linux >= ae03b6b1c880a03d4771257336dc3bca156dd51b, < 4d542ddb88fb2f39bf7f14caa2902f3e8d06f6ba; >= f92a819b4cbef8c9527d9797110544b2055a4b96, < 0e2dfdc74a7f4036127356d42ea59388f153f42c; >= 979d63d50c0c0f7bc537bf821e056cc9fe5abd38, < 53e0db429b37a32b8fc706d0d90eb4583ad13848; >= 979d63d50c0c0f7bc537bf821e056cc9fe5abd38, < 2cfa537674cd1051a3b8111536d77d0558f33d5d; >= 979d63d50c0c0f7bc537bf821e056cc9fe5abd38, < 6eba92a4d4be8feb4dc33976abac544fa99d6ecc; >= 979d63d50c0c0f7bc537bf821e056cc9fe5abd38, < 7cf64d8679ca1cb20cf57d6a88bfee79a0922a66; >= 979d63d50c0c0f7bc537bf821e056cc9fe5abd38, < b9b34ddbe2076ade359cd5ce7537d5ed019e9807; 078da99d449f64ca04d459cdbdcce513b64173cd; >= 4.14.113, < 4.14.233; >= 4.19.19, < 4.19.190; …; Linux 5.0
Fixed in
Linux 4d542ddb88fb2f39bf7f14caa2902f3e8d06f6ba, Linux 0e2dfdc74a7f4036127356d42ea59388f153f42c, Linux 53e0db429b37a32b8fc706d0d90eb4583ad13848, Linux 2cfa537674cd1051a3b8111536d77d0558f33d5d, Linux 6eba92a4d4be8feb4dc33976abac544fa99d6ecc, Linux 7cf64d8679ca1cb20cf57d6a88bfee79a0922a66, Linux 4.14.233, Linux 4.19.190
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.1 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: None
  • Availability impact: High
EPSS
0.25% chance of exploitation in 30 days (percentile 10, 2026-11-26)
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Fix masking negation logic upon negative dst register The negation logic for the case where the off_reg is sitting in the dst register is not correct given then we cannot just invert the add to a sub or vice versa. As a fix, perform the final bitwise and-op unconditionally into AX from the off_reg, then move the pointer from the src to dst and finally use AX as the source for the original pointer arithmetic operation such that the inversion yields a correct result. The single non-AX mov in between is possible given constant blinding is retaining it as it's not an immediate based operation.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= ae03b6b1c880a03d4771257336dc3bca156dd51b, < 4d542ddb88fb2f39bf7f14caa2902f3e8d06f6ba; >= f92a819b4cbef8c9527d9797110544b2055a4b96, < 0e2dfdc74a7f4036127356d42ea59388f153f42c; >= 979d63d50c0c0f7bc537bf821e056cc9fe5abd38, < 53e0db429b37a32b8fc706d0d90eb4583ad13848; >= 979d63d50c0c0f7bc537bf821e056cc9fe5abd38, < 2cfa537674cd1051a3b8111536d77d0558f33d5d; >= 979d63d50c0c0f7bc537bf821e056cc9fe5abd38, < 6eba92a4d4be8feb4dc33976abac544fa99d6ecc; >= 979d63d50c0c0f7bc537bf821e056cc9fe5abd38, < 7cf64d8679ca1cb20cf57d6a88bfee79a0922a66; >= 979d63d50c0c0f7bc537bf821e056cc9fe5abd38, < b9b34ddbe2076ade359cd5ce7537d5ed019e9807; 078da99d449f64ca04d459cdbdcce513b64173cd; >= 4.14.113, < 4.14.233; >= 4.19.19, < 4.19.190; …—cvelist
Linux5.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2021-46974. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-46974.md
Affected: Linux >= ae03b6b1c880a03d4771257336dc3bca156dd51b, < 4d542ddb88fb2f39bf7f14caa2902f3e8d06f6ba; >= f92a819b4cbef8c9527d9797110544b2055a4b96, < 0e2dfdc74a7f4036127356d42ea59388f153f42c; >= 979d63d50c0c0f7bc537bf821e056cc9fe5abd38, < 53e0db429b37a32b8fc706d0d90eb4583ad13848; >= 979d63d50c0c0f7bc537bf8…
Fixed in: Linux 4d542ddb88fb2f39bf7f14caa2902f3e8d06f6ba, Linux 0e2dfdc74a7f4036127356d42ea59388f153f42c, Linux 53e0db429b37a32b8fc706d0d90eb4583ad13848, Linux 2cfa537674cd1051a3b8111536d77d0558f33d5d, Linux 6eba92a4d4be8feb4dc33976abac544fa99d6ecc, Linux 7cf64d8679ca1cb20cf57d6a88bfee79a0922a66, Linux 4.14.…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2021-46974 being exploited?

There is no confirmed exploitation: CVE-2021-46974 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2021-46974?

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2021-46974?

Linux >= ae03b6b1c880a03d4771257336dc3bca156dd51b, < 4d542ddb88fb2f39bf7f14caa2902f3e8d06f6ba; >= f92a819b4cbef8c9527d9797110544b2055a4b96, < 0e2dfdc74a7f4036127356d42ea59388f153f42c; >= 979d63d50c0c0f7bc537bf821e056cc9fe5abd38, < 53e0db429b37a32b8fc706d0d90eb4583ad13848; >= 979d63d50c0c0f7bc537bf821e056cc9fe5abd38, < 2cfa537674cd1051a3b8111536d77d0558f33d5d; >= 979d63d50c0c0f7bc537bf821e056cc9fe5abd38, < 6eba92a4d4be8feb4dc33976abac544fa99d6ecc; >= 979d63d50c0c0f7bc537bf821e056cc9fe5abd38, < 7cf64d8679ca1cb20cf57d6a88bfee79a0922a66; >= 979d63d50c0c0f7bc537bf821e056cc9fe5abd38, < b9b34ddbe2076ade359cd5ce7537d5ed019e9807; 078da99d449f64ca04d459cdbdcce513b64173cd; >= 4.14.113, < 4.14.233; >= 4.19.19, < 4.19.190; …; Linux 5.0.

Is there a fix for CVE-2021-46974?

Yes. Fixed in Linux 4d542ddb88fb2f39bf7f14caa2902f3e8d06f6ba, Linux 0e2dfdc74a7f4036127356d42ea59388f153f42c, Linux 53e0db429b37a32b8fc706d0d90eb4583ad13848, Linux 2cfa537674cd1051a3b8111536d77d0558f33d5d, Linux 6eba92a4d4be8feb4dc33976abac544fa99d6ecc, Linux 7cf64d8679ca1cb20cf57d6a88bfee79a0922a66, Linux 4.14.233, Linux 4.19.190. No fix listed yet: follow the vendor advisory.

How do I check if I'm affected by CVE-2021-46974?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors