# CVE-2026-139179: net: xps: bound the cleanup loop by the old map's num_tc

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-11-30T13:32:18.668Z
- Modified: 2026-11-30T14:18:37.020Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 255c04a87f4381849fce9ed81e5efabf78a71a30 before 83c934f19095aefe5fe194c3061a2c5209052da8; from 255c04a87f4381849fce9ed81e5efabf78a71a30 before 709cd45ffaccd908b8fe55e187d27385dee18cbb; from 255c04a87f4381849fce9ed81e5efabf78a71a30 before 8278c52cceeaf5a2aee1c136f52f4f952e07477e; from 255c04a87f4381849fce9ed81e5efabf78a71a30 before a41ea4632f8e471880a938506e2532e648c72cb2; from 255c04a87f4381849fce9ed81e5efabf78a71a30 before 67efd20563fcf0284cee7d4b3cd16bee90f59c7d; from 255c04a87f4381849fce9ed81e5efabf78a71a30 before 540c49f4cf0c62bbd4c56ceed0873b8ed7251400; from 255c04a87f4381849fce9ed81e5efabf78a71a30 before 6d5a2cb0b7d6caf170d37ae7ac74738d592d2a05; 5.13 (not affected: before 5.13; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/83c934f19095aefe5fe194c3061a2c5209052da8>
- <https://git.kernel.org/stable/c/709cd45ffaccd908b8fe55e187d27385dee18cbb>
- <https://git.kernel.org/stable/c/8278c52cceeaf5a2aee1c136f52f4f952e07477e>
- <https://git.kernel.org/stable/c/a41ea4632f8e471880a938506e2532e648c72cb2>
- <https://git.kernel.org/stable/c/67efd20563fcf0284cee7d4b3cd16bee90f59c7d>
- <https://git.kernel.org/stable/c/540c49f4cf0c62bbd4c56ceed0873b8ed7251400>
- <https://git.kernel.org/stable/c/6d5a2cb0b7d6caf170d37ae7ac74738d592d2a05>

## Sources

- CVE List: [CVE-2026-139179](https://www.cve.org/CVERecord?id=CVE-2026-139179), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139179](https://nvd.nist.gov/vuln/detail/CVE-2026-139179), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139179 · Whole record: https://cve.day/CVE-2026-139179.json · Rebuilt by cve.day 2026-11-30T14:32:49.464Z
