diff options
author | Ma Ke <[email protected]> | 2023-09-18 10:40:59 +0800 |
---|---|---|
committer | Jiri Kosina <[email protected]> | 2023-09-18 17:13:01 +0200 |
commit | ffe3b7837a2bb421df84d0177481db9f52c93a71 (patch) | |
tree | fb997d77650d9caab0b302004d92035024f26bbb /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 058574879853260a22bbec1f94221dfc5149d85c (diff) |
HID: holtek: fix slab-out-of-bounds Write in holtek_kbd_input_event
There is a slab-out-of-bounds Write bug in hid-holtek-kbd driver.
The problem is the driver assumes the device must have an input
but some malicious devices violate this assumption.
Fix this by checking hid_device's input is non-empty before its usage.
Signed-off-by: Ma Ke <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions