diff options
author | 2025-06-30 21:42:10 +0700 | |
---|---|---|
committer | 2025-07-03 10:56:55 +0200 | |
commit | 315dbdd7cdf6aa533829774caaf4d25f1fd20e73 (patch) | |
tree | 8a9bfc7c21657e2562812e73cc367fad131b6f6a /rust/pin-init/internal/src | |
parent | Merge branch '200GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue (diff) | |
download | wireguard-linux-315dbdd7cdf6aa533829774caaf4d25f1fd20e73.tar.xz wireguard-linux-315dbdd7cdf6aa533829774caaf4d25f1fd20e73.zip |
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.
Cc: <stable@vger.kernel.org>
Fixes: 4941d472bf95 ("virtio-net: do not reset during XDP set")
Signed-off-by: Bui Quang Minh <minhquangbui99@gmail.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Link: https://patch.msgid.link/20250630144212.48471-2-minhquangbui99@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'rust/pin-init/internal/src')
0 files changed, 0 insertions, 0 deletions