CVE-2026-139179

net: xps: bound the cleanup loop by the old map's num_tc

Published Nov 30, 2026 CVSS 3.1 · 4.4 Medium EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

net: xps: bound the cleanup loop by the old map's num_tc

__netif_set_xps_queue() walks the OLD dev_maps to free its entries. The
per-row trip count uses the NEW num_tc while the row stride uses the OLD
dev_maps->num_tc, so when dev->num_tc was raised without rebuilding the
XPS map the last row indexes attr_map[] past the allocation:

BUG: KASAN: slab-out-of-bounds in __netif_set_xps_queue+0x1458/0x1ee8
Read of size 8 at addr ffff000014f69458 by task insmod/112

The loop frees entries in dev_maps, so both the trip count and the stride
must come from dev_maps->num_tc. The map is sized
XPS_CPU_DEV_MAPS_SIZE(old num_tc)/XPS_RXQ_DEV_MAPS_SIZE(old num_tc, ...),
so iterating the new (larger) num_tc reads past the end.

Analysis

AI-generated

Technical impact

The Linux kernel suffered an out‑of‑bounds read in the __netif_set_xps_queue function. The code walks the old device maps to free entries, but uses the new number of traffic classes (num_tc) for the loop count while the stride still references the old map size. When dev->num_tc is increased without rebuilding the XPS map, the loop iterates beyond the allocated array, triggering a KASAN fault. Based on the description, it is inferred that an attacker could potentially trigger a kernel crash and, depending on the surrounding context, could read stale kernel memory for information disclosure or cause a denial of service.

Affected Systems

All versions of the Linux kernel that employ the XPS map implementation are vulnerable, as the issue is in the core network XPS handling code. No specific kernel releases or sub‑versions are listed in the advisory, so any deployment of the kernel that has not been patched by the included commit is impacted.

Risk and Exploitability

The CVSS score is not provided and the EPSS score is marked as not available, so the exploitation probability remains uncertain. The vulnerability is not listed in the CISA KEV catalog, indicating no confirmed public exploits. However, based on the description, it is inferred that the high memory access error could be leveraged by a local attacker with the ability to manipulate network device parameters, or by a remote attacker if the kernel is exposed via networking services. The worst‑case outcome is a kernel crash leading to denial of service; an information‑disclosure vector could exist but requires further evidence.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the commit that fixes the out‑of‑bounds read in __netif_set_xps_queue.
  • If an immediate kernel upgrade is not feasible, disable or limit the use of XPS on affected network devices to prevent the code path that triggers the bug.
  • Apply the vendor’s latest security patch or backport the fix into the running kernel, then reboot to ensure the patch is active.

Generated by OpenCVE AI on December 1, 2026 at 10:01 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
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

Type Values Removed Values Added
Weaknesses CWE-788
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net: xps: bound the cleanup loop by the old map's num_tc __netif_set_xps_queue() walks the OLD dev_maps to free its entries. The per-row trip count uses the NEW num_tc while the row stride uses the OLD dev_maps->num_tc, so when dev->num_tc was raised without rebuilding the XPS map the last row indexes attr_map[] past the allocation: BUG: KASAN: slab-out-of-bounds in __netif_set_xps_queue+0x1458/0x1ee8 Read of size 8 at addr ffff000014f69458 by task insmod/112 The loop frees entries in dev_maps, so both the trip count and the stride must come from dev_maps->num_tc. The map is sized XPS_CPU_DEV_MAPS_SIZE(old num_tc)/XPS_RXQ_DEV_MAPS_SIZE(old num_tc, ...), so iterating the new (larger) num_tc reads past the end.
Title net: xps: bound the cleanup loop by the old map's num_tc
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-125

    Out-of-bounds Read

  • CWE-788

    Access of Memory Location After End of Buffer

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:32 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:32 PM