# CVE-2026-98631: xsk: Use a 32-bit compare in xsk_map_gen_lookup

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-10-18T15:19:53.529Z
- Modified: 2026-10-19T10:19:27.347Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from e65650f291ee72fc578d6346080fc4699204ef2c before c6d5c582d55a8f229d75e98d62eaa065b0deb18d; from e65650f291ee72fc578d6346080fc4699204ef2c before 227ec890559e922e235eb543646e3bf0bd8269b0; from e65650f291ee72fc578d6346080fc4699204ef2c before 11d9be35c1f4233798e99be98bc474f83a254c6c; from e65650f291ee72fc578d6346080fc4699204ef2c before 123f90f394ca404ab8796a7c8072ff7fa5b65a9c; from e65650f291ee72fc578d6346080fc4699204ef2c before 36461e58f88a1b723f86693f437ac12e60ff4363; from e65650f291ee72fc578d6346080fc4699204ef2c before b5c0cff0c5331582ab01c4c423731453a8381acc; from e65650f291ee72fc578d6346080fc4699204ef2c before 3c1e0a4bc156b8d5c5772dbc76b9ea74dce5ca24; from e65650f291ee72fc578d6346080fc4699204ef2c before 70504de0bb627848667207bec7ccfd647deb8814; 5.5 (not affected: before 5.5; from 5.10.271 up to 5.10.*; from 5.15.222 up to 5.15.*; from 6.1.189 up to 6.1.*; from 6.6.158 up to 6.6.*; from 6.12.112 up to 6.12.*; from 6.18.55 up to 6.18.*; from 7.2.9 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/c6d5c582d55a8f229d75e98d62eaa065b0deb18d>
- <https://git.kernel.org/stable/c/227ec890559e922e235eb543646e3bf0bd8269b0>
- <https://git.kernel.org/stable/c/11d9be35c1f4233798e99be98bc474f83a254c6c>
- <https://git.kernel.org/stable/c/123f90f394ca404ab8796a7c8072ff7fa5b65a9c>
- <https://git.kernel.org/stable/c/36461e58f88a1b723f86693f437ac12e60ff4363>
- <https://git.kernel.org/stable/c/b5c0cff0c5331582ab01c4c423731453a8381acc>
- <https://git.kernel.org/stable/c/3c1e0a4bc156b8d5c5772dbc76b9ea74dce5ca24>
- <https://git.kernel.org/stable/c/70504de0bb627848667207bec7ccfd647deb8814>

## Sources

- CVE List: [CVE-2026-98631](https://www.cve.org/CVERecord?id=CVE-2026-98631), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-98631](https://nvd.nist.gov/vuln/detail/CVE-2026-98631), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-98631 · Whole record: https://cve.day/CVE-2026-98631.json · Rebuilt by cve.day 2026-11-25T22:59:45.251Z
