Michael Roth 73d963c0a7 openpic: avoid buffer overrun on incoming migration
CVE-2013-4534

opp->nb_cpus is read from the wire and used to determine how many
IRQDest elements to read into opp->dst[]. If the value exceeds the
length of opp->dst[], MAX_CPU, opp->dst[] can be overrun with arbitrary
data from the wire.

Fix this by failing migration if the value read from the wire exceeds
MAX_CPU.

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Reviewed-by: Alexander Graf <agraf@suse.de>
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-03-15 13:54:18 +04:00
2013-07-29 21:06:05 +02:00
2013-12-24 18:02:18 +01:00
2014-03-09 21:09:38 +02:00
2013-07-29 21:06:57 +02:00
2014-04-30 14:39:58 +02:00
2013-07-29 21:06:58 +02:00
2014-04-30 14:39:58 +02:00