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
..
2016-01-29 15:07:23 +00:00
2016-02-23 10:38:00 +01:00
2016-01-29 15:07:23 +00:00
2017-02-06 10:23:17 +01:00
2016-02-23 12:43:05 +00:00
2016-01-29 15:07:23 +00:00
2016-01-29 15:07:23 +00:00
2017-02-06 10:23:17 +01:00
2016-01-29 15:07:23 +00:00
2016-01-29 15:07:23 +00:00
2017-02-21 08:11:42 +01:00
2017-02-21 08:11:42 +01:00
2016-04-25 12:05:05 +01:00
2016-01-29 15:07:23 +00:00
2013-02-19 12:30:05 +01:00
2016-01-29 15:07:23 +00:00
2016-05-23 13:30:03 +02:00
2016-01-29 15:07:23 +00:00
2017-02-21 08:11:43 +01:00