tag | cc073ce619ce5489c40867d9e330318d68efe7b4 | |
---|---|---|
tagger | Jiri Kosina <jkosina@suse.com> | Tue Nov 05 13:09:13 2024 +0100 |
object | 177f25d1292c7e16e1199b39c85480f7f8815552 |
hid-for-linus-20241105
commit | 177f25d1292c7e16e1199b39c85480f7f8815552 | [log] [tgz] |
---|---|---|
author | Jiri Kosina <jkosina@suse.com> | Tue Oct 29 15:44:35 2024 +0100 |
committer | Jiri Kosina <jkosina@suse.com> | Tue Oct 29 15:44:42 2024 +0100 |
tree | 8e4d283d74a1dc5f6e97afda45d1fb4238de43e3 | |
parent | 51268879eb2bfc563a91cdce69362d9dbf707e7e [diff] |
HID: core: zero-initialize the report buffer Since the report buffer is used by all kinds of drivers in various ways, let's zero-initialize it during allocation to make sure that it can't be ever used to leak kernel memory via specially-crafted report. Fixes: 27ce405039bf ("HID: fix data access in implement()") Reported-by: BenoƮt Sevens <bsevens@google.com> Acked-by: Benjamin Tissoires <bentiss@kernel.org> Signed-off-by: Jiri Kosina <jkosina@suse.com>