]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
HID: sony: add missing size validation for Rock Band 3 Pro instruments
authorRosalie Wanders <rosalie@mailbox.org>
Sun, 12 Apr 2026 01:12:03 +0000 (03:12 +0200)
committerJiri Kosina <jkosina@suse.com>
Tue, 28 Apr 2026 16:28:32 +0000 (18:28 +0200)
commit12bd440b66ed8968afffc46928233967b5b79b98
treebb518ee30d3c8bed67802c54da3238a328e8929f
parenta4170b63eda999d20ad6dc39ddc3ce5c1ac619e6
HID: sony: add missing size validation for Rock Band 3 Pro instruments

This commit adds the missing size validation for Rock Band 3 PS3 Pro
instruments in sony_raw_event(), this prevents a malicious device from
allowing hid-sony to read out of bounds of the provided buffer.

Signed-off-by: Rosalie Wanders <rosalie@mailbox.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-sony.c