linux-stable/drivers/net/hyperv
Andrea Parri (Microsoft) 0ba35fe91c hv_netvsc: Copy packets sent by Hyper-V out of the receive buffer
Pointers to receive-buffer packets sent by Hyper-V are used within the
guest VM.  Hyper-V can send packets with erroneous values or modify
packet fields after they are processed by the guest.  To defend against
these scenarios, copy (sections of) the incoming packet after validating
their length and offset fields in netvsc_filter_receive().  In this way,
the packet can no longer be modified by the host.

Reported-by: Juan Vazquez <juvazq@microsoft.com>
Signed-off-by: Andrea Parri (Microsoft) <parri.andrea@gmail.com>
Link: https://lore.kernel.org/r/20210126162907.21056-1-parri.andrea@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2021-01-29 16:44:07 -08:00
..
hyperv_net.h hv_netvsc: Copy packets sent by Hyper-V out of the receive buffer 2021-01-29 16:44:07 -08:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile hv_netvsc: Add XDP support 2020-01-25 10:43:19 +01:00
netvsc.c hv_netvsc: Copy packets sent by Hyper-V out of the receive buffer 2021-01-29 16:44:07 -08:00
netvsc_bpf.c hv_netvsc: Add (more) validation for untrusted Hyper-V values 2021-01-18 19:47:47 -08:00
netvsc_drv.c hv_netvsc: Copy packets sent by Hyper-V out of the receive buffer 2021-01-29 16:44:07 -08:00
netvsc_trace.c
netvsc_trace.h
rndis_filter.c hv_netvsc: Copy packets sent by Hyper-V out of the receive buffer 2021-01-29 16:44:07 -08:00