aboutsummaryrefslogtreecommitdiff
path: root/hw/intc/apic.c
diff options
context:
space:
mode:
authorMichael Roth <mdroth@linux.vnet.ibm.com>2014-04-28 16:08:17 +0300
committerMichael Roth <mdroth@linux.vnet.ibm.com>2014-06-26 14:18:27 -0500
commit609f5bf6fecb78ada914b88598ae8ba43e304e36 (patch)
tree1959cd0cbe7d165e068f061c21db23ed07d04be4 /hw/intc/apic.c
parent8f0e369a52ff0b5e0642bda47e2ead3c7e273fe1 (diff)
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> (cherry picked from commit 73d963c0a75cb99c6aaa3f6f25e427aa0b35a02e) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'hw/intc/apic.c')
0 files changed, 0 insertions, 0 deletions