qemu-irix/hw/usb
Michael S. Tsirkin 15c35dfd92 usb: sanity check setup_index+setup_len in post_load
CVE-2013-4541

s->setup_len and s->setup_index are fed into usb_packet_copy as
size/offset into s->data_buf, it's possible for invalid state to exploit
this to load arbitrary data.

setup_len and setup_index should be checked to make sure
they are not negative.

Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
(cherry picked from commit 9f8e9895c5)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2014-07-20 22:05:55 -05:00
..
Makefile.objs
bus.c usb: sanity check setup_index+setup_len in post_load 2014-07-20 22:05:55 -05:00
ccid-card-emulated.c Add a 'name' parameter to qemu_thread_create 2014-03-09 21:09:38 +02:00
ccid-card-passthru.c
ccid.h
combined-packet.c
core.c
desc-msos.c
desc.c usb: Remove magic constants from device bmAttributes 2014-02-18 15:39:12 +01:00
desc.h
dev-audio.c usb: Remove magic constants from device bmAttributes 2014-02-18 15:39:12 +01:00
dev-bluetooth.c usb: Remove magic constants from device bmAttributes 2014-02-18 15:39:12 +01:00
dev-hid.c usb: Remove magic constants from device bmAttributes 2014-02-18 15:39:12 +01:00
dev-hub.c usb: Remove magic constants from device bmAttributes 2014-02-18 15:39:12 +01:00
dev-network.c - xhci improvements and fixes. 2014-02-20 15:25:05 +00:00
dev-serial.c usb: Remove magic constants from device bmAttributes 2014-02-18 15:39:12 +01:00
dev-smartcard-reader.c usb: Remove magic constants from device bmAttributes 2014-02-18 15:39:12 +01:00
dev-storage.c usb: Remove magic constants from device bmAttributes 2014-02-18 15:39:12 +01:00
dev-uas.c usb: Remove magic constants from device bmAttributes 2014-02-18 15:39:12 +01:00
dev-wacom.c usb: Remove magic constants from device bmAttributes 2014-02-18 15:39:12 +01:00
hcd-ehci-pci.c
hcd-ehci-sysbus.c
hcd-ehci.c
hcd-ehci.h
hcd-musb.c
hcd-ohci.c hw/usb/hcd-ohci.c: Avoid shifting left into sign bit 2014-03-27 19:22:49 +04:00
hcd-uhci.c uhci: invalidate queue on device address changes 2014-02-18 15:39:13 +01:00
hcd-xhci.c xhci: use DPRINTF() instead of fprintf(stderr, ...) 2014-02-18 15:39:13 +01:00
host-legacy.c
host-libusb.c
host-stub.c
host.h
libhw.c
quirks-ftdi-ids.h
quirks-pl2303-ids.h
quirks.c
quirks.h
redirect.c