virtio_net: Fix resize of the RX ring
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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
From the CVE record · Linux
The Linux kernel's virtio_net driver does not resize its XSK buffer array when resizing the RX ring. If an AF_XDP socket is attached and the RX ring grows, the driver can write past the end of the array; the input does not specify who can trigger the resize.
Operators running Linux systems that use virtio_net should check their kernel versions; affected versions are not specified.