Re: [PATCH] HID: wacom: fix wacom_intuos_irq NULL pen_input deref
From: Jiri Kosina
Date: Fri Oct 16 2026 - 06:18:50 EST
On Wed, 23 Sep 2026, Matheus Alves de Almeida wrote:
> Currently, wacom_intuos_irq() passes the parent of wacom_wac's
> pen_input to the dev_dbg() in the unknown report path. However,
> pen_input can be NULL on interfaces without a pen, causing a
> NULL pointer dereference.
>
> Get the HID device from the enclosing struct wacom and use hid_dbg()
> instead.
>
> Fixes: eb71d1bb270e ("Input: wacom - use dev_xxx() instead of naked printk()s and dbg()s")
> Reported-by: syzbot+b5a7cd83622c747977de@xxxxxxxxxxxxxxxxxxxxxxxxx
> Closes: https://syzkaller.appspot.com/bug?extid=b5a7cd83622c747977de
> Signed-off-by: Matheus Alves de Almeida <matheus.aalmeida@xxxxxxxxxxxx>
Applied to hid.git#for-7.3/upstream-fixes, thanks.
--
Jiri Kosina
SUSE Labs