Re: [PATCH] HID: sony: add missing size validation for SMK-Link remotes

From: Jiri Kosina

Date: Tue Apr 28 2026 - 13:23:06 EST


On Sun, 12 Apr 2026, Rosalie Wanders wrote:

> This commit adds the missing size validation for SMK-Link remotes in
> sony_raw_event(), this prevents a malicious device from allowing
> hid-sony to read out of bounds of the provided buffer.
>
> I do not own these devices so the size check only forces that the buffer
> is large enough for nsg_mrxu_parse_report().

Applied to hid.git#for-7.1/upstream-fixes, thanks.

--
Jiri Kosina
SUSE Labs