qemu-e2k/hw/block
Petr Matousek e907746266 fdc: force the fifo access to be in bounds of the allocated buffer
During processing of certain commands such as FD_CMD_READ_ID and
FD_CMD_DRIVE_SPECIFICATION_COMMAND the fifo memory access could
get out of bounds leading to memory corruption with values coming
from the guest.

Fix this by making sure that the index is always bounded by the
allocated memory.

This is CVE-2015-3456.

Signed-off-by: Petr Matousek <pmatouse@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
2015-05-12 18:52:57 -04:00
..
dataplane
block.c
cdrom.c
ecc.c
fdc.c fdc: force the fifo access to be in bounds of the allocated buffer 2015-05-12 18:52:57 -04:00
hd-geometry.c
m25p80.c
Makefile.objs
nand.c
nvme.c
nvme.h
onenand.c
pflash_cfi01.c
pflash_cfi02.c
tc58128.c
virtio-blk.c
xen_blkif.h
xen_disk.c