В ядре Linux была устранена следующая уязвимость: RDMA/bng_re: возвращает тайм-аут, когда ответы прошивки останавливают __wait_for_resp(), документирует, что возвращает ненулевую ошибку, когда команда прошивки не выполняется, а bng_re_rcfw_send_message() уже отмечает прошивку как остановленную, когда помощник возвращает -ENODEV. Однако помощник игнорирует экспирацию wait_event_timeout(). Если слот отклика остается в использовании после таймаута и после попытки опроса службы CREQ, цикл запускает еще один полный период таймаута и может повторяться навсегда.
Возвращение - ENODEV после ожидания тайм-аута, которое все еще не имеет ответа. Затем существующий абонент отмечает FIRMWARE_STALL_DETECTED и возвращает -ETIMEDOUT эмитенту команды.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: RDMA/bng_re: return a timeout when firmware responses stall __wait_for_resp() documents that it returns a non-zero error when a firmware command does not complete, and bng_re_rcfw_send_message() already marks the firmware as stalled when the helper returns -ENODEV. However, the helper ignores wait_event_timeout() expiry. If the response slot remains in use after the timeout and after the polled CREQ service attempt, the loop starts another full timeout period and can repeat forever. Return -ENODEV after a timed out wait that still has no response. The existing caller then marks FIRMWARE_STALL_DETECTED and returns -ETIMEDOUT to the command issuer.