summaryrefslogtreecommitdiffstats
path: root/hw/smbios/smbios.c
diff options
context:
space:
mode:
authorStefano Garzarella2022-02-28 10:50:58 +0100
committerMichael S. Tsirkin2022-03-06 11:08:23 +0100
commit8d1b247f3748ac4078524130c6d7ae42b6140aaf (patch)
tree8cf5d1d82e20ca7d479801b5e5d8e9baa9f24229 /hw/smbios/smbios.c
parentpc: add option to disable PS/2 mouse/keyboard (diff)
downloadqemu-8d1b247f3748ac4078524130c6d7ae42b6140aaf.tar.gz
qemu-8d1b247f3748ac4078524130c6d7ae42b6140aaf.tar.xz
qemu-8d1b247f3748ac4078524130c6d7ae42b6140aaf.zip
vhost-vsock: detach the virqueue element in case of error
In vhost_vsock_common_send_transport_reset(), if an element popped from the virtqueue is invalid, we should call virtqueue_detach_element() to detach it from the virtqueue before freeing its memory. Fixes: fc0b9b0e1c ("vhost-vsock: add virtio sockets device") Fixes: CVE-2022-26354 Cc: qemu-stable@nongnu.org Reported-by: VictorV <vv474172261@gmail.com> Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Message-Id: <20220228095058.27899-1-sgarzare@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/smbios/smbios.c')
0 files changed, 0 insertions, 0 deletions