В ядре Linux устранена следующая уязвимость:
hwmon: (adt7470) Исправление цикла занятости и переполнения I2C в потоке обновлений. Когда пользовательское пространство настраивает «auto_update_interval» на 0 через sysfs,
фоновый kthread выполняет Schedule_timeout_interruptible(0), который
возвращается немедленно. Если параметр num_temp_sensors одновременно или ранее установлен в 0,
Задержка msleep_interruptible() внутри adt7470_read_temperatures() также
становится равным 0.
Эта комбинация приводит к тому, что фоновый поток становится тугим,
неограниченный цикл занятости, перегружающий процессор и заполняющий шину I2C
непрерывный поток транзакций. Устраните эту уязвимость, подняв нижний предел зажима_val в
auto_update_interval_store() от 0 до 500 миллисекунд. Это гарантирует
разумное минимальное окно сна между обновлениями датчиков, защищающее
система от преднамеренного или случайного отказа в обслуживании шины I2C.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: hwmon: (adt7470) Fix busy-loop and I2C flooding in update thread When userspace configures 'auto_update_interval' to 0 via sysfs, the background kthread executes schedule_timeout_interruptible(0), which returns immediately. If 'num_temp_sensors' is concurrently or previously set to 0, the msleep_interruptible() delay inside adt7470_read_temperatures() also becomes 0. This combination forces the background thread into a tight, unbounded busy-loop, hogging the CPU and flooding the I2C bus with a continuous stream of transactions. Fix this vulnerability by raising the lower limit of the clamp_val in auto_update_interval_store() from 0 to 500 milliseconds. This guarantees a reasonable minimum sleep window between sensor updates, protecting the system from intentional or accidental I2C bus denial of service.