linux-stable/drivers/input/tablet
Johan Hovold 21aa01da9d Input: pegasus_notetaker - fix endpoint sanity check
commit bcfcb7f9b4 upstream.

The driver was checking the number of endpoints of the first alternate
setting instead of the current one, something which could be used by a
malicious device (or USB descriptor fuzzer) to trigger a NULL-pointer
dereference.

Fixes: 1afca2b66a ("Input: add Pegasus Notetaker tablet driver")
Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Martin Kepplinger <martink@posteo.de>
Acked-by: Vladis Dronov <vdronov@redhat.com>
Link: https://lore.kernel.org/r/20191210113737.4016-2-johan@kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-29 16:45:29 +01:00
..
acecad.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
aiptek.c Input: aiptek - fix endpoint sanity check 2020-01-29 16:45:29 +01:00
gtco.c Input: gtco - fix endpoint sanity check 2020-01-29 16:45:28 +01:00
hanwang.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
kbtab.c Input: kbtab - sanity check for endpoint type 2019-08-01 10:55:21 -07:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile
pegasus_notetaker.c Input: pegasus_notetaker - fix endpoint sanity check 2020-01-29 16:45:29 +01:00
wacom_serial4.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 55 2019-05-24 17:36:42 +02:00