Files
android_kernel_samsung_msm8…/drivers
Dmitry Torokhov 15382c6c3f Input: add safety guards to input_set_keycode()
commit cb222aed03d798fc074be55e59d9a112338ee784 upstream.

If we happen to have a garbage in input device's keycode table with values
too big we'll end up doing clear_bit() with offset way outside of our
bitmaps, damaging other objects within an input device or even outside of
it. Let's add sanity checks to the returned old keycodes.

Reported-by: syzbot+c769968809f9359b07aa@syzkaller.appspotmail.com
Reported-by: syzbot+76f3a30e88d256644c78@syzkaller.appspotmail.com
Link: https://lore.kernel.org/r/20191207212757.GA245964@dtor-ws
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
CVE-2019-20636
Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
Change-Id: I8f9a462d3fb8a9bb4494adb0e8edfac099a35263
2020-11-09 11:02:35 +01:00
..
…
…
2019-08-05 09:13:25 +02:00
2019-08-23 13:20:00 +02:00
…
2019-08-05 14:20:47 +02:00
…
2019-08-05 14:20:47 +02:00
2019-08-23 13:20:00 +02:00
2020-05-20 09:44:21 +02:00
2019-08-05 14:20:47 +02:00
…
…
2019-08-23 13:20:00 +02:00
…
…
…
…
2020-08-08 16:41:43 +02:00
…
…
2019-08-08 12:10:20 +02:00