(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

HID: magicmouse: fix null pointer dereference in magicmouse_event()

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@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=5ad4fc9c8360b68e353f Signed-off-by: Nehuen Lian Bova <nehuenlian.kernel@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>


Author Nehuen Lian Bova Committer Jiri Kosina Date Commit Parent 9932c9af
+4
1 changed file
+4
1 changed file