Description
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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
7a1d220ccb0cc2b808eb176fb05bf55a38179f3f to < 02b88fa993582b4fe228b4143b330b0bb9f28353affected7a1d220ccb0cc2b808eb176fb05bf55a38179f3f to < 165ef777ec6f634a5e4b8d9b0dadca8ef91fa90eaffected7a1d220ccb0cc2b808eb176fb05bf55a38179f3f to < bed1fc32e0eb653806fa98afcf55f9a311fc4ce2affected7a1d220ccb0cc2b808eb176fb05bf55a38179f3f to < b0b66aae8a94c3663d47e4000b0e81b89ce32186affected7a1d220ccb0cc2b808eb176fb05bf55a38179f3f to < 873e919e3101063a7a75989510ccfc125a4391cfaffected
Linux Linux
Default version status: affected
5.3affected0 to < 5.3unaffected6.6.160 to ≤ 6.6.*unaffected6.12.114 to ≤ 6.12.*unaffected6.18.34 to ≤ 6.18.*unaffected7.0.11 to ≤ 7.0.*unaffected7.1 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/02b88fa993582b4fe228b4143b330b0bb9f28353 ↗
- https://git.kernel.org/stable/c/165ef777ec6f634a5e4b8d9b0dadca8ef91fa90e ↗
- https://git.kernel.org/stable/c/bed1fc32e0eb653806fa98afcf55f9a311fc4ce2 ↗
- https://git.kernel.org/stable/c/b0b66aae8a94c3663d47e4000b0e81b89ce32186 ↗
- https://git.kernel.org/stable/c/873e919e3101063a7a75989510ccfc125a4391cf ↗