virtio_net: fix memory leak inside XPD_TX with mergeable
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 memory leak inside XPD_TX with mergeable
When we call xdp_convert_buff_to_frame() to get xdpf, if it returns NULL, we should check if xdp_page was allocated by xdp_linearize_page(). If it is newly allocated, it should be freed here alone. Just like any other "goto err_xdp".
From the CVE record · Linux
The Linux kernel's virtio_net XDP_TX path can leak a newly allocated page when mergeable buffers are used and xdp_convert_buff_to_frame() returns NULL. The input does not specify how an attacker could trigger this condition, or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels that use virtio_net with mergeable buffers and XDP_TX should check their versions; affected versions are not specified.