Re: [PATCH] Input: apple_z2 - bound the device-reported packet length

From: Sasha Finkelstein

Date: Sat Jun 13 2026 - 17:58:00 EST



> On Jun 13, 2026, at 23:42, Bryam Vargas via B4 Relay <devnull+hexlabsecurity.proton.me@xxxxxxxxxx> wrote:
>
> From: Bryam Vargas <hexlabsecurity@xxxxxxxxx>
>
> [...]
> Reject any packet whose length exceeds the receive buffer.
>

Reviewed-by: Sasha Finkelstein <k@xxxxxxxxxxxxxx>

Although, if you reject the packet, the datastream will be desynced and
the device should be reset before it can operate again.