CVE-2026-98631 (GCVE-0-2026-98631)
Vulnerability from cvelistv5
Published
2026-10-18 15:19
Modified
2026-10-19 09:22
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: xsk: Use a 32-bit compare in xsk_map_gen_lookup xsk_map_gen_lookup() loads a u32 key and compares it with max_entries using BPF_JMP_IMM. BPF immediates are sign-extended to 64 bits, so a max_entries value of 0x80000000 or higher becomes a threshold larger than every zero-extended 32-bit key. An out-of-range index then skips the bounds check and the generated lookup reads past xsk_map[]. Compare with BPF_JMP32_IMM so the check stays in 32-bit unsigned range.
Impacted products
Vendor Product Version
Linux Linux Version: e65650f291ee72fc578d6346080fc4699204ef2c
Version: e65650f291ee72fc578d6346080fc4699204ef2c
Version: e65650f291ee72fc578d6346080fc4699204ef2c
Version: e65650f291ee72fc578d6346080fc4699204ef2c
Version: e65650f291ee72fc578d6346080fc4699204ef2c
Version: e65650f291ee72fc578d6346080fc4699204ef2c
Version: e65650f291ee72fc578d6346080fc4699204ef2c
Version: e65650f291ee72fc578d6346080fc4699204ef2c
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/xdp/xskmap.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "c6d5c582d55a8f229d75e98d62eaa065b0deb18d",
              "status": "affected",
              "version": "e65650f291ee72fc578d6346080fc4699204ef2c",
              "versionType": "git"
            },
            {
              "lessThan": "227ec890559e922e235eb543646e3bf0bd8269b0",
              "status": "affected",
              "version": "e65650f291ee72fc578d6346080fc4699204ef2c",
              "versionType": "git"
            },
            {
              "lessThan": "11d9be35c1f4233798e99be98bc474f83a254c6c",
              "status": "affected",
              "version": "e65650f291ee72fc578d6346080fc4699204ef2c",
              "versionType": "git"
            },
            {
              "lessThan": "123f90f394ca404ab8796a7c8072ff7fa5b65a9c",
              "status": "affected",
              "version": "e65650f291ee72fc578d6346080fc4699204ef2c",
              "versionType": "git"
            },
            {
              "lessThan": "36461e58f88a1b723f86693f437ac12e60ff4363",
              "status": "affected",
              "version": "e65650f291ee72fc578d6346080fc4699204ef2c",
              "versionType": "git"
            },
            {
              "lessThan": "b5c0cff0c5331582ab01c4c423731453a8381acc",
              "status": "affected",
              "version": "e65650f291ee72fc578d6346080fc4699204ef2c",
              "versionType": "git"
            },
            {
              "lessThan": "3c1e0a4bc156b8d5c5772dbc76b9ea74dce5ca24",
              "status": "affected",
              "version": "e65650f291ee72fc578d6346080fc4699204ef2c",
              "versionType": "git"
            },
            {
              "lessThan": "70504de0bb627848667207bec7ccfd647deb8814",
              "status": "affected",
              "version": "e65650f291ee72fc578d6346080fc4699204ef2c",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/xdp/xskmap.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.5"
            },
            {
              "lessThan": "5.5",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.271",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.222",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.189",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.158",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.112",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.55",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.2.*",
              "status": "unaffected",
              "version": "7.2.9",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.271",
                  "versionStartIncluding": "5.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.222",
                  "versionStartIncluding": "5.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.189",
                  "versionStartIncluding": "5.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.158",
                  "versionStartIncluding": "5.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.112",
                  "versionStartIncluding": "5.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.55",
                  "versionStartIncluding": "5.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2.9",
                  "versionStartIncluding": "5.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3",
                  "versionStartIncluding": "5.5",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nxsk: Use a 32-bit compare in xsk_map_gen_lookup\n\nxsk_map_gen_lookup() loads a u32 key and compares it with max_entries\nusing BPF_JMP_IMM. BPF immediates are sign-extended to 64 bits, so a\nmax_entries value of 0x80000000 or higher becomes a threshold larger\nthan every zero-extended 32-bit key. An out-of-range index then skips\nthe bounds check and the generated lookup reads past xsk_map[].\n\nCompare with BPF_JMP32_IMM so the check stays in 32-bit unsigned range."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-10-19T09:22:59.147Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/c6d5c582d55a8f229d75e98d62eaa065b0deb18d"
        },
        {
          "url": "https://git.kernel.org/stable/c/227ec890559e922e235eb543646e3bf0bd8269b0"
        },
        {
          "url": "https://git.kernel.org/stable/c/11d9be35c1f4233798e99be98bc474f83a254c6c"
        },
        {
          "url": "https://git.kernel.org/stable/c/123f90f394ca404ab8796a7c8072ff7fa5b65a9c"
        },
        {
          "url": "https://git.kernel.org/stable/c/36461e58f88a1b723f86693f437ac12e60ff4363"
        },
        {
          "url": "https://git.kernel.org/stable/c/b5c0cff0c5331582ab01c4c423731453a8381acc"
        },
        {
          "url": "https://git.kernel.org/stable/c/3c1e0a4bc156b8d5c5772dbc76b9ea74dce5ca24"
        },
        {
          "url": "https://git.kernel.org/stable/c/70504de0bb627848667207bec7ccfd647deb8814"
        }
      ],
      "title": "xsk: Use a 32-bit compare in xsk_map_gen_lookup",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-98631",
    "datePublished": "2026-10-18T15:19:53.529Z",
    "dateReserved": "2026-09-25T10:25:14.361Z",
    "dateUpdated": "2026-10-19T09:22:59.147Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…