diff options
author | 2025-08-13 19:30:22 +0900 | |
---|---|---|
committer | 2025-08-13 13:12:51 +0200 | |
commit | 185c926283da67a72df20a63a5046b3b4631b7d9 (patch) | |
tree | 2f05b47fb2997662817eeac1891164b182ea99bc /tools/perf/scripts/python | |
parent | HID: asus: fix UAF via HID_CLAIMED_INPUT validation (diff) | |
download | wireguard-linux-185c926283da67a72df20a63a5046b3b4631b7d9.tar.xz wireguard-linux-185c926283da67a72df20a63a5046b3b4631b7d9.zip |
HID: hid-ntrig: fix unable to handle page fault in ntrig_report_version()
in ntrig_report_version(), hdev parameter passed from hid_probe().
sending descriptor to /dev/uhid can make hdev->dev.parent->parent to null
if hdev->dev.parent->parent is null, usb_dev has
invalid address(0xffffffffffffff58) that hid_to_usb_dev(hdev) returned
when usb_rcvctrlpipe() use usb_dev,it trigger
page fault error for address(0xffffffffffffff58)
add null check logic to ntrig_report_version()
before calling hid_to_usb_dev()
Signed-off-by: Minjong Kim <minbell.kim@samsung.com>
Link: https://patch.msgid.link/20250813-hid-ntrig-page-fault-fix-v2-1-f98581f35106@samsung.com
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions