Commit b74bf7d
HID: logitech-hidpp: Check maxfield in hidpp_get_report_length()
[ Upstream commit 1547d41 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 3f1b21c commit b74bf7d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4339 | 4339 | | |
4340 | 4340 | | |
4341 | 4341 | | |
4342 | | - | |
| 4342 | + | |
4343 | 4343 | | |
4344 | 4344 | | |
4345 | 4345 | | |
| |||
0 commit comments