CVE-2022-50065

virtio_net: fix memory leak inside XPD_TX with mergeable

MEDIUM
5.5
CVSS Score
Published: June 18, 2025 at 11:02 AM UTC
Updated: June 17, 2026 at 05:22 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.18 ≤ v < 5.10.1384.18 ≤ v < 5.15.634.18 ≤ v < 5.19.44.18 ≤ v < 6.05.11 ≤ v < 5.15.635.16 ≤ v < 5.19.44.1844fa2dbd475996ddc8f3a0e6113dee983e0ee3aa
Vendor states this is fixed in 18e383afbd7047af7b055df6e25436e0ce28f8a5 (fixed)
Vendor states this is fixed in 7a542bee27c6a57e45c33cbbdc963325fd6493af (fixed)
Vendor states this is fixed in d3723eab11196475ef83279571b2b0bd0924cf82 (fixed)
Vendor states this is fixed in faafa2a87f697ee537c29446097e1cc3143506fa (fixed)
Vendor states this is fixed in 4.18 (unaffected)
Vendor states this is fixed in 5.10.138 (unaffected)
Vendor states this is fixed in 5.15.63 (unaffected)
Vendor states this is fixed in 5.19.4 (unaffected)
Vendor states this is fixed in 6.0 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/18e383afbd7047af7b055df6e25436e0ce28f8a5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7a542bee27c6a57e45c33cbbdc963325fd6493af
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d3723eab11196475ef83279571b2b0bd0924cf82
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/faafa2a87f697ee537c29446097e1cc3143506fa

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card