В ядре Linux устранена следующая уязвимость:
Bluetooth: hci_sync: избегайте использования после освобождения в dbg для hci_remove_adv_monitor()
KASAN сообщает, что в
hci_remove_adv_monitor(). Пролистав разборку, можно
видите, что жалоба связана с доступом в bt_dev_dbg() под
Случай HCI_ADV_MONITOR_EXT_MSFT. Проблемный случай происходит потому, что
msft_remove_monitor() может в конечном итоге освободить монитор
структура.
В частности:
hci_remove_adv_monitor() ->
msft_remove_monitor() ->
msft_remove_monitor_sync() ->
msft_le_cancel_monitor_advertisement_cb() ->
hci_free_adv_monitor()
Давайте решим проблему, просто спрятав соответствующие данные, когда они
все еще действителен.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_sync: Avoid use-after-free in dbg for hci_remove_adv_monitor() KASAN reports that there's a use-after-free in hci_remove_adv_monitor(). Trawling through the disassembly, you can see that the complaint is from the access in bt_dev_dbg() under the HCI_ADV_MONITOR_EXT_MSFT case. The problem case happens because msft_remove_monitor() can end up freeing the monitor structure. Specifically: hci_remove_adv_monitor() -> msft_remove_monitor() -> msft_remove_monitor_sync() -> msft_le_cancel_monitor_advertisement_cb() -> hci_free_adv_monitor() Let's fix the problem by just stashing the relevant data when it's still valid.
Характеристики атаки
Последствия
Строка CVSS v3.1