]> 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 09:09:47 +0000 (11:09 +0200)
commitca26d00828d3a0c15eb1151a96a924c854665500
treeb25c3f23f3814f8af5defe72ca1d445d8402ed00
parent86efc409f29db44c2fcbc353299865238ff372c0
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