CVE-2022-50065
kernel: virtio_net: fix memory leak inside XPD_TX with mergeable
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · June 18, 2025
Updated · June 30, 2026
Description
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".
Statement
A memory leak may occur in the virtio_net driver when handling the XDP_TX action with mergeable buffers. If xdp_convert_buff_to_frame() fails and returns NULL, and the XDP page was previously allocated via xdp_linearize_page(), the memory is not properly released. The impact is limited to a minor memory leak under specific error conditions, requiring XDP program execution with mergeable buffers.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 4.7CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE not specified