usb: iowarrior: don't trust report_size for buffer size
commit 3ed78011 upstream. If the iowarrior devices in this case statement support more than 8 bytes per report, it is possible to write past the end of a kernel heap allocation. This will probably never be possible, but change the allocation to be more defensive anyway. Signed-off-by:Kees Cook <kees.cook@canonical.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@suse.de> Acked-by:
Brandon Philips <bphilips@suse.de>
Showing
Please register or sign in to comment