]> www.infradead.org Git - users/dwmw2/linux.git/commit
hid: asus: asus_report_fixup: fix potential read out of bounds
authorAndrew Ballance <andrewjballance@gmail.com>
Sun, 2 Jun 2024 08:50:23 +0000 (03:50 -0500)
committerBenjamin Tissoires <bentiss@kernel.org>
Fri, 7 Jun 2024 09:07:40 +0000 (11:07 +0200)
commit89e1ee118d6f0ee6bd6e80d8fe08839875daa241
treeac54c344b51509934bb2bf2fdaef17f336d53730
parent9c8f05cf1d7abd1bfb53cebe691bf3acb7baee99
hid: asus: asus_report_fixup: fix potential read out of bounds

syzbot reported a potential read out of bounds in asus_report_fixup.

this patch adds checks so that a read out of bounds will not occur

Signed-off-by: Andrew Ballance <andrewjballance@gmail.com>
Reported-by: <syzbot+07762f019fd03d01f04c@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=07762f019fd03d01f04c
Fixes: 59d2f5b7392e ("HID: asus: fix more n-key report descriptors if n-key quirked")
Link: https://lore.kernel.org/r/20240602085023.1720492-1-andrewjballance@gmail.com
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
drivers/hid/hid-asus.c