Re: [PATCH] HID: picolcd: validate debug report lengths
From: Jiri Kosina
Date: Tue Dec 01 2026 - 07:01:27 EST
On Wed, 28 Oct 2026, Jiale Yao wrote:
> picolcd_debug_raw_event() decodes several fixed-format reports without
> first checking that the device supplied enough bytes for the fields it
> reads. A short report can therefore make the debug path read beyond the
> HID input buffer.
>
> Determine the minimum length for each decoded report and ignore reports
> that are too short before accessing their payload.
>
> Fixes: fabdbf2fd22f ("HID: picoLCD: split driver code")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Jiale Yao <yaojiale02@xxxxxxx>
Applied, thanks.
--
Jiri Kosina
SUSE Labs