Re: [PATCH net v2 1/3] virtio-net: ensure the received length does not exceed allocated size
From: Jason Wang <hidden>
Date: 2025-07-01 02:20:09
Also in:
bpf, lkml, stable, virtualization
From: Jason Wang <hidden>
Date: 2025-07-01 02:20:09
Also in:
bpf, lkml, stable, virtualization
On Mon, Jun 30, 2025 at 10:42 PM Bui Quang Minh [off-list ref] wrote:
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.
Cc: <redacted>
Fixes: 4941d472bf95 ("virtio-net: do not reset during XDP set")
Signed-off-by: Bui Quang Minh <redacted>Acked-by: Jason Wang <redacted> Thanks