hwmon: (corsair-cpro) Stop device IO before calling hid_hw_stop
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 40c3a445422579db8ad96c234dbe6c0ab3f6b936 · < 56d2deb6448378118dbe68c4fbb3fbae5f65b18c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
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().
From the CVE record · Linux
The Linux kernel's corsair-cpro hwmon driver can hit a use-after-free if device probing fails after device I/O starts, due to a race with HID input reporting. The input does not establish how an attacker could trigger the race or whether network access, authentication, or user interaction is required.
Anyone running a Linux kernel with the corsair-cpro hwmon driver should check their version; affected versions are not specified.