Commit 64d039ae authored by Anirudh Rayabharam's avatar Anirudh Rayabharam Committed by Zhao Wenhui
Browse files

HID: usbhid: free raw_report buffers in usbhid_stop

mainline inclusion
from mainline-v5.15-rc1
commit f7744fa1
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9R4NP
CVE: CVE-2021-47405

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f7744fa16b96da57187dc8e5634152d3b63d72de

--------------------------------

Free the unsent raw_report buffers when the device is removed.

Fixes a memory leak reported by syzbot at:
https://syzkaller.appspot.com/bug?id=7b4fa7cb1a7c2d3342a2a8a6c53371c8c418ab47



Reported-by: default avatar <syzbot+47b26cd837ececfc666d@syzkaller.appspotmail.com>
Tested-by: default avatar <syzbot+47b26cd837ececfc666d@syzkaller.appspotmail.com>
Signed-off-by: default avatarAnirudh Rayabharam <mail@anirudhrb.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
Signed-off-by: default avatarZhao Wenhui <zhaowenhui8@huawei.com>
parent 505199cb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment