Re: [PATCH v2] HID: bigben: fix slab-out-of-bounds Write in bigben_probe

From: Jiri Kosina
Date: Fri May 06 2022 - 04:47:38 EST


On Fri, 6 May 2022, Dongliang Mu wrote:

> From: Dongliang Mu <mudongliangabcd@xxxxxxxxx>
>
> There is a slab-out-of-bounds Write bug in hid-bigbenff driver.
> The problem is the driver assumes the device must have an input but
> some malicious devices violate this assumption.
>
> Fix this by checking hid_device's input is non-empty before its usage.
>
> Reported-by: syzkaller <syzkaller@xxxxxxxxxxxxxxxx>
> Signed-off-by: Dongliang Mu <mudongliangabcd@xxxxxxxxx>

Applied. thanks.

--
Jiri Kosina
SUSE Labs