Re: [PATCH] HID: alps: fix NULL pointer dereference in alps_raw_event()
From: Jiri Kosina
Date: Thu Apr 09 2026 - 11:44:24 EST
On Mon, 6 Apr 2026, Greg Kroah-Hartman wrote:
> Commit ecfa6f34492c ("HID: Add HID_CLAIMED_INPUT guards in raw_event
> callbacks missing them") attempted to fix up the HID drivers that had
> missed the previous fix that was done in 2ff5baa9b527 ("HID: appleir:
> Fix potential NULL dereference at raw event handle"), but the alps
> driver was missed.
>
> Fix this up by properly checking in the hid-alps driver that it had been
> claimed correctly before attempting to process the raw event.
>
> Fixes: 73196ebe134d ("HID: alps: add support for Alps T4 Touchpad device")
> Cc: stable <stable@xxxxxxxxxx>
> Cc: Jiri Kosina <jikos@xxxxxxxxxx>
> Cc: Benjamin Tissoires <bentiss@xxxxxxxxxx>
> Cc: Masaki Ota <masaki.ota@xxxxxxxxxxx>
> Cc: linux-input@xxxxxxxxxxxxxxx
> Assisted-by: gregkh_clanker_t1000
> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Applied, thanks.
--
Jiri Kosina
SUSE Labs