]> www.infradead.org Git - users/dwmw2/linux.git/commit
HID: holtek: test for sanity of intfdata
authorOliver Neukum <oneukum@suse.com>
Thu, 25 Jul 2019 13:13:33 +0000 (15:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Aug 2019 08:50:06 +0000 (10:50 +0200)
commit32cfa39afe8ff13ca74ba5b1153472b4b87ad91f
tree50822cccaea509b078a7db7f23a8930281be13b6
parentc3bbd13899e57cc0d2e7c31c7d2284b978611fc1
HID: holtek: test for sanity of intfdata

commit 01ec0a5f19c8c82960a07f6c7410fc9e01d7fb51 upstream.

The ioctl handler uses the intfdata of a second interface,
which may not be present in a broken or malicious device, hence
the intfdata needs to be checked for NULL.

[jkosina@suse.cz: fix newly added spurious space]
Reported-by: syzbot+965152643a75a56737be@syzkaller.appspotmail.com
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-holtek-kbd.c