Commit 65f22d09 authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by sanglipeng
Browse files

Input: psmouse - fix OOB access in Elantech protocol

stable inclusion
from stable-v5.10.184
commit ca26d00828d3a0c15eb1151a96a924c854665500
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8IRR2

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ca26d00828d3a0c15eb1151a96a924c854665500

--------------------------------

commit 7b63a88b 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: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 7757a484
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment