# bpf: Fix masking negation logic upon negative dst register

CVE record · `CVE-2021-46974`

- **Identifiers:** `CVE-2021-46974`
- **State:** Confirmed
- **Severity:** CVSS 7.1 High
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 27 Feb 2024
- **Updated:** 5 Aug 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 27 Feb 2024, 18:47 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `ae03b6b1c880a03d4771257336dc3bca156dd51b to before 4d542ddb88fb2f39bf7f14caa2902f3e8d06f6ba` (git)
  - affected: `f92a819b4cbef8c9527d9797110544b2055a4b96 to before 0e2dfdc74a7f4036127356d42ea59388f153f42c` (git)
  - affected: `979d63d50c0c0f7bc537bf821e056cc9fe5abd38 to before 53e0db429b37a32b8fc706d0d90eb4583ad13848` (git)
  - affected: `979d63d50c0c0f7bc537bf821e056cc9fe5abd38 to before 2cfa537674cd1051a3b8111536d77d0558f33d5d` (git)
  - affected: `979d63d50c0c0f7bc537bf821e056cc9fe5abd38 to before 6eba92a4d4be8feb4dc33976abac544fa99d6ecc` (git)
  - affected: `979d63d50c0c0f7bc537bf821e056cc9fe5abd38 to before 7cf64d8679ca1cb20cf57d6a88bfee79a0922a66` (git)
  - affected: `979d63d50c0c0f7bc537bf821e056cc9fe5abd38 to before b9b34ddbe2076ade359cd5ce7537d5ed019e9807` (git)
  - affected: `078da99d449f64ca04d459cdbdcce513b64173cd` (git)
  - affected: `4.14.113 to before 4.14.233` (semver)
  - affected: `4.19.19 to before 4.19.190` (semver)
  - affected: `4.20.6 to before 4.21` (semver)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `5.0`
  - unaffected: `before 5.0` (semver)
  - unaffected: `4.14.233 to 4.14.*, inclusive` (semver)
  - unaffected: `4.19.190 to 4.19.*, inclusive` (semver)
  - unaffected: `5.4.117 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.35 to 5.10.*, inclusive` (semver)
  - unaffected: `5.11.19 to 5.11.*, inclusive` (semver)
  - unaffected: `5.12.2 to 5.12.*, inclusive` (semver)
  - unaffected: `5.13 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 7.1 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`, from CNA (Linux)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0025, the 16th percentile, on 22 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 27 Feb 2024. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2021-46974](https://www.cve.org/CVERecord?id=CVE-2021-46974)
- [NVD: CVE-2021-46974](https://nvd.nist.gov/vuln/detail/CVE-2021-46974)

### References from the CNA

- <https://git.kernel.org/stable/c/4d542ddb88fb2f39bf7f14caa2902f3e8d06f6ba>
- <https://git.kernel.org/stable/c/0e2dfdc74a7f4036127356d42ea59388f153f42c>
- <https://git.kernel.org/stable/c/53e0db429b37a32b8fc706d0d90eb4583ad13848>
- <https://git.kernel.org/stable/c/2cfa537674cd1051a3b8111536d77d0558f33d5d>
- <https://git.kernel.org/stable/c/6eba92a4d4be8feb4dc33976abac544fa99d6ecc>
- <https://git.kernel.org/stable/c/7cf64d8679ca1cb20cf57d6a88bfee79a0922a66>
- <https://git.kernel.org/stable/c/b9b34ddbe2076ade359cd5ce7537d5ed019e9807>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2021-46974>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2021-46974/>. Everything for agents: <https://agentprime.io/llms.txt>.
