Shellfeed logo Shellfeed

CVE-2026-98631 · UNKNOWN

Summary: xsk: Use a 32-bit compare in xsk_map_gen_lookup

EPSS: 0.2% probability of exploitation in the next 30 days (percentile 11.3).

Details

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 packages

  • GIT git.kernel.org/pub/scm/linux/kernel/git/stable/linux [e65650f291ee72fc578d6346080fc4699204ef2c – c6d5c582d55a8f229d75e98d62eaa065b0deb18d]
  • Linux Kernel [5.5.0 – 5.10.271] [5.11.0 – 5.15.222] [5.16.0 – 6.1.189] [6.2.0 – 6.6.158] [6.7.0 – 6.12.112] [6.13.0 – 6.18.55] [6.19.0 – 7.2.9]

References