В ядре Linux устранена следующая уязвимость:
igc: удалить napi_synchronize() в igc_down()
При внезапном завершении работы приложения с нулевым копированием AF_XDP пул XSK
снесен, но NAPI продолжает опрос. igc_clean_rx_irq_zc() затем возвращает
полный бюджет в каждом опросе, поэтому napi_complete_done() никогда не очищается
NAPI_STATE_SCHED.
igc_down() вызывает napi_synchronize() перед napi_disable(), поэтому он вращается
вечно ожидая этого бита, и интерфейс никогда не отключается. Отбросьте
napi_synchronize() и позвольте napi_disable() выполнить всю работу — он устанавливает
NAPI_STATE_DISABLE, что приводит к завершению зависшего опроса. Изменить порядок
перед igc_set_queue_napi(), поэтому сопоставление NAPI очищается только после
опрос остановлен, что соответствует недавнему исправлению igb b1e067240379.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: igc: remove napi_synchronize() in igc_down() When an AF_XDP zero-copy application is killed abruptly, the XSK pool is torn down but NAPI keeps polling. igc_clean_rx_irq_zc() then returns the full budget on every poll, so napi_complete_done() never clears NAPI_STATE_SCHED. igc_down() calls napi_synchronize() before napi_disable(), so it spins forever waiting for that bit and the interface never goes down. Drop the napi_synchronize() and let napi_disable() do the job -- it sets NAPI_STATE_DISABLE, which forces the stuck poll to complete. Reorder it ahead of igc_set_queue_napi() so the NAPI mapping is cleared only after polling has stopped, matching the recent igb fix b1e067240379.
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.14
|
5.15.217
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.14
|
6.1.184
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.14
|
6.6.153
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.14
|
6.12.105
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.14
|
6.18.44
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.14
|
7.1.8
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.14
|
7.2
|