В ядре Linux была устранена следующая уязвимость: sctp: избежать livelock при обновлении пути ретрансляции sctp_assoc_update_retran_path() может петлять вечно, когда каждый оставшийся транспорт, включая retran_path, является SCTP_UNCONFIRMED: проверка состояния выполняется до теста обертки, поэтому цикл не может наблюдать, что он завершил полный проход. Исправьте это, рассматривая транспорт только тогда, когда он не UNCONFIRMED, а затем проверьте, вернулся ли ход в retran_path. Это делает полное завершение независимым от транспортного состояния, сохраняя существующую запасную семантику выбора.
Также восстановите охрану NULL вокруг назначения retran_path. В случае с UNCONFIRMED нет приемлемого транспорта замены, и установка NULL оставила бы более поздних пользователей пути ретрансляции и отладочной печати с путем NULL.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: sctp: avoid livelock while updating retransmit path sctp_assoc_update_retran_path() can loop forever when every remaining transport, including retran_path, is SCTP_UNCONFIRMED: the state check runs before the wraparound test, so the loop cannot observe that it has completed a full pass. Fix this by considering a transport only when it is not UNCONFIRMED, then checking whether the walk has returned to retran_path. This makes the full-pass termination independent of the transport state while preserving the existing fallback selection semantics. Also restore the NULL guard around the retran_path assignment. In the all-UNCONFIRMED case there is no eligible replacement transport, and installing NULL would leave later retransmit-path users and the debug print with a NULL path.