Activity log
- Created & dismissed (max. allowed matches exceeded) suggestion
hwmon: (lm90) Add lock protection to lm90_alert
In the Linux kernel, the following vulnerability has been resolved: hwmon: (lm90) Add lock protection to lm90_alert Sashiko reports: lm90_alert() executes in the smbus alert context and calls lm90_update_confreg() to disable the hardware alert line, without acquiring hwmon_lock. Concurrently, sysfs write operations (such as lm90_write_convrate) hold the hwmon_lock, temporarily modify data->config, and then restore it. If an alert interrupt occurs concurrently with a sysfs write, the sysfs path will overwrite the alert handler's modifications to data->config and the hardware register. This unintentionally re-enables the hardware alert line while the alarm is still active, causing an interrupt storm. Add the missing lock to lm90_alert() to solve the problem.
References
Affected products
- <5.3
- <bed1fc32e0eb653806fa98afcf55f9a311fc4ce2
- =<6.18.*
- ==5.3
- <873e919e3101063a7a75989510ccfc125a4391cf
- =<7.0.*
- =<*
- <b0b66aae8a94c3663d47e4000b0e81b89ce32186