Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-98631

xsk: Use a 32-bit compare in xsk_map_gen_lookup

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • e65650f291ee72fc578d6346080fc4699204ef2c to < c6d5c582d55a8f229d75e98d62eaa065b0deb18daffected
  • e65650f291ee72fc578d6346080fc4699204ef2c to < 227ec890559e922e235eb543646e3bf0bd8269b0affected
  • e65650f291ee72fc578d6346080fc4699204ef2c to < 11d9be35c1f4233798e99be98bc474f83a254c6caffected
  • e65650f291ee72fc578d6346080fc4699204ef2c to < 123f90f394ca404ab8796a7c8072ff7fa5b65a9caffected
  • e65650f291ee72fc578d6346080fc4699204ef2c to < 36461e58f88a1b723f86693f437ac12e60ff4363affected
  • e65650f291ee72fc578d6346080fc4699204ef2c to < b5c0cff0c5331582ab01c4c423731453a8381accaffected
  • e65650f291ee72fc578d6346080fc4699204ef2c to < 3c1e0a4bc156b8d5c5772dbc76b9ea74dce5ca24affected
  • e65650f291ee72fc578d6346080fc4699204ef2c to < 70504de0bb627848667207bec7ccfd647deb8814affected

Linux Linux

Default version status: affected

  • 5.5affected
  • 0 to < 5.5unaffected
  • 5.10.271 to ≤ 5.10.*unaffected
  • 5.15.222 to ≤ 5.15.*unaffected
  • 6.1.189 to ≤ 6.1.*unaffected
  • 6.6.158 to ≤ 6.6.*unaffected
  • 6.12.112 to ≤ 6.12.*unaffected
  • 6.18.55 to ≤ 6.18.*unaffected
  • 7.2.9 to ≤ 7.2.*unaffected
  • 7.3 to ≤ *unaffected

References