]> git.ipfire.org Git - thirdparty/qemu.git/commit
vmw_pvscsi: check page count while initialising descriptor rings
authorPrasad J Pandit <pjp@fedoraproject.org>
Wed, 31 Aug 2016 06:49:29 +0000 (12:19 +0530)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 2 Nov 2016 21:41:34 +0000 (16:41 -0500)
commit742886578d76e088d7fffdfce3bd2f4001e30558
treeab6f77a8adf62e7ef13c36121d71bab7a6296e7b
parent2f8e8c7396b399c014c922de800fae85ed956ae1
vmw_pvscsi: check page count while initialising descriptor rings

Vmware Paravirtual SCSI emulation uses command descriptors to
process SCSI commands. These descriptors come with their ring
buffers. A guest could set the page count for these rings to
an arbitrary value, leading to infinite loop or OOB access.
Add check to avoid it.

Reported-by: Tom Victor <vv474172261@gmail.com>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Message-Id: <1472626169-12989-1-git-send-email-ppandit@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 7f61f4690dd153be98900a2a508b88989e692753)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/scsi/vmw_pvscsi.c