# CVE-2026-139566: ice: rebuild ring stats arrays instead of reallocating them in place

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

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2f7b37855ac4e12bab04224b67645282bce55550; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 66444f06a9fe96ac49f5c168d06aaebbfa109c9e; \< 7.3.6
- Anyone running Linux all versions

## Description

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

ice: rebuild ring stats arrays instead of reallocating them in place

ice\_vsi\_realloc\_stat\_arrays() resized the ring stats arrays in place
with krealloc\_array(), sizing them from vsi-\>req\_txq/req\_rxq. That is
not what ice\_vsi\_set\_num\_qs() computes later in ice\_vsi\_cfg\_def(), so
after a rebuild the arrays could end up shorter than vsi-\>alloc\_txq /
vsi-\>alloc\_rxq, and ice\_vsi\_alloc\_ring\_stats() then walked past their
end.

The VF case shows the divergence. ice\_sriov\_set\_msix\_vec\_count() writes
vsi-\>req\_txq and then calls ice\_vsi\_rebuild(), so the old resizer sized
from req\_txq, while ice\_vsi\_get\_num\_qs() reads vf-\>num\_req\_qs ?:
vf-\>num\_vf\_qs and ignores req\_txq entirely. Once a guest has raised
vf-\>num\_req\_qs through VIRTCHNL\_OP\_REQUEST\_QUEUES the two disagree and
the arrays come out shorter than the alloc\_txq/alloc\_rxq the rebuild
installs. The reset that such a request triggers is a different path,
ice\_vf\_reconfig\_vsi(), which does not use this resizer at all; that one
is handled by the next patch.

Replace it with ice\_vsi\_resize\_stat\_arrays(), which allocates a fresh
struct ice\_vsi\_stats instead, sized with ice\_vsi\_get\_num\_qs() and the
queues ice\_vsi\_decfg() is about to return to the PF pool, which is
exactly what ice\_vsi\_set\_num\_qs() will compute once they are back
there, barring a concurrent change of the PF pool; the next patch stops
relying on that. Copy the surviving entry pointers over and install
the new structure, all before ice\_vsi\_decfg() runs. The entries that
did not fit are freed by ice\_vsi\_free\_unused\_stat\_arrays(); the old
container itself then goes through \_\_ice\_vsi\_free\_stats() with
@free\_entries set to false, since the entries it still points at now
belong to the new structure.

Allocating up front also means a failure no longer leaves a half-updated
ice\_vsi\_stats behind, with the Tx array already swapped and its surplus
Tx entries already freed, but the Rx allocation failed.

Put the allocate-install-free-surplus sequence in
ice\_vsi\_install\_stat\_arrays(), next to ice\_vsi\_new\_stat\_arrays(), so
that only the sizing decision is left in the resizer.

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2f7b37855ac4e12bab04224b67645282bce55550; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 66444f06a9fe96ac49f5c168d06aaebbfa109c9e; \< 7.3.6 (cvelist)
- Linux: all versions (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 7.3.6 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-139566.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 2f7b37855ac4e12bab04224b67645282bce55550; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 66444f06a9fe96ac49f5c168d06aaebbfa109c9e; < 7.3.6; Linux all versions
Fixed in: Linux 2f7b37855ac4e12bab04224b67645282bce55550, Linux 66444f06a9fe96ac49f5c168d06aaebbfa109c9e, Linux 7.3.6

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-139566 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2f7b37855ac4e12bab04224b67645282bce55550; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 66444f06a9fe96ac49f5c168d06aaebbfa109c9e; \< 7.3.6; Linux all versions.

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

Yes. Fixed in Linux 2f7b37855ac4e12bab04224b67645282bce55550, Linux 66444f06a9fe96ac49f5c168d06aaebbfa109c9e, Linux 7.3.6. Upgrade Linux to 7.3.6 or later.

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

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/2f7b37855ac4e12bab04224b67645282bce55550>
- other: <https://git.kernel.org/stable/c/66444f06a9fe96ac49f5c168d06aaebbfa109c9e>

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

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