CVE-2026-98631

xsk: Use a 32-bit compare in xsk_map_gen_lookup

State
Published
Severity
Not scored
Published
Oct 18, 2026
Updated
Oct 19, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • e65650f291ee72fc578d6346080fc4699204ef2c to before c6d5c582d55a8f229d75e98d62eaa065b0deb18dAffected
  • e65650f291ee72fc578d6346080fc4699204ef2c to before 227ec890559e922e235eb543646e3bf0bd8269b0Affected
  • e65650f291ee72fc578d6346080fc4699204ef2c to before 11d9be35c1f4233798e99be98bc474f83a254c6cAffected
  • e65650f291ee72fc578d6346080fc4699204ef2c to before 123f90f394ca404ab8796a7c8072ff7fa5b65a9cAffected
  • e65650f291ee72fc578d6346080fc4699204ef2c to before 36461e58f88a1b723f86693f437ac12e60ff4363Affected
  • e65650f291ee72fc578d6346080fc4699204ef2c to before b5c0cff0c5331582ab01c4c423731453a8381accAffected
  • e65650f291ee72fc578d6346080fc4699204ef2c to before 3c1e0a4bc156b8d5c5772dbc76b9ea74dce5ca24Affected
  • e65650f291ee72fc578d6346080fc4699204ef2c to before 70504de0bb627848667207bec7ccfd647deb8814Affected
LinuxLinux
  • 5.5Affected
  • before 5.5Not affected
  • 5.10.271 through 5.10.*Not affected
  • 5.15.222 through 5.15.*Not affected
  • 6.1.189 through 6.1.*Not affected
  • 6.6.158 through 6.6.*Not affected
  • 6.12.112 through 6.12.*Not affected
  • 6.18.55 through 6.18.*Not affected
  • 7.2.9 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.