В ядре Linux устранена следующая уязвимость: wifi: mt76: mt7915: отключить rx napi При удалении устройства Unloading модуль mt7915e с помощью MT7916 запускает множители WARN в __netif_napi_del_locked() и в page_pool_disable_direct_recycling(), так как драйвер не отключает napi до его уничтожения. Это проблематично, так как на MT7916 требуется выгрузить модуль и повторно вставить его с другим параметром enable_6ghz для изменения частоты. Система обычно становится нестабильной после повторной установки модуля.
Исправьте это, отключив rx napi внутри самого mt7915e, даже через napi rx включен в общем коде mt76. Ранее была предпринята попытка отключить его в общем коде mt76, поскольку напи был отключен слишком поздно, и обработчики rx могли получить доступ к свободным структурам. Обратите внимание, что сторона tx включается и отключается общим кодом mt76.
Он отключен в mt7915_stop_hardware(), так как, в отличие от mt7915_unregister_device(), он также вызывается в пути зонда, если ошибка происходит после включения rx napi.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: mt7915: disable rx napi when removing device Unloading the mt7915e module with a MT7916 triggers multiples WARN in __netif_napi_del_locked() and in page_pool_disable_direct_recycling() because the driver does not disable the napi before destroying it. This is troublesome since on MT7916 it is required to unload the module and reinsert it with a different enable_6ghz parameter to change the frequency. The system generally becomes unstable after reinserting the module. Fix it by disabling rx napi inside mt7915e itself, even through napi rx is enabled in the mt76 generic code. Disabling it in the mt76 generic code was previously attempted and reverted because napi was disabled too late and rx handlers could access freed structures. Note that the tx side is enabled and disabled by the mt76 generic code. It is disabled in mt7915_stop_hardware() since, unlike mt7915_unregister_device(), is it also called in the probe path if an error happens after rx napi is enabled.
Уязвимые продукты 4
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.8
|
6.12.113
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.8
|
6.18.57
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.8
|
7.2.11
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.8
|
7.3
|