CVE-2026-90142: virtio_net: Fix resize of the RX ring
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
virtio_net: Fix resize of the RX ring
When a AF_XDP socket is attached, the virtnet_rx_resize should resize the rq->xsk_buffs XSK buffer array. Otherwise, when the size grows, the virtnet_rx_resume() causes a write past the end of the array. This is easily reproducable with
ethtool -G ens3 rx 32
./xdpsock -i eth0 -q 0 -r -z &
ethtool -G eth0 rx 256
The Linux kernel CVE team has assigned CVE-2026-90142 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.11 with commit e9f3962441c0a4d6f16c656e6c8aa02a3ccdd568 and fixed in 7.2.6 with commit 8344c9233c8f77017174d9e280c5a26034d068b6 Issue introduced in 6.11 with commit e9f3962441c0a4d6f16c656e6c8aa02a3ccdd568 and fixed in 7.3-rc1 with commit d09c98a6da215bce2173a292e4b95c8de6ea5d51
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-90142
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/virtio_net.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/8344c9233c8f77017174d9e280c5a26034d068b6 https://git.kernel.org/stable/c/d09c98a6da215bce2173a292e4b95c8de6ea5d51