]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
USB: iowarrior: fix NULL-deref in write
authorJohan Hovold <johan@kernel.org>
Tue, 7 Mar 2017 15:11:04 +0000 (16:11 +0100)
committerJiri Slaby <jslaby@suse.cz>
Tue, 28 Mar 2017 13:49:16 +0000 (15:49 +0200)
commit0bedc999169530d2f1ae10a65074914ada15092b
tree5ca38c0f5d7fdc1bb9141376a03cf7de7ec08a43
parent793b927173199800010a37da93c92e603a1136ce
USB: iowarrior: fix NULL-deref in write

commit de46e56653de7b3b54baa625bd582635008b8d05 upstream.

Make sure to verify that we have the required interrupt-out endpoint for
IOWarrior56 devices to avoid dereferencing a NULL-pointer in write
should a malicious device lack such an endpoint.

Fixes: 946b960d13c1 ("USB: add driver for iowarrior devices.")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/usb/misc/iowarrior.c