qemu-e2k/hw/usb
Gerd Hoffmann 31fb4444a4 usb-ccid: add check message size checks
Check message size too when figuring whenever we should expect more data.
Fix debug message to show useful data, p->iov.size is fixed anyway if we
land there, print how much we got meanwhile instead.

Also check announced message size against actual message size.  That
is a more general fix for CVE-2017-5898 than commit "c7dfbf3 usb: ccid:
check ccid apdu length".

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 1487250819-23764-4-git-send-email-kraxel@redhat.com
2017-02-21 08:11:43 +01:00
..
bus.c migration: Allow "device add" options to only add migratable devices 2017-01-24 17:54:47 +00:00
ccid-card-emulated.c event_notifier: cleanups around event_notifier_set_handler 2017-01-16 17:52:35 +01:00
ccid-card-passthru.c char: rename CharDriverState Chardev 2017-01-27 18:07:59 +01:00
ccid.h usb: Change *_exitfn return type from int to void 2016-10-28 18:17:23 +03:00
combined-packet.c
core.c
desc-msos.c
desc.c usb: accept usb3 control requests 2017-02-06 10:23:17 +01:00
desc.h
dev-audio.c
dev-bluetooth.c
dev-hid.c hw/usb/dev-hid: Improve guest compatibility of usb-tablet 2017-02-06 10:23:17 +01:00
dev-hub.c
dev-mtp.c usb: Set category and description of the MTP device 2017-01-24 23:26:54 +03:00
dev-network.c
dev-serial.c char: rename CharDriverState Chardev 2017-01-27 18:07:59 +01:00
dev-smartcard-reader.c usb-ccid: add check message size checks 2017-02-21 08:11:43 +01:00
dev-storage.c
dev-uas.c usb/uas: more verbose error message 2017-02-06 10:23:17 +01:00
dev-wacom.c
hcd-ehci-pci.c usb: ehci: fix memory leak in ehci 2017-02-21 08:11:42 +01:00
hcd-ehci-sysbus.c
hcd-ehci.c usb: ehci: fix memory leak in ehci 2017-02-21 08:11:42 +01:00
hcd-ehci.h usb: ehci: fix memory leak in ehci 2017-02-21 08:11:42 +01:00
hcd-musb.c
hcd-ohci.c usb: ohci: limit the number of link eds 2017-02-21 08:11:42 +01:00
hcd-uhci.c
hcd-xhci.c xhci: drop via vendor command handling 2017-02-21 08:11:43 +01:00
host-legacy.c
host-libusb.c hw/ppc/spapr: Fix boot path of usb-host storage devices 2017-01-31 10:10:13 +11:00
host-stub.c hw/ppc/spapr: Fix boot path of usb-host storage devices 2017-01-31 10:10:13 +11:00
host.h
libhw.c
Makefile.objs
quirks-ftdi-ids.h
quirks-pl2303-ids.h
quirks.c
quirks.h
redirect.c char: rename CharDriverState Chardev 2017-01-27 18:07:59 +01:00
trace-events xhci: apply limits to loops 2017-02-21 08:11:43 +01:00
tusb6010.c
xen-usb.c xen: attach pvusb usb bus to backend qdev 2016-11-22 10:29:41 -08:00