]> git.itanic.dy.fi Git - linux-stable/commit
Input: psmouse - fix OOB access in Elantech protocol
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 11 May 2023 19:08:37 +0000 (12:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2023 08:57:13 +0000 (10:57 +0200)
commita80ea8aeb3d32b184267b47deeb691395b36871e
tree85bf87cb33dc50fc0488795c46d8c0e6b2da4c88
parentc41d5cbfaf20b39f6b98e3a5accb1de4dd5177c0
Input: psmouse - fix OOB access in Elantech protocol

commit 7b63a88bb62ba2ddf5fcd956be85fe46624628b9 upstream.

The kernel only allocate 5 MT slots; check that transmitted slot ID
falls within the acceptable range.

Link: https://lore.kernel.org/r/ZFnEL91nrT789dbG@google.com
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/mouse/elantech.c