Re: [PATCH v3] HID: betop: fix slab-out-of-bounds Write in betop_probe

From
Jiri Kosina <jikos@kernel.org>
Date
2021-09-15 14:31:55
Also in
lkml
Reply to
F.A.Sulaiman, 2021-08-24
On Tue, 24 Aug 2021, F.A.Sulaiman wrote:
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: <redacted>
Signed-off-by: F.A. SULAIMAN <redacted>
Applied, thanks.

-- 
Jiri Kosina
SUSE Labs
Thread (10 messages) 10 messages, 4 authors, last reply 2021-09-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help