hwmon: Fix potential UAF in pec_store
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 01dd8b4fc2cf83c66565c0f382fb1841e9000a89, Kernel 354ccc99b2dc8ba0cf6d4de34e520bcf6ecca5c2 and Kernel 8afab57bcdbc2186f325972e777880ac5a220f4f.
In the Linux kernel, the following vulnerability has been resolved: hwmon: Fix potential UAF in pec_store Sashiko reports: In pec_store(), a guard(mutex)(&hwdev->lock) is taken. If the chip write operation returns an error other than -EOPNOTSUPP, the code jumps to the put label, which calls put_device(hdev). If this drops the final reference, the device is freed. When the function then returns, the guard cleanup function runs and attempts to unlock the freed mutex. Use scoped_guard() instead of guard() to avoid the problem.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.18, >=3ad2a7b9b15d5072139a20be84adb36776eb6c9b <01dd8b4fc2cf83c66565c0f382fb1841e9000a89, >=3ad2a7b9b15d5072139a20be84adb36776eb6c9b <354ccc99b2dc8ba0cf6d4de34e520bcf6ecca5c2, >=3ad2a7b9b15d5072139a20be84adb36776eb6c9b <8afab57bcdbc2186f325972e777880ac5a220f4f | 01dd8b4fc2cf83c66565c0f382fb1841e9000a89, 354ccc99b2dc8ba0cf6d4de34e520bcf6ecca5c2, 8afab57bcdbc2186f325972e777880ac5a220f4f |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket