Re: [PATCH v2] HID: magicmouse: fix null pointer dereference in magicmouse_event()

From: Jiri Kosina

Date: Fri Oct 16 2026 - 05:55:37 EST


On Sat, 3 Oct 2026, Nehuen Lian Bova wrote:

> Add a guard clause to check if 'msc' and 'msc->input' is NULL
> before attempting to access its fields, preventing a general
> protection fault.
>
> Fixes: b8d56ef91cc3 ("HID: magicmouse: Apple Magic Mouse 2 USB-C support")
> Reported-by: syzbot+5ad4fc9c8360b68e353f@xxxxxxxxxxxxxxxxxxxxxxxxx
> Closes: https://syzkaller.appspot.com/bug?extid=5ad4fc9c8360b68e353f
> Signed-off-by: Nehuen Lian Bova <nehuenlian.kernel@xxxxxxxxx>

Applied, thanks.

--
Jiri Kosina
SUSE Labs