В ядре Linux устранена следующая уязвимость:
enic: исправлено использование tx_hang_reset после освобождения при удалении устройства.
enic_remove() отменяет элементы сброса и изменения_mtu_work, но не
отменить tx_hang_reset. Тайм-аут передачи, который срабатывает, пока устройство находится в режиме ожидания. Remove может запланировать enic_tx_hang_reset() так, чтобы он запускался после
free_netdev(), что приводит к использованию после освобождения.
Одной функции cancel_work_sync() здесь недостаточно: все еще работающий сторожевой таймер
и пути уведомления могут перепланировать эти рабочие элементы в окне между
отмены и unregister_netdev(). Используйте Disable_work_sync(), который
отменяет работу и блокирует любую последующую Schedule_work() от
запросив его и применив его к элементам сброса и изменения_mtu_work как
ну так та же гонка заявок закрыта на все демонтажные работы.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: enic: fix tx_hang_reset use-after-free on device removal enic_remove() cancels the reset and change_mtu_work items but does not cancel tx_hang_reset. A TX timeout that fires while the device is being removed can schedule enic_tx_hang_reset() so that it runs after free_netdev(), resulting in a use-after-free. cancel_work_sync() alone is not sufficient here: the still-live watchdog and notify paths can re-schedule these work items in the window between the cancel and unregister_netdev(). Use disable_work_sync(), which cancels the work and blocks any subsequent schedule_work() from requeuing it, and apply it to the reset and change_mtu_work items as well so the same requeue race is closed for all teardown work.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 4
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.4
|
6.12.104
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.4
|
6.18.45
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.4
|
7.1.9
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.4
|
7.2
|