]> git.itanic.dy.fi Git - linux-stable/commit
Input: kbtab - validate number of endpoints before using them
authorJohan Hovold <johan@kernel.org>
Thu, 16 Mar 2017 18:41:55 +0000 (11:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Apr 2017 05:15:04 +0000 (07:15 +0200)
commitc201e0b44896488c1b02515f08ece02bc106cb8d
treeb45a4c84506499e07f64394ecfc3870a064a901a
parentd1f5902b6bf1dff1efa02ca799a89917b8237f07
Input: kbtab - validate number of endpoints before using them

commit cb1b494663e037253337623bf1ef2df727883cb7 upstream.

Make sure to check the number of endpoints to avoid dereferencing a
NULL-pointer should a malicious device lack endpoints.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/tablet/kbtab.c