{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2021-46974",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2021-46974",
    "idYear": 2021,
    "status": "PUBLISHED",
    "publishedAt": "2024-02-27T18:47:08.487Z",
    "updatedAt": "2026-08-05T08:45:20.335Z",
    "importedAt": "2026-10-24T01:56:36.661Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "bpf: Fix masking negation logic upon negative dst register",
      "summary": "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": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "ae03b6b1c880a03d4771257336dc3bca156dd51b",
              "status": "affected",
              "versionType": "git",
              "lessThan": "4d542ddb88fb2f39bf7f14caa2902f3e8d06f6ba"
            },
            {
              "version": "f92a819b4cbef8c9527d9797110544b2055a4b96",
              "status": "affected",
              "versionType": "git",
              "lessThan": "0e2dfdc74a7f4036127356d42ea59388f153f42c"
            },
            {
              "version": "979d63d50c0c0f7bc537bf821e056cc9fe5abd38",
              "status": "affected",
              "versionType": "git",
              "lessThan": "53e0db429b37a32b8fc706d0d90eb4583ad13848"
            },
            {
              "version": "979d63d50c0c0f7bc537bf821e056cc9fe5abd38",
              "status": "affected",
              "versionType": "git",
              "lessThan": "2cfa537674cd1051a3b8111536d77d0558f33d5d"
            },
            {
              "version": "979d63d50c0c0f7bc537bf821e056cc9fe5abd38",
              "status": "affected",
              "versionType": "git",
              "lessThan": "6eba92a4d4be8feb4dc33976abac544fa99d6ecc"
            },
            {
              "version": "979d63d50c0c0f7bc537bf821e056cc9fe5abd38",
              "status": "affected",
              "versionType": "git",
              "lessThan": "7cf64d8679ca1cb20cf57d6a88bfee79a0922a66"
            },
            {
              "version": "979d63d50c0c0f7bc537bf821e056cc9fe5abd38",
              "status": "affected",
              "versionType": "git",
              "lessThan": "b9b34ddbe2076ade359cd5ce7537d5ed019e9807"
            },
            {
              "version": "078da99d449f64ca04d459cdbdcce513b64173cd",
              "status": "affected",
              "versionType": "git"
            },
            {
              "version": "4.14.113",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "4.14.233"
            },
            {
              "version": "4.19.19",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "4.19.190"
            },
            {
              "version": "4.20.6",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "4.21"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "5.0",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "5.0"
            },
            {
              "version": "4.14.233",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.14.*"
            },
            {
              "version": "4.19.190",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.19.*"
            },
            {
              "version": "5.4.117",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.4.*"
            },
            {
              "version": "5.10.35",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.11.19",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.11.*"
            },
            {
              "version": "5.12.2",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.12.*"
            },
            {
              "version": "5.13",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}