8.8high
Bluetooth: hci_core: lookup hci_conn on RX path on protocol side
- Severity
- 8.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.25% (higher than 17% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_core: lookup hci_conn on RX path on protocol side The hdev lock/lookup/unlock/use pattern in the packet RX path doesn't ensure hci_conn* is not concurrently modified/deleted. This locking appears to be leftover from before conn_hash started using RCU commit bf4c63252490b ("Bluetooth: convert conn hash to RCU") and not clear if it had purpose since then. Currently, there are code paths that delete hci_conn* from elsewhere than the ordered hdev->workqueue where the RX work runs in. E.g. commit 5af1f84ed13a ("Bluetooth: hci_sync: Fix UAF on hci_abort_conn_sync") introduced some of these, and there probably were a few others before it. It's better to do the locking so that even if these run concurrently no UAF is possible. Move the lookup of hci_conn and associated socket-specific conn to protocol recv handlers, and do them within a single critical section to cover hci_conn* usage and lookup. syzkaller has reported a crash that appears to be this issue: [Task hdev->workqueue] [Task 2] hci_disconnect_all_sync l2cap_recv_acldata(hcon) hci_conn_get(hcon) hci_abort_conn_sync(hcon) hci_dev_lock hci_dev_lock hci_conn_del(hcon) v-------------------------------- hci_dev_unlock hci_conn_put(hcon) conn = hcon->l2cap_data (UAF)
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 5af1f84ed13a416297ab9ced7537f4d5ae7f329a before ec74cdf77310c43b01b83ee898a9bd4b4b0b8e93, from 5af1f84ed13a416297ab9ced7537f4d5ae7f329a before 79a2d4678ba90bdba577dc3af88cc900d6dcd5ee, cd55c13bbb3d093ae601aa97e588ed4c1390ebb1, 4d3ca4a9aaf0aa798a6be372dc0fc3a29e37dd57, 80265dd1d944c3f33e52375b5dbe654980bd2688, from 6.1.149 before 6.2, from 6.4.16 before 6.5, from 6.5.3 before 6.6 and 1 more Not affected: before 6.6, from 6.17.11 up to 6.17.*, from 6.18 up to * | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_core: lookup hci_conn on RX path on protocol side The hdev lock/lookup/unlock/use pattern in the packet RX path doesn't ensure hci_conn* is not concurrently modified/deleted. This locking appears to be leftover from before conn_hash started using RCU commit bf4c63252490b ("Bluetooth: convert conn hash to RCU") and not clear if it had purpose since then. Currently, there are code paths that delete hci_conn* from elsewhere than the ordered hdev->workqueue where the RX work runs in. E.g. commit 5af1f84ed13a ("Bluetooth: hci_sync: Fix UAF on hci_abort_conn_sync") introduced some of these, and there probably were a few others before it. It's better to do the locking so that even if these run concurrently no UAF is possible. Move the lookup of hci_conn and associated socket-specific conn to protocol recv handlers, and do them within a single critical section to cover hci_conn* usage and lookup. syzkaller has reported a crash that appears to be this issue: [Task hdev->workqueue] [Task 2] hci_disconnect_all_sync l2cap_recv_acldata(hcon) hci_conn_get(hcon) hci_abort_conn_sync(hcon) hci_dev_lock hci_dev_lock hci_conn_del(hcon) v-------------------------------- hci_dev_unlock hci_conn_put(hcon) conn = hcon->l2cap_data (UAF)
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: Bluetooth: hci_core: búsqueda de hci_conn en la ruta RX en el lado del protocolo El patrón de bloqueo/búsqueda/desbloqueo/uso de hdev en la ruta RX de paquetes no asegura que hci_conn no sea modificado/eliminado concurrentemente. Este bloqueo parece ser un remanente de antes de que conn_hash comenzara a usar RCU commit bf4c63252490b ('Bluetooth: convertir hash de conexión a RCU') y no está claro si tuvo algún propósito desde entonces. Actualmente, existen rutas de código que eliminan hci_conn desde otro lugar que no sea la hdev -> workqueue ordenada donde se ejecuta el trabajo RX. Por ejemplo, el commit 5af1f84ed13a ('Bluetooth: hci_sync: Corregir UAF en hci_abort_conn_sync') introdujo algunos de estos, y probablemente hubo algunos otros antes. Es mejor realizar el bloqueo de modo que, incluso si estos se ejecutan concurrentemente, no sea posible ningún UAF. Mover la búsqueda de hci_conn y la conexión asociada específica del socket a los manejadores de recepción del protocolo, y realizarlas dentro de una única sección crítica para cubrir el uso y la búsqueda de hci_conn. syzkaller ha reportado un fallo que parece ser este problema: [Task hdev -> workqueue] [Task 2] hci_disconnect_all_sync l2cap_recv_acldata(hcon) hci_conn_get(hcon) hci_abort_conn_sync(hcon) hci_dev_lock hci_dev_lock hci_conn_del(hcon) v-------------------------------- hci_dev_unlock hci_conn_put(hcon) conn = hcon -> l2cap_data (UAF)
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68304 changed 2026-10-15 | CVE Terms of Use |
| NVD | CVE-2025-68304 changed 2026-10-15 | Public domain |