Activity log
- Created & dismissed (max. allowed matches exceeded) suggestion
hwmon: (pmbus) Fix passing events to regulator core
In the Linux kernel, the following vulnerability has been resolved: hwmon: (pmbus) Fix passing events to regulator core Sashiko reports: Commit 754bd2b4a084 ("hwmon: (pmbus/core) Protect regulator operations with mutex") introduced a worker to batch regulator events over time using atomic_or(). The delayed worker then passes the combined bitmask unmodified to regulator_notifier_call_chain(). The core regulator subsystem's regulator_handle_critical() function evaluates the event parameter using a strict switch statement. If multiple distinct faults occur before the worker runs (e.g., REGULATOR_EVENT_UNDER_VOLTAGE | REGULATOR_EVENT_OVER_CURRENT), the combined bitmask fails to match any case. This leaves the reason as NULL and completely bypasses the critical hw_protection_trigger(). Fix the problem by passing events bit by bit to the regulator event handler.
References
Affected products
- <b0ff6b6ae9c5183ef701ece7016698bde5a5bfba
- <6.20
- ==2c77ae315f3ce9d2c8e1609be74c9358c1fe4e07
- =<6.6.*
- =<*
- <48fe43666950efefb7ac5fbdc012c1b3604096bf
- <9ef7dacd44216bf5ea05c8aef49eba4d145f4047
- <2106bf4056858fcce3624e0c51f6fee4d41d3f2f
- <6.12.97
- <6.18.40
- ==7.0
- <489291b6b56978cc50d34e8e13f9636ea296ba8a
- <7.0
- =<6.12.*
- =<6.18.*
- =<7.1.*
- <6.6.145