CVE-2024-58099
Severity CVSS v4.0:
Pending analysis
Type:
CWE-787
Out-of-bounds Write
Publication date:
29/04/2025
Last modified:
01/10/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
vmxnet3: Fix packet corruption in vmxnet3_xdp_xmit_frame<br />
<br />
Andrew and Nikolay reported connectivity issues with Cilium&#39;s service<br />
load-balancing in case of vmxnet3.<br />
<br />
If a BPF program for native XDP adds an encapsulation header such as<br />
IPIP and transmits the packet out the same interface, then in case<br />
of vmxnet3 a corrupted packet is being sent and subsequently dropped<br />
on the path.<br />
<br />
vmxnet3_xdp_xmit_frame() which is called e.g. via vmxnet3_run_xdp()<br />
through vmxnet3_xdp_xmit_back() calculates an incorrect DMA address:<br />
<br />
page = virt_to_page(xdpf->data);<br />
tbi->dma_addr = page_pool_get_dma_addr(page) +<br />
VMXNET3_XDP_HEADROOM;<br />
dma_sync_single_for_device(&adapter->pdev->dev,<br />
tbi->dma_addr, buf_size,<br />
DMA_TO_DEVICE);<br />
<br />
The above assumes a fixed offset (VMXNET3_XDP_HEADROOM), but the XDP<br />
BPF program could have moved xdp->data. While the passed buf_size is<br />
correct (xdpf->len), the dma_addr needs to have a dynamic offset which<br />
can be calculated as xdpf->data - (void *)xdpf, that is, xdp->data -<br />
xdp->data_hard_start.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.6 (including) | 6.6.59 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.7 (including) | 6.11.6 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.12:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.12:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.12:rc3:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page



