summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2026-07-07 17:52:54 -0700
committerGuenter Roeck <linux@roeck-us.net>2026-07-07 20:02:56 -0700
commit94c87871b051d7ad758828a805215a2ec194512a (patch)
tree9668a8245eca10516f5116f6d6e22860e3f65802 /tools/lib/python
parent9ab8656548cd737b98d0b19c4253aff8d68e97f4 (diff)
hwmon: (corsair-cpro) Stop device IO before calling hid_hw_stop
Calling hid_hw_stop() does not stop the device IO. This results in a race condition between hid_input_report() and the point immediately following the execution of hid_device_io_start() within the driver probe function. If the probe operation fails after "io start" has been initiated, this race condition will result in a UAF vulnerability. Fix the problem by calling hid_device_io_stop() before calling hid_hw_stop(). Reported-by: Sashiko <sashiko-bot@kernel.org> Fixes: 40c3a44542257 ("hwmon: add Corsair Commander Pro driver") Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions