Michael S. Tsirkin cc45995294 virtio: out-of-bounds buffer write on invalid state load
CVE-2013-4151 QEMU 1.0 out-of-bounds buffer write in
virtio_load@hw/virtio/virtio.c

So we have this code since way back when:

    num = qemu_get_be32(f);

    for (i = 0; i < num; i++) {
        vdev->vq[i].vring.num = qemu_get_be32(f);

array of vqs has size VIRTIO_PCI_QUEUE_MAX, so
on invalid input this will write beyond end of buffer.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
2014-05-05 22:15:02 +02:00
..
2014-04-29 10:46:29 +02:00
2014-04-22 12:00:20 +02:00
2014-04-07 14:51:32 +01:00
2013-12-24 18:02:18 +01:00
2014-02-03 14:04:00 +00:00
2014-04-28 11:03:32 +02:00
2014-02-14 16:22:32 +01:00
2014-04-18 10:33:36 +04:00
2014-05-02 11:32:00 +01:00
2014-02-14 16:22:31 +01:00
2014-03-05 03:06:46 +01:00
2014-03-31 19:53:34 +01:00
2014-04-02 13:24:23 +02:00
2013-09-03 12:31:07 -05:00
2013-08-22 19:10:27 +02:00
2014-04-23 10:28:14 +02:00