diff options
| author | Jiale Yao <yaojiale02@163.com> | 2026-09-24 22:44:08 +0800 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2026-10-16 11:36:47 +0200 |
| commit | c2deafcb4c8227771f768d77ed3c0a489250e9b2 (patch) | |
| tree | 402bd46d7abc1cebd8f7fd9ff5469058f887d598 /tools/perf/scripts/python | |
| parent | 1cb92fcb2ac344d78737e3c5cb7b061dfb2850b1 (diff) | |
HID: logitech-dj: validate unnumbered keyboard reports
The HID core invokes raw_event callbacks before validating the report
length. For an unnumbered keyboard report, logi_dj_raw_event() uses the
second byte as temporary storage while prepending a report ID. A one-byte
report therefore makes both the initial write and the later restoration
access data beyond the received report.
Reject unnumbered keyboard reports that do not provide the temporary byte.
Commit 47669bec44fe ("HID: asus: refactor the two workqueues and init
sequence") added the same kind of raw_event length validation to hid-asus.
Fixes: 74808f9115ce ("HID: logitech-dj: add support for non unifying receivers")
Cc: stable@vger.kernel.org
Signed-off-by: Jiale Yao <yaojiale02@163.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
