В ядре Linux была устранена следующая уязвимость: wifi: ath9k: задержка всего ath9k_wmi_event_tasklet() до тех пор, пока init не станет полным The ath9k_wmi_event_tasklet(), используемым в ath9k_htc, предполагает, что все структуры данных были полностью инициализированы к моменту его запуска. Однако из-за порядка инициализации это не гарантируется, поскольку устройство подвергается воздействию подсистемы USB до завершения инициализации драйвера ath9k. Мы уже сделали частичное исправление для этого в commit: 8b3046abc99e ("ath9k_htc: исправить удаление указателя NULL в ath9k_htc_tx_get_packet()") However, который совершает только прерывание команды WMI_TXSTATUS_EVENTID в наборе задач события, соединяя его с битом «initialization complete» в struct TX.
Похоже, что Syzbot также удалось запустить гонку для одной из других команд, поэтому давайте просто переместим существующий бит синхронизации, чтобы покрыть весь набор задач (установив его в конце ath9k_htc_probe_device (), а не внутри ath9k_tx_init ()).
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: wifi: ath9k: delay all of ath9k_wmi_event_tasklet() until init is complete The ath9k_wmi_event_tasklet() used in ath9k_htc assumes that all the data structures have been fully initialised by the time it runs. However, because of the order in which things are initialised, this is not guaranteed to be the case, because the device is exposed to the USB subsystem before the ath9k driver initialisation is completed. We already committed a partial fix for this in commit: 8b3046abc99e ("ath9k_htc: fix NULL pointer dereference at ath9k_htc_tx_get_packet()") However, that commit only aborted the WMI_TXSTATUS_EVENTID command in the event tasklet, pairing it with an "initialisation complete" bit in the TX struct. It seems syzbot managed to trigger the race for one of the other commands as well, so let's just move the existing synchronisation bit to cover the whole tasklet (setting it at the end of ath9k_htc_probe_device() instead of inside ath9k_tx_init()).
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.10.136
|
5.10.214
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.15.17
|
5.15.153
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16.3
|
6.1.83
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.23
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.7.11
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.8
|
6.8.2
|
|
Debian Debian_Linux
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
|
— | — |