# CVE-2026-139565: ice: size ring stats arrays from the final queue count

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:35:56.062Z
- **Modified:** 2026-11-30T14:19:37.317Z

## Who should check

- Anyone running Linux \>= 288ecf491b1654845ae99c79b7fefad2d3ea47bd, \< 3e010b031f15c6fd56eeea6d0800f02038e29fbd; \>= 288ecf491b1654845ae99c79b7fefad2d3ea47bd, \< f1c3b87896e656c1940a1dc3e2f286e000c62da8
- Anyone running Linux 6.2

## Description

In the Linux kernel, the following vulnerability has been resolved:

ice: size ring stats arrays from the final queue count

The ring stats arrays were sized in one place and indexed in another,
with nothing reconciling the two. ice\_vsi\_alloc\_stat\_arrays() gave up as
soon as a container existed:

	if (pf-\>vsi\_stats\[vsi-\>idx\])
	/\* realloc will happen in rebuild path \*/
		return 0;

while ice\_vsi\_alloc\_ring\_stats() walks the arrays with
ice\_for\_each\_alloc\_txq() / ice\_for\_each\_alloc\_rxq(), that is, up to
vsi-\>alloc\_txq / vsi-\>alloc\_rxq. Whenever the arrays are shorter than
the count ice\_vsi\_set\_num\_qs() ends up computing, that loop reads and
stores past the end of the kmalloc'ed pointer arrays.

Deferring to "the rebuild path" does not hold. It cannot get the size
right, and some paths never call it at all.

ice\_devlink\_reinit\_down() is one of the latter. It calls ice\_vsi\_decfg()
directly, which does not free pf-\>vsi\_stats\[\], and nothing on the way
down releases the main VSI's entry either: ice\_dealloc\_vsis() runs only
from ice\_init()/ice\_deinit(), and the single entry that ice\_unload()
does drop is the control VSI's, via ice\_deinit\_fdir(). The main VSI's
arrays therefore survive the reload, while ice\_devlink\_reinit\_up() runs
ice\_vsi\_cfg() and recomputes the count from
netif\_get\_num\_default\_rss\_queues(), which follows cpu\_online\_mask.
Sizing the arrays with most CPUs offline and then onlining them is
enough, no VF involved:

  for c in /sys/devices/system/cpu/cpu\[0-9\]\*/online; do echo 0 \> $c; done
  echo 0000:18:00.0 \> /sys/bus/pci/drivers/ice/unbind
  echo 0000:18:00.0 \> /sys/bus/pci/drivers/ice/bind
  for c in /sys/devices/system/cpu/cpu\[0-9\]\*/online; do echo 1 \> $c; done
  devlink dev reload pci/0000:18:00.0 action driver\_reinit

The unbind/bind is what makes the arrays actually be allocated at the
small size; a reload alone only reuses them.

The read then runs off the end of tx\_ring\_stats\[\] and picks up whatever
follows it in kmalloc-32. Here that was a string, 0x74756f5f6c697475
spelling "util\_out" in memory order. It is stored into ring-\>ring\_stats
and faults on the first dereference, in ice\_setup\_tx\_ring(), call trace:

 RIP: 0010:ice\_setup\_tx\_ring+0x8d/0xe0 \[ice\]
  ice\_vsi\_setup\_tx\_rings+0x2a/0x80 \[ice\]
  ice\_vsi\_open+0x28/0x170 \[ice\]
  ice\_open\_internal+0xc9/0x160 \[ice\]
  \_\_dev\_open+0x138/0x2b0
  \_\_dev\_change\_flags+0x1d5/0x250
  netif\_change\_flags+0x21/0x60
  do\_setlink.constprop.0+0x336/0xcf0
  rtnl\_newlink+0x4a4/0x9b0

Even where the rebuild path does run, it sizes the arrays before
ice\_vsi\_decfg() returns the queues to the PF pool, and for an
ICE\_VSI\_PF VSI with no explicit request it derives the count from that
shared pool. Nothing serializes it against the recount in
ice\_vsi\_set\_num\_qs(), so a concurrent release, say
"echo 0 \> sriov\_numvfs", leaves the final count larger than the arrays
that were already installed.

ice\_vsi\_alloc\_stat\_arrays() runs from ice\_vsi\_cfg\_def(), right after
ice\_vsi\_alloc\_def() called ice\_vsi\_set\_num\_qs(), so it is the first
place where the queue count is final. Make it the only authority: keep
the existing arrays when they are already long enough, and otherwise
grow them with ice\_vsi\_install\_stat\_arrays(), which carries the
surviving entries over. The check only forces a grow: while both arrays
are long enough they are kept, an oversized one being merely wasteful.
Once either is too short the whole container is replaced, and then the
other one follows the final count too, shrinking if that is what it
takes.

Michal Schmidt hit the same corruption through the VF path, where a
guest raises its queue count with VIRTCHNL\_OP\_REQUEST\_QUEUES and the
following VF reset reconfigures the VSI with the larger count while the
old, shorter arrays are still installed:

 BUG: KASAN: slab-out-of-bounds in ice\_vsi\_alloc\_ring\_stats+0x385/0x4a0 \[ice\]
 Workqueue: ice ice\_service\_task \[ice\]
 Call Trace:
  kasan\_report+0xd7/0x120
  ice\_vsi\_alloc\_ring\_stats+0x385/0x4a0 \[ice\]
  ice\_vsi\_cfg\_def+0
---truncated---

## Affected and fixed versions

- Linux: \>= 288ecf491b1654845ae99c79b7fefad2d3ea47bd, \< 3e010b031f15c6fd56eeea6d0800f02038e29fbd; \>= 288ecf491b1654845ae99c79b7fefad2d3ea47bd, \< f1c3b87896e656c1940a1dc3e2f286e000c62da8 (cvelist)
- Linux: 6.2 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-139565. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139565.md
Affected: Linux >= 288ecf491b1654845ae99c79b7fefad2d3ea47bd, < 3e010b031f15c6fd56eeea6d0800f02038e29fbd; >= 288ecf491b1654845ae99c79b7fefad2d3ea47bd, < f1c3b87896e656c1940a1dc3e2f286e000c62da8; Linux 6.2
Fixed in: Linux 3e010b031f15c6fd56eeea6d0800f02038e29fbd

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-139565 being exploited?

There is no confirmed exploitation: CVE-2026-139565 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-139565?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-139565?

Linux \>= 288ecf491b1654845ae99c79b7fefad2d3ea47bd, \< 3e010b031f15c6fd56eeea6d0800f02038e29fbd; \>= 288ecf491b1654845ae99c79b7fefad2d3ea47bd, \< f1c3b87896e656c1940a1dc3e2f286e000c62da8; Linux 6.2.

### Is there a fix for CVE-2026-139565?

Yes. Fixed in Linux 3e010b031f15c6fd56eeea6d0800f02038e29fbd. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-139565?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/3e010b031f15c6fd56eeea6d0800f02038e29fbd>
- other: <https://git.kernel.org/stable/c/f1c3b87896e656c1940a1dc3e2f286e000c62da8>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-139565>

HTML: <https://flawdb.com/CVE-2026-139565> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-139565>
