What’s Vulnerable › Vulnerabilities
CVE-2022-50065: virtio_net: fix memory leak inside XPD_TX with mergeable
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-06-18 · updated 2026-06-17
- Weakness: CWE-401
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".
Affected products
- Linux kernel: from 4.18 before 5.10.138; from 5.11 before 5.15.63; from 5.16 before 5.19.4 — fixed in 5.10.138, 5.15.63, 5.19.4
How to fix
Upgrade to a fixed version: Linux kernel 5.10.138, 5.15.63, 5.19.4. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/18e383afbd7047af7b055df6e25436e0ce28f8a5
- https://git.kernel.org/stable/c/7a542bee27c6a57e45c33cbbdc963325fd6493af
- https://git.kernel.org/stable/c/d3723eab11196475ef83279571b2b0bd0924cf82
- https://git.kernel.org/stable/c/faafa2a87f697ee537c29446097e1cc3143506fa
Get alerted when CVE-2022-50065 or the next vulnerability affects your stack