Commit 1547d41
HID: logitech-hidpp: Check maxfield in hidpp_get_report_length()
Do not crash when a report has no fields.
Fake USB gadgets can send their own HID report descriptors and can define report
structures without valid fields. This can be used to crash the kernel over USB.
Cc: stable@vger.kernel.org
Signed-off-by: Günther Noack <gnoack@google.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>1 parent cee8337 commit 1547d41
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4314 | 4314 | | |
4315 | 4315 | | |
4316 | 4316 | | |
4317 | | - | |
| 4317 | + | |
4318 | 4318 | | |
4319 | 4319 | | |
4320 | 4320 | | |
| |||
0 commit comments