qemu-irix/hw/arm
Michael S. Tsirkin eb55958e18 pxa2xx: avoid buffer overrun on incoming migration
CVE-2013-4533

s->rx_level is read from the wire and used to determine how many bytes
to subsequently read into s->rx_fifo[]. If s->rx_level exceeds the
length of s->rx_fifo[] the buffer can be overrun with arbitrary data
from the wire.

Fix this by validating rx_level against the size of s->rx_fifo.

Cc: Don Koch <dkoch@verizon.com>
Reported-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Don Koch <dkoch@verizon.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
(cherry picked from commit caa881abe0)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2014-07-20 22:05:55 -05:00
..
Makefile.objs
allwinner-a10.c
armv7m.c
boot.c target-arm: Load ELF images with the correct machine type for CPU 2014-03-24 16:41:10 +00:00
collie.c
cubieboard.c
digic.c
digic_boards.c
exynos4_boards.c
exynos4210.c exynos4210: Set reset-cbar property of Cortex-A9 CPUs 2014-03-17 16:31:46 +00:00
gumstix.c
highbank.c hw/arm/vexpress, hw/arm/highbank: Don't insist that CPU has reset-cbar property 2014-04-04 18:01:09 +01:00
integratorcp.c hw/arm: Stop specifying integratorcp as the default board 2014-03-27 14:00:53 +00:00
kzm.c
mainstone.c
musicpal.c
nseries.c
omap1.c
omap2.c
omap_sx1.c
palm.c
pxa2xx.c pxa2xx: avoid buffer overrun on incoming migration 2014-07-20 22:05:55 -05:00
pxa2xx_gpio.c
pxa2xx_pic.c
realview.c realview-pbx-a9: Set reset-cbar property for CPUs 2014-03-17 16:31:45 +00:00
spitz.c ssi: Convert legacy SSI_SLAVE -> DEVICE casts 2014-03-12 20:13:02 +01:00
stellaris.c
strongarm.c
strongarm.h
tosa.c
versatilepb.c
vexpress.c hw/arm/vexpress, hw/arm/highbank: Don't insist that CPU has reset-cbar property 2014-04-04 18:01:09 +01:00
virt.c virt: Set reset-cbar on CPUs 2014-03-17 16:31:46 +00:00
xilinx_zynq.c
z2.c