Linux
hwmon: (pmbus/core) Protect regulator operations with mutex
In the Linux kernel, the following vulnerability has been resolved: hwmon: (pmbus/core) Protect regulator operations with mutex The regulator operations pmbus_regulator_get_voltage(), pmbus_regulator_set_voltage(), and pmbus_regulator_list_voltage() access PMBus registers and shared data but were not protected by the update_lock mutex. This could lead to race conditions. However, adding mutex protection directly to these functions causes a deadlock because pmbus_regulator_notify() (which calls regulator_notifier_call_chain()) is often called with the mutex already held (e.g., from pmbus_fault_handler()). If a regulator callback then calls one of the now-protected voltage functions, it will attempt to acquire the same mutex. Rework pmbus_regulator_notify() to utilize a worker function to send notifications outside of the mutex protection. Events are stored as atomics in a per-page bitmask and processed by the worker. Initialize the worker and its associated data during regulator registration, and ensure it is cancelled on device removal using devm_add_action_or_reset(). While at it, remove the unnecessary include of linux/of.h.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= ddbb4db4ced1ba784fcd3500179a7291b6c5d7b7, < f0c9ea9c3a208e79c812e10e2bcef87b46564f01
- >= ddbb4db4ced1ba784fcd3500179a7291b6c5d7b7, < b26849cffaa7c43355b82e9bef3725e786973a1a
- >= ddbb4db4ced1ba784fcd3500179a7291b6c5d7b7, < acf04e2863132f6d9222f71f3a76fb9782cbe061
- >= ddbb4db4ced1ba784fcd3500179a7291b6c5d7b7, < 4e9d723d9f198b86f6882a84c501ba1f39e8d055
- >= ddbb4db4ced1ba784fcd3500179a7291b6c5d7b7, < 2c77ae315f3ce9d2c8e1609be74c9358c1fe4e07
- >= ddbb4db4ced1ba784fcd3500179a7291b6c5d7b7, < 754bd2b4a084b90b5e7b630e1f423061a9b9b761
Fixed in f0c9ea9c3a208e79c812e10e2bcef87b46564f01, b26849cffaa7c43355b82e9bef3725e786973a1a, acf04e2863132f6d9222f71f3a76fb9782cbe061, 4e9d723d9f198b86f6882a84c501ba1f39e8d055, 2c77ae315f3ce9d2c8e1609be74c9358c1fe4e07, 754bd2b4a084b90b5e7b630e1f423061a9b9b761
- 3.19
Fixed in 0, 6.1.191, 6.6.143, 6.12.92, 6.18.21, 6.19.11, 7.0
Mitigation
Upgrade Linux to f0c9ea9c3a208e79c812e10e2bcef87b46564f01 or b26849cffaa7c43355b82e9bef3725e786973a1a or acf04e2863132f6d9222f71f3a76fb9782cbe061 or 4e9d723d9f198b86f6882a84c501ba1f39e8d055 or 2c77ae315f3ce9d2c8e1609be74c9358c1fe4e07 or 754bd2b4a084b90b5e7b630e1f423061a9b9b761 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.143 or 6.12.92 or 6.18.21 or 6.19.11 or 7.0 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.