AZL-117229: CVE-2026-139565 affecting package kernel 6.6.161.1-1

Published Nov 30, 2026
·
Updated

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. icevsiallocstatarrays() gave up as soon as a container existed:

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

while icevsiallocringstats() walks the arrays with iceforeachalloctxq() / iceforeachallocrxq(), that is, up to vsi->alloctxq / vsi->allocrxq. Whenever the arrays are shorter than the count icevsisetnumqs() 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.

icedevlinkreinitdown() is one of the latter. It calls icevsidecfg() directly, which does not free pf->vsistats[], and nothing on the way down releases the main VSI's entry either: icedeallocvsis() runs only from iceinit()/icedeinit(), and the single entry that iceunload() does drop is the control VSI's, via icedeinitfdir(). The main VSI's arrays therefore survive the reload, while icedevlinkreinitup() runs icevsicfg() and recomputes the count from netifgetnumdefaultrssqueues(), which follows cpuonlinemask. 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 driverreinit

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 txringstats[] and picks up whatever follows it in kmalloc-32. Here that was a string, 0x74756f5f6c697475 spelling "utilout" in memory order. It is stored into ring->ringstats and faults on the first dereference, in icesetuptxring(), call trace:

RIP: 0010:icesetuptxring+0x8d/0xe0 [ice] icevsisetuptxrings+0x2a/0x80 [ice] icevsiopen+0x28/0x170 [ice] iceopeninternal+0xc9/0x160 [ice] devopen+0x138/0x2b0 devchangeflags+0x1d5/0x250 netifchangeflags+0x21/0x60 dosetlink.constprop.0+0x336/0xcf0 rtnlnewlink+0x4a4/0x9b0

Even where the rebuild path does run, it sizes the arrays before icevsidecfg() returns the queues to the PF pool, and for an ICEVSIPF VSI with no explicit request it derives the count from that shared pool. Nothing serializes it against the recount in icevsisetnumqs(), so a concurrent release, say "echo 0 > sriovnumvfs", leaves the final count larger than the arrays that were already installed.

icevsiallocstatarrays() runs from icevsicfgdef(), right after icevsiallocdef() called icevsisetnumqs(), 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 icevsiinstallstatarrays(), 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 VIRTCHNLOPREQUESTQUEUES 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 icevsiallocringstats+0x385/0x4a0 [ice] Workqueue: ice iceservicetask [ice] Call Trace: kasanreport+0xd7/0x120 icevsiallocringstats+0x385/0x4a0 [ice] icevsicfgdef+0 ---truncated---

Affected Software

1 affected component
azure-linux/kernel<=6.6.161.1-1

Event History

Nov 30, 2026
Advisory Published
via OSV·02:19 PM
Data Sourced
via OSV·02:19 PM
DescriptionAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

Which systems are most likely to be exposed to this issue?

Systems using the Linux kernel ice network driver are the relevant population. The issue involves the driver's VSI ring statistics arrays and queue allocation counts.

2

What conditions can trigger the out-of-bounds access?

The access can occur when the ring statistics arrays are shorter than the final allocated transmit or receive queue counts. The description identifies reload-related handling, including ice_devlink_reinit_down(), as a path where surviving main-VSI arrays may not be correctly resized.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203