Skip to content
Commit 6fc4476d authored by F.A.Sulaiman's avatar F.A.Sulaiman Committed by Greg Kroah-Hartman
Browse files

HID: betop: fix slab-out-of-bounds Write in betop_probe

commit 1e4ce418

 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: default avatar <syzbot+07efed3bc5a1407bd742@syzkaller.appspotmail.com>
Signed-off-by: default avatarF.A. SULAIMAN <asha.16@itfac.mrt.ac.lk>
Reviewed-by: default avatarPavel Skripkin <paskripkin@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 946b3978
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment