В ядре Linux устранена следующая уязвимость:
регулятор: ядро: предотвратить целочисленное опустошение
Используя отношение задержки к poll_enabled_time, которое не является целым числом.
time_remaining заканчивается и не выходит из цикла, как ожидалось.
Поскольку задержка может быть получена из DT, и определено значение poll_enabled_time.
в драйвере это может легко произойти.
Используйте подписанный итератор, чтобы гарантировать, что цикл завершится один раз.
оставшееся время отрицательно.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: regulator: core: Prevent integer underflow By using a ratio of delay to poll_enabled_time that is not integer time_remaining underflows and does not exit the loop as expected. As delay could be derived from DT and poll_enabled_time is defined in the driver this can easily happen. Use a signed iterator to make sure that the loop exits once the remaining time is negative.