Ad

CVE-2026-98632

NONE EPSS 0.17%
Обновлено 19 октября 2026
Linux
Параметр Значение
Поставщик Linux
Публичный эксплойт Нет

В ядре Linux устранена следующая уязвимость: Bluetooth: mgmt: Dequeue в ожидании записей mesh_send_sync об отмене In send_cancel(), в ожидании объекты mesh_tx удаляются из списка hdev->mesh_pending и освобождаются через mesh_send_complete(). Однако, если ячеистая передача уже была поставлена в очередь на hdev->cmd_sync_work_list через mesh_next(), то запись в очереди сохраняет необработанный указатель на mesh_tx. Когда hci_cmd_sync_work позже обрабатывает запись, он пытается выполнить mesh_send_sync и его уничтожить обратный вызов mesh_send_start_complete, используя уже освобожденный указатель mesh_tx, что приводит к use-after-free.

Исправьте это, вызвав hci_cmd_sync_dequeue() for mesh_send_sync на целевом mesh_tx перед его завершением. Если запись найдена и декьюирована, ее уничтожающий вызов завершит и освободит объект; в противном случае mesh_send_complete() вызывается напрямую. Кроме того, убедитесь, что очередь передачи авансов после отмены или ошибок.

В mesh_send_start_complete() вызовите mesh_next() по ошибке, если ошибка -ECANCLED, потому что hci_cmd_sync_dequeue() удерживает hdev->cmd_sync_work_lock и вызов mesh_next() синхронно приведет к тупику. Вместо этого, перейдите в очередь в send_cancel (), как только блокировка будет освобождена, и если передача не выполняется.

Показать оригинальное описание (EN)

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: mgmt: Dequeue pending mesh_send_sync entries on cancel In send_cancel(), pending mesh_tx objects are removed from the hdev->mesh_pending list and freed via mesh_send_complete(). However, if a mesh transmission was already queued onto hdev->cmd_sync_work_list via mesh_next(), the queued entry retains a raw pointer to mesh_tx. When hci_cmd_sync_work later processes the entry, it attempts to execute mesh_send_sync and its destroy callback mesh_send_start_complete using the already freed mesh_tx pointer, leading to a use-after-free. Fix this by invoking hci_cmd_sync_dequeue() for mesh_send_sync on the target mesh_tx before completing it. If the entry is found and dequeued, its destroy callback will complete and free the object; otherwise, mesh_send_complete() is called directly. Additionally, ensure the transmission queue advances after cancellation or errors. In mesh_send_start_complete(), call mesh_next() on error unless err is -ECANCELED, because hci_cmd_sync_dequeue() holds hdev->cmd_sync_work_lock and calling mesh_next() synchronously would deadlock. Instead, advance the queue in send_cancel() once the lock is released and if no transmission is in progress.