diff options
| author | Benoît Sevens <bsevens@google.com> | 2026-03-03 13:58:28 +0000 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2026-03-09 19:34:12 +0100 |
| commit | 2f1763f62909ccb6386ac50350fa0abbf5bb16a9 (patch) | |
| tree | a24492abb142297c361bad86ba6d389db0468cf4 /include/uapi/linux/wimax/git@git.tavy.me:linux.git | |
| parent | e31b556c0ba21f20c298aa61181b96541140b7b9 (diff) | |
HID: wacom: fix out-of-bounds read in wacom_intuos_bt_irq
The wacom_intuos_bt_irq() function processes Bluetooth HID reports
without sufficient bounds checking. A maliciously crafted short report
can trigger an out-of-bounds read when copying data into the wacom
structure.
Specifically, report 0x03 requires at least 22 bytes to safely read
the processed data and battery status, while report 0x04 (which
falls through to 0x03) requires 32 bytes.
Add explicit length checks for these report IDs and log a warning if
a short report is received.
Signed-off-by: Benoît Sevens <bsevens@google.com>
Reviewed-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'include/uapi/linux/wimax/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
