diff options
author | F.A.Sulaiman <asha.16@itfac.mrt.ac.lk> | 2021-08-24 20:37:30 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-10-06 15:05:10 +0200 |
commit | 1c83c38dec83d57bc18d0c01d82c413d3b34ccb9 (patch) | |
tree | 5573695f33a7d1638949e92dbb824116eba715e5 /lib/timerqueue.c | |
parent | 3707e37b3fcef4d5e9a81b9c2c48ba7248051c2a (diff) |
HID: betop: fix slab-out-of-bounds Write in betop_probe
commit 1e4ce418b1cb1a810256b5fb3fd33d22d1325993 upstream.
Syzbot reported slab-out-of-bounds Write bug in hid-betopff driver.
The problem is the driver assumes the device must have an input report but
some malicious devices violate this assumption.
So this patch checks hid_device's input is non empty before it's been used.
Reported-by: syzbot+07efed3bc5a1407bd742@syzkaller.appspotmail.com
Signed-off-by: F.A. SULAIMAN <asha.16@itfac.mrt.ac.lk>
Reviewed-by: Pavel Skripkin <paskripkin@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions