aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/qapi/source.py
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2024-01-02 11:29:01 +0800
committerJason Wang <jasowang@redhat.com>2024-01-25 14:58:00 +0800
commit2220e8189fb94068dbad333228659fbac819abb0 (patch)
tree6bba50644b12a34b2d0e406f07db9450d15157e8 /scripts/qapi/source.py
parentMerge tag 'pull-hex-20240121' of https://github.com/quic/qemu into staging (diff)
downloadqemu-2220e8189fb94068dbad333228659fbac819abb0.tar.xz
qemu-2220e8189fb94068dbad333228659fbac819abb0.zip
virtio-net: correctly copy vnet header when flushing TX
When HASH_REPORT is negotiated, the guest_hdr_len might be larger than the size of the mergeable rx buffer header. Using virtio_net_hdr_mrg_rxbuf during the header swap might lead a stack overflow in this case. Fixing this by using virtio_net_hdr_v1_hash instead. Reported-by: Xiao Lei <leixiao.nop@zju.edu.cn> Cc: Yuri Benditovich <yuri.benditovich@daynix.com> Cc: qemu-stable@nongnu.org Cc: Mauro Matteo Cascella <mcascell@redhat.com> Fixes: CVE-2023-6693 Fixes: e22f0603fb2f ("virtio-net: reference implementation of hash report") Reviewed-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions