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: 4.4 Medium
EPSS: < 1% Very Low
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-125).

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. The CVSS score of 4.4 indicates moderate severity, underscoring that while the vulnerability is not critical, timely remediation is advised. The EPSS score of <1% indicates a very low but nonzero probability of exploitation, and the vulnerability is not listed in CISA's KEV catalog. Despite the low probability, 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 23, 2026 at 06:42 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 23, 2026 at 06:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4850-1 linux-6.12 security update
Ubuntu USN Ubuntu USN USN-8961-1 Linux kernel vulnerabilities
History

Fri, 23 Oct 2026 00:45:00 +0000

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

Thu, 22 Oct 2026 12:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-125
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


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-19T09:22:59.147Z

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-19T10:19:27.347

Link: CVE-2026-98631

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-18T00:00:00Z

Links: CVE-2026-98631 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T06:45:07Z

Weaknesses