Michael S. Tsirkin 98f93ddd84 virtio-net: out-of-bounds buffer write on load
CVE-2013-4149 QEMU 1.3.0 out-of-bounds buffer write in
virtio_net_load()@hw/net/virtio-net.c

>         } else if (n->mac_table.in_use) {
>             uint8_t *buf = g_malloc0(n->mac_table.in_use);

We are allocating buffer of size n->mac_table.in_use

>             qemu_get_buffer(f, buf, n->mac_table.in_use * ETH_ALEN);

and read to the n->mac_table.in_use size buffer n->mac_table.in_use *
ETH_ALEN bytes, corrupting memory.

If adversary controls state then memory written there is controlled
by adversary.

Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
2014-05-05 22:15:03 +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-18 10:33:36 +04:00
2014-02-14 16:22:31 +01:00
2014-03-05 03:06:46 +01:00
2013-09-03 12:31:07 -05:00
2013-08-22 19:10:27 +02:00