summary refs log tree commit diff stats
path: root/python/tests/protocol.py
diff options
context:
space:
mode:
authorStefano Garzarella <sgarzare@redhat.com>2022-02-28 10:50:58 +0100
committerMichael S. Tsirkin <mst@redhat.com>2022-03-06 05:08:23 -0500
commit8d1b247f3748ac4078524130c6d7ae42b6140aaf (patch)
tree8cf5d1d82e20ca7d479801b5e5d8e9baa9f24229 /python/tests/protocol.py
parent4ccd5fe22feb95137d325f422016a6473541fe9f (diff)
downloadfocaccia-qemu-8d1b247f3748ac4078524130c6d7ae42b6140aaf.tar.gz
focaccia-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 'python/tests/protocol.py')
0 files changed, 0 insertions, 0 deletions