virtio_net: Fix error unwinding of XDP initialization
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 error unwinding of XDP initialization
When initializing XDP in virtnet_open(), some rq xdp initialization may hit an error causing net device open failed. However, previous rqs have already initialized XDP and enabled NAPI, which is not the expected behavior. Need to roll back the previous rq initialization to avoid leaks in error unwinding of init code.
Also extract helper functions of disable and enable queue pairs. Use newly introduced disable helper function in error unwinding and virtnet_close. Use enable helper function in virtnet_open.
From the CVE record · Linux
The Linux kernel's virtio_net driver can leave previously initialized receive queues with XDP and NAPI enabled if XDP initialization fails while opening a network device. This can cause resource leaks; the input does not describe an attacker, access requirements, or user interaction.
Engineers running the Linux kernel with virtio_net should check their installations; affected versions are not specified.