В ядре Linux устранена следующая уязвимость: firewire: core: fix race condition in split transaction Для сплит-транзакции fw_core_handle_response() или split_transaction_timeout_callback() могут манипулировать одной и той же записью транзакции в списке ожидающих транзакции. Возвращаемое значение timer_delete() используется для определения, какая функция обрабатывает запись. Если транзакция является сплит-транзакцией и timer_delete() возвращает ноль, то тайм-аут-обратный звонок, возможно, уже запущен.
В этом случае обработчик ответа должен оставить запись в списке для обратного вызова таймаута для удаления. Предыдущий рефакторинг кода нарушил это поведение, введя условие гонки, в котором обе функции могли обрабатывать одну и ту же транзакцию. Это может привести к use-after-free на стороне инициатора транзакции.
Исправьте регрессию, убедившись, что обработчик ответа не обрабатывает транзакцию, когда timer_delete () возвращает ноль. Обратный вызов таймаут отвечает за удаление записи из списка ожидающих транзакций.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: firewire: core: fix race condition in split transaction handling For a split transaction, either fw_core_handle_response() or split_transaction_timeout_callback() may manipulate the same transaction entry in the pending transaction list. The return value of timer_delete() is used to determine which function handles the entry. If the transaction is a split transaction and timer_delete() returns zero, the timeout callback may already be running. In this case, the response handler must leave the entry in the list for the timeout callback to remove. A previous code refactoring broke this behavior, introducing a race condition in which both functions could process the same transaction. This could lead to a use-after-free on the transaction initiator side. Fix the regression by ensuring that the response handler does not process the transaction when timer_delete() returns zero. The timeout callback is responsible for removing the entry from the pending transaction list.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 2
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.2.13
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.3
|