hwmon: (corsair-cpro) Remove debugfs entries when probe fails
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel fdc1bc23ff59ee308042342cefcb918d6efba409, Kernel 4ee875c423c66c45d7ef7bbff403cd0e3971e0a2, Kernel a5de53b08cc319dadce6fb68d33749ea37962952 and 4 more.
In the Linux kernel, the following vulnerability has been resolved: hwmon: (corsair-cpro) Remove debugfs entries when probe fails ccp_debugfs_init() registers debugfs files whose private data is the devm allocated ccp. If hwmon_device_register_with_info() fails right after it, ccp_probe() returns without removing them: the HID core then frees ccp, and ccp_remove() is not called for a failed probe, so the files stay behind. Reading one of them dereferences the freed pointer. Remove the debugfs entries on that error path. debugfs_remove_recursive() waits for readers already inside the show callbacks, so ccp is no longer reachable through debugfs by the time probe returns.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=5997eb60f896830126bc1783465b678b110e2fdd <fdc1bc23ff59ee308042342cefcb918d6efba409, >=5997eb60f896830126bc1783465b678b110e2fdd <4ee875c423c66c45d7ef7bbff403cd0e3971e0a2, >=5997eb60f896830126bc1783465b678b110e2fdd <a5de53b08cc319dadce6fb68d33749ea37962952, >=5997eb60f896830126bc1783465b678b110e2fdd <ae01aafd8214e48cb7eff11e92dfbf3778d52d9d, =6.11 | fdc1bc23ff59ee308042342cefcb918d6efba409, 4ee875c423c66c45d7ef7bbff403cd0e3971e0a2, a5de53b08cc319dadce6fb68d33749ea37962952, ae01aafd8214e48cb7eff11e92dfbf3778d52d9d |
| linux-kernel: Kernel | >=6.13.0 <6.18.53, >=6.19.0 <7.2.7, >=6.11.0 <6.12.111 | 6.18.53, 7.2.7, 6.12.111 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket