Commit 1bf1822
committed
HID: core: zero-initialize the report buffer
jira VULN-40845
cve CVE-2024-50302
commit-author Jiri Kosina <[email protected]>
commit 177f25d
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: 27ce405 ("HID: fix data access in implement()")
Reported-by: Benoît Sevens <[email protected]>
Acked-by: Benjamin Tissoires <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
(cherry picked from commit 177f25d)
Signed-off-by: Brett Mastbergen <[email protected]>1 parent ceb2c93 commit 1bf1822
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1353 | 1353 | | |
1354 | 1354 | | |
1355 | 1355 | | |
1356 | | - | |
| 1356 | + | |
1357 | 1357 | | |
1358 | 1358 | | |
1359 | 1359 | | |
| |||
0 commit comments