virtio-net: ensure the received length does not exceed allocated size
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4941d472bf95b4345d6e38906fcf354e74afa311 · < bc68bc3563344ccdc57d1961457cdeecab8f81ef| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
virtio-net: ensure the received length does not exceed allocated size
In xdp_linearize_page, when reading the following buffers from the ring, we forget to check the received length with the true allocate size. This can lead to an out-of-bound read. This commit adds that missing check.
From the CVE record · Linux
The Linux kernel's virtio-net xdp_linearize_page function does not check a received buffer's length against its allocated size. Processing a buffer whose received length exceeds that size can cause an out-of-bounds read. The input does not specify whether exploitation requires network or local access, authentication, or user interaction.
Engineers running Linux kernels with virtio-net should check their versions; affected versions are not specified.