CVE-2026-139179: net: xps: bound the cleanup loop by the old map's num_tc
In the Linux kernel, the following vulnerability has been resolved:
net: xps: bound the cleanup loop by the old map's numtc
netifsetxpsqueue() walks the OLD devmaps to free its entries. The per-row trip count uses the NEW numtc while the row stride uses the OLD devmaps->numtc, so when dev->numtc was raised without rebuilding the XPS map the last row indexes attrmap[] past the allocation:
BUG: KASAN: slab-out-of-bounds in netifsetxpsqueue+0x1458/0x1ee8 Read of size 8 at addr ffff000014f69458 by task insmod/112
The loop frees entries in devmaps, so both the trip count and the stride must come from devmaps->numtc. The map is sized XPSCPUDEVMAPSSIZE(old numtc)/XPSRXQDEVMAPSSIZE(old numtc, ...), so iterating the new (larger) numtc reads past the end.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1
Event History
Frequently Asked Questions
What configuration state triggers the out-of-bounds access?
The issue occurs when dev->num_tc is increased without rebuilding the existing XPS map. During XPS queue updates, cleanup uses the newer, larger traffic-class count to iterate a map allocated using the older count.
What operation reaches the vulnerable code path?
The vulnerable path is __netif_set_xps_queue(), which walks existing XPS device maps to free their entries. The reported failure occurs during that cleanup when the old map's layout no longer matches dev->num_tc.
How can I determine whether a system has encountered this issue?
Affected systems may report a KASAN slab-out-of-bounds read in __netif_set_xps_queue(). The diagnostic can occur while processing the old XPS map after dev->num_tc has been raised without rebuilding that map.