Re: [PATCH] HID: goodix: validate coordinate package length

From: Jiri Kosina

Date: Tue Dec 01 2026 - 07:00:36 EST


On Wed, 28 Oct 2026, Jiale Yao wrote:

> The coordinate package length comes from the device. goodix_hid_irq()
> checks only that it contains the length field before passing the
> remaining length to hid_input_report(). A package length larger than
> the fixed coordinate buffer therefore makes the HID core read beyond
> the data fetched from the device.
>
> Reject coordinate packages whose declared length exceeds the coordinate
> buffer.
>
> Fixes: 75e16c8ce283 ("HID: hid-goodix: Add Goodix HID-over-SPI driver")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Jiale Yao <yaojiale02@xxxxxxx>

Charles, could we please get our Ack on this patch?

Thanks,

--
Jiri Kosina
SUSE Labs