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.
Published: 2026-10-18
Score: n/a
EPSS: n/a
KEV: No
Impact: Denial of Service
Action: Patch
AI Analysis

Impact

The Linux kernel helper function xsk_map_gen_lookup performs a comparison between a 32‑bit key and the map’s max_entries field using a BPF_JMP_IMM opcode. Because immediate values are sign‑extended to 64 bits, a max_entries value of 0x80000000 or larger is interpreted as a signed number greater than any unsigned 32‑bit key, causing the bounds check to be bypassed. This results in a lookup that reads past the end of the xsk_map array, potentially corrupting kernel memory or triggering a kernel panic, which effectively causes a denial of service. The weakness is an improper unsigned/signed comparison that can lead to an out‑of‑bounds read (CWE‑190 and CWE‑788).

Affected Systems

All Linux kernel distributions that include the vulnerable implementation of xsk_map_gen_lookup are affected. Any distribution using a kernel version prior to the patch which addresses this sign‑extension bug is vulnerable, regardless of vendor or distribution name. Administrators should verify whether the running kernel contains the specific code path referenced in the advisory.

Risk and Exploitability

Exploitation requires loading a BPF program that creates an XSK map with a max_entries value at or above 0x80000000. Loading BPF programs normally demands kernel‑level privileges such as CAP_BPF, so the attack surface is limited to privileged users or misconfigured systems exposing BPF interfaces. Because no EPSS score is available and the vulnerability is not in the CISA KEV catalog, the current exploitation probability is uncertain, but the potential impact of an out‑of‑bounds read is high, as it can precipitate a kernel panic or data corruption. The lack of publicly documented exploits suggests a lower immediate risk, yet the severity warrants timely remediation.

Generated by OpenCVE AI on October 18, 2026 at 23:54 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that contains the fix where xsk_map_gen_lookup performs a 32‑bit unsigned comparison rather than a sign‑extended compare.
  • If an immediate kernel update is not possible, enforce that any BPF program creating or accessing an XSK map limits the max_entries value to less than 0x80000000 by validating the parameter in the loader or by restricting program creation to trusted users.
  • Monitor kernel logs for out‑of‑bounds read or panic messages and, if necessary, disable or restrict XSK map usage until a patched kernel is available.

Generated by OpenCVE AI on October 18, 2026 at 23:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 19 Oct 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-190
CWE-788

Sun, 18 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
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.
Title xsk: Use a 32-bit compare in xsk_map_gen_lookup
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-18T15:19:53.529Z

Reserved: 2026-09-25T10:25:14.361Z

Link: CVE-2026-98631

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-18T16:17:16.180

Modified: 2026-10-18T16:17:16.180

Link: CVE-2026-98631

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-19T00:00:10Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

  • CWE-788

    Access of Memory Location After End of Buffer