xen-netfront: handle NULL returned by xdp_convert_buff_to_frame()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
xen-netfront: handle NULL returned by xdp_convert_buff_to_frame()
The function xdp_convert_buff_to_frame() may return NULL if it fails to correctly convert the XDP buffer into an XDP frame due to memory constraints, internal errors, or invalid data. Failing to check for NULL may lead to a NULL pointer dereference if the result is used later in processing, potentially causing crashes, data corruption, or undefined behavior.
On XDP redirect failure, the associated page must be released explicitly if it was previously retained via get_page(). Failing to do so may result in a memory leak, as the pages reference count is not decremented.
From the CVE record · Linux
The Linux kernel's xen-netfront component does not check whether XDP buffer-to-frame conversion returns NULL, which may cause a crash, data corruption, or undefined behavior. An XDP redirect failure may also leak memory if a retained page is not released. The input does not specify an attack path, authentication requirements, or user interaction.
Engineers running Linux kernels that use xen-netfront should check their deployments; affected versions are not specified.