qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] virtio-net: correctly copy vnet header when flushing TX


From: Michael Tokarev
Subject: Re: [PATCH] virtio-net: correctly copy vnet header when flushing TX
Date: Sun, 21 Jan 2024 10:35:08 +0300
User-agent: Mozilla Thunderbird

02.01.2024 06:29, Jason Wang :
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")
Signed-off-by: Jason Wang <jasowang@redhat.com>

Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>

/mjt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]