В ядре Linux устранена следующая уязвимость:
wifi: rtw89: chan: исправить мягкую зависание в rtw89_entity_recalc_mgnt_roles()
Во время rtw89_entity_recalc_mgnt_roles() происходит процесс нормализации.
который изменит порядок списка, если будет найдена запись с целевым шаблоном. И как только он будет найден, следует прервать list_for_each_entry. Но,
`break` просто прервал внутренний цикл for.
Внешний list_for_each_entry
все еще продолжается. Обычно только первая запись соответствует цели.
шаблон, и переупорядочение ничего не изменит, поэтому не будет
мягкая блокировка. Однако в некоторых особых случаях может произойти мягкая блокировка.
Исправьте это с помощью `goto fill`, чтобы выйти из list_for_each_entry. Ниже приведен образец журнала ядра для решения этой проблемы.
сторожевой таймер: ОШИБКА: мягкая блокировка — ЦП №1 завис на 26 секунд! [wpa_supplicant:2055]
[...]
RIP: 0010:rtw89_entity_recalc ([...] chan.c:392 chan.c:479) rtw89_core
[...]
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: wifi: rtw89: chan: fix soft lockup in rtw89_entity_recalc_mgnt_roles() During rtw89_entity_recalc_mgnt_roles(), there is a normalizing process which will re-order the list if an entry with target pattern is found. And once one is found, should have aborted the list_for_each_entry. But, `break` just aborted the inner for-loop. The outer list_for_each_entry still continues. Normally, only the first entry will match the target pattern, and the re-ordering will change nothing, so there won't be soft lockup. However, in some special cases, soft lockup would happen. Fix it by `goto fill` to break from the list_for_each_entry. The following is a sample of kernel log for this problem. watchdog: BUG: soft lockup - CPU#1 stuck for 26s! [wpa_supplicant:2055] [...] RIP: 0010:rtw89_entity_recalc ([...] chan.c:392 chan.c:479) rtw89_core [...]
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 1
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.13.2
|