Ad

CVE-2026-99012

HIGH CVSS 3.1: 7,8 EPSS 0.16%
Обновлено 30 октября 2026
Linux
Параметр Значение
CVSS 7,8 (HIGH)
Поставщик Linux
Публичный эксплойт Нет

В ядре Linux устранена следующая уязвимость: Bluetooth: ISO: Serialize concurrent connect calls iso_sock_connect() проверяет состояние сокета перед взятием замка сокета и снова сбрасывает замок перед настройкой соединения. Два абонента могут пройти проверку приема, пока розетка открыта или связана. Вызывающее устройство A может скопировать пункт назначения для выбора маршрута, затем вызывающее устройство B может заменить пункт назначения сокета до того, как A привязывает или соединяет CIS.

Затем A использует пункт назначения B с маршрутом, выбранным по его собственному запросу. B также может продолжить после того, как A присоединяет соединение и устанавливает BT_CONNECT. Для отложенной установки BIS B может связать второй BIS и перезаписать iso_pi(sk)->conn, оставив ссылку на первое соединение и задний указатель conn->sk.

Одновременные соединения CIS также могут заменить соединение сокета. Более поздний разрыв только отсоединяет текущее соединение, поэтому обратный звонок на старом соединении может участвовать в гонке с выпуском сокета и получить доступ к освобожденному сокету. KASAN сообщил: BUG: KASAN: slab-use-after-free в iso_sock_hold+0xf7/0x1b0 Call Trace: iso_sock_hold+0xf7/0x1b0 iso_conn_del+0x7b/0x1d0 iso_connect_cfm+0x186/0x16a0 hci_conn_failed+0x154/0x280 hci_abort_conn_sync+0x3dc/0x7d0 hci_cmd_sync_work+0x173/0x300 Allocated по заданию 121: sk_alloc+0x2b/0x6d0 bt_sock_alloc+0x29/0x370 iso_sock_alloc.constprop.0+0x19/0x300 iso_sock_create+0x94/0x100 Freed по заданию 121: kfree+0x121/0x3c0 __sk_destruct+0x42b/0x540 iso_sock_release+0x29d/0x340 __sock_release+0xa1/0x260 Check допуск под замком сокета и отметьте выполняемую операцию подключения перед публикацией его назначения. Держите этот флажок установленным во время поиска маршрута и настройки соединения, отвергая другое соединение с -EBADFD, прежде чем оно сможет изменить назначение или подключить соединение.

Очистить флаг после возвращения любого помощника, в том числе при сбое, так что неудачная установка может быть повторена. Отдельный флаг необходим, потому что блокировка сокета должна быть освобождена до получения блокировки устройства HCI, в то время как BT_CONNECT требует подключенного соединения. Сохранить существующие переходы состояний и отложенное завершение CIS через iso_sock_recvmsg().

Отклоните существующее вложение сокета в __iso_chan_add(), прежде чем принимать новую ссылку или публиковать любой указатель, поэтому каждый вызываемый абонент сохраняет соединение. Сохраняйте тот же сокет, тот же случай успеха подключения для отложенной установки CIS. Отклоните подключенный сокет перед установкой BIS, чтобы многоразовый BIS не требовался до отклонения вложения.

В настройке CIS отклоните другое соединение HCI до того, как iso_conn_add () и откажитесь от удержания HCI за попытку. An unowned iso_conn may still carry another reference after detachment, so its destruction cannot be relied on to release that hold. iso_listen_bis() creates a fresh PA HCI/ISO pair under the device lock, so the temporary iso_conn_put() frees the ISO candidate and drops its HCI hold on rejection. iso_conn_ready() uses a freshly allocated, unpublished child with no connection, making the socket-side rejection unreachable.

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

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: ISO: Serialize concurrent connect calls iso_sock_connect() checks the socket state before taking the socket lock and drops the lock again before setting up a connection. Two callers can both pass the admission check while the socket is open or bound. Caller A can copy its destination for route selection, then caller B can replace the socket destination before A binds or connects the CIS. A then uses B's destination with the route selected for its own request. B can also proceed after A attaches a connection and sets BT_CONNECT. For deferred BIS setup, B can bind a second BIS and overwrite iso_pi(sk)->conn, leaving the first connection's reference and conn->sk back-pointer stranded. Concurrent CIS connects can likewise replace the socket's connection. Later teardown only detaches the current connection, so a callback on the old connection can race with socket release and access a freed socket. KASAN reported: BUG: KASAN: slab-use-after-free in iso_sock_hold+0xf7/0x1b0 Call Trace: iso_sock_hold+0xf7/0x1b0 iso_conn_del+0x7b/0x1d0 iso_connect_cfm+0x186/0x16a0 hci_conn_failed+0x154/0x280 hci_abort_conn_sync+0x3dc/0x7d0 hci_cmd_sync_work+0x173/0x300 Allocated by task 121: sk_alloc+0x2b/0x6d0 bt_sock_alloc+0x29/0x370 iso_sock_alloc.constprop.0+0x19/0x300 iso_sock_create+0x94/0x100 Freed by task 121: kfree+0x121/0x3c0 __sk_destruct+0x42b/0x540 iso_sock_release+0x29d/0x340 __sock_release+0xa1/0x260 Check admission under the socket lock and mark the connect operation in progress before publishing its destination. Keep that flag set across route lookup and connection setup, rejecting another connect with -EBADFD before it can change the destination or attach a connection. Clear the flag after either helper returns, including on failure, so a failed setup can be retried. A separate flag is needed because the socket lock must be released before acquiring the HCI device lock, while BT_CONNECT requires an attached connection. Keep the existing state transitions and the deferred CIS completion through iso_sock_recvmsg(). Reject an existing socket attachment in __iso_chan_add() before taking a new reference or publishing either pointer, so every caller preserves the connection association. Keep the same-socket, same-connection success case for deferred CIS setup. Reject an attached socket before BIS setup so a reusable BIS is not claimed before the attachment is rejected. In CIS setup, reject a different HCI connection before iso_conn_add() and drop the per-attempt HCI hold directly. An unowned iso_conn may still carry another reference after detachment, so its destruction cannot be relied on to release that hold. iso_listen_bis() creates a fresh PA HCI/ISO pair under the device lock, so the temporary iso_conn_put() frees the ISO candidate and drops its HCI hold on rejection. iso_conn_ready() uses a freshly allocated, unpublished child with no connection, making the socket-side rejection unreachable.

Характеристики атаки

Способ атаки
Локальный
Нужен локальный доступ
Сложность
Низкая
Легко эксплуатировать
Нужны права
Низкие
Нужны базовые права
Участие пользователя
Не требуется
Не нужно действие пользователя

Последствия

Конфиденциальность
Высокое
Полная утечка данных
Целостность
Высокое
Полная модификация данных
Доступность
Высокое
Полный отказ в обслуживании

Строка CVSS v3.1