В ядре Linux устранена следующая уязвимость:
wifi: mac80211: исправить двойное освобождение unsol_bcast_probe_resp при ошибке выделения
ieee80211_set_unsol_bcast_probe_resp() вызывает kfree_rcu() на старом
шаблон перед выделением замены. Если kzalloc() завершится неудачно,
он возвращает -ENOMEM, в то время как link->u.ap.unsol_bcast_probe_resp все еще указывает
на объекте, уже поставленном в очередь на освобождение. Более позднее обновление или демонтаж точки доступа.
повторно ставит в очередь тот же самый rcu_head; вторая свободная ловится KASAN, когда
Связка RCU обрабатывается в softirq:
ОШИБКА: KASAN: двойное освобождение в rcu_free_sheaf (mm/slub.c:5850)
Освобожден от адреса ffff88800d06f300 с помощью эксплойта задачи/145.
...
__rcu_free_sheaf_prepare (мм/slub.c:2634 мм/slub.c:2940)
rcu_free_sheaf (мм/slub.c:5850)
rcu_core (ядро/rcu/tree.c:2617 ядро/rcu/tree.c:2869)
handle_softirqs (ядро/softirq.c:622)
Глючный адрес принадлежит кэшу kmalloc-128 размером 128.
Ставьте старый объект в очередь для kfree_rcu() только после публикации нового.
соответствие ieee80211_set_probe_resp() и ieee80211_set_s1g_short_beacon().
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: fix unsol_bcast_probe_resp double free on alloc failure ieee80211_set_unsol_bcast_probe_resp() calls kfree_rcu() on the old template before allocating the replacement. If the kzalloc() then fails, it returns -ENOMEM while link->u.ap.unsol_bcast_probe_resp still points at the object already queued for freeing. A later update or AP teardown re-queues that same rcu_head; the second free is caught by KASAN when the RCU sheaf is processed in softirq: BUG: KASAN: double-free in rcu_free_sheaf (mm/slub.c:5850) Free of addr ffff88800d06f300 by task exploit/145 ... __rcu_free_sheaf_prepare (mm/slub.c:2634 mm/slub.c:2940) rcu_free_sheaf (mm/slub.c:5850) rcu_core (kernel/rcu/tree.c:2617 kernel/rcu/tree.c:2869) handle_softirqs (kernel/softirq.c:622) The buggy address belongs to the cache kmalloc-128 of size 128 Queue the old object for kfree_rcu() only after the new one is published, matching ieee80211_set_probe_resp() and ieee80211_set_s1g_short_beacon().
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.101
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.18.42
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
7.1.6
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
7.2-rc4
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.2:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.2:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.2:rc3:*:*:*:*:*:*
|
— | — |