{"id":"CVE-2025-68304","aliases":["CVE-2025-68304"],"related":[],"kind":"vulnerability","state":"published","title":"Bluetooth: hci_core: lookup hci_conn on RX path on protocol side","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: hci_core: lookup hci_conn on RX path on protocol side\n\nThe hdev lock/lookup/unlock/use pattern in the packet RX path doesn't\nensure hci_conn* is not concurrently modified/deleted. This locking\nappears to be leftover from before conn_hash started using RCU\ncommit bf4c63252490b (\"Bluetooth: convert conn hash to RCU\")\nand not clear if it had purpose since then.\n\nCurrently, there are code paths that delete hci_conn* from elsewhere\nthan the ordered hdev->workqueue where the RX work runs in. E.g.\ncommit 5af1f84ed13a (\"Bluetooth: hci_sync: Fix UAF on hci_abort_conn_sync\")\nintroduced some of these, and there probably were a few others before\nit.  It's better to do the locking so that even if these run\nconcurrently no UAF is possible.\n\nMove the lookup of hci_conn and associated socket-specific conn to\nprotocol recv handlers, and do them within a single critical section\nto cover hci_conn* usage and lookup.\n\nsyzkaller has reported a crash that appears to be this issue:\n\n    [Task hdev->workqueue]          [Task 2]\n                                    hci_disconnect_all_sync\n    l2cap_recv_acldata(hcon)\n                                      hci_conn_get(hcon)\n                                      hci_abort_conn_sync(hcon)\n                                        hci_dev_lock\n      hci_dev_lock\n                                        hci_conn_del(hcon)\n      v-------------------------------- hci_dev_unlock\n                                      hci_conn_put(hcon)\n      conn = hcon->l2cap_data (UAF)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: hci_core: lookup hci_conn on RX path on protocol side\n\nThe hdev lock/lookup/unlock/use pattern in the packet RX path doesn't\nensure hci_conn* is not concurrently modified/deleted. This locking\nappears to be leftover from before conn_hash started using RCU\ncommit bf4c63252490b (\"Bluetooth: convert conn hash to RCU\")\nand not clear if it had purpose since then.\n\nCurrently, there are code paths that delete hci_conn* from elsewhere\nthan the ordered hdev->workqueue where the RX work runs in. E.g.\ncommit 5af1f84ed13a (\"Bluetooth: hci_sync: Fix UAF on hci_abort_conn_sync\")\nintroduced some of these, and there probably were a few others before\nit.  It's better to do the locking so that even if these run\nconcurrently no UAF is possible.\n\nMove the lookup of hci_conn and associated socket-specific conn to\nprotocol recv handlers, and do them within a single critical section\nto cover hci_conn* usage and lookup.\n\nsyzkaller has reported a crash that appears to be this issue:\n\n    [Task hdev->workqueue]          [Task 2]\n                                    hci_disconnect_all_sync\n    l2cap_recv_acldata(hcon)\n                                      hci_conn_get(hcon)\n                                      hci_abort_conn_sync(hcon)\n                                        hci_dev_lock\n      hci_dev_lock\n                                        hci_conn_del(hcon)\n      v-------------------------------- hci_dev_unlock\n                                      hci_conn_put(hcon)\n      conn = hcon->l2cap_data (UAF)","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nBluetooth: hci_core: búsqueda de hci_conn en la ruta RX en el lado del protocolo\n\nEl 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.\n\nActualmente, 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.\n\nMover 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.\n\nsyzkaller ha reportado un fallo que parece ser este problema:\n\n    [Task hdev -> workqueue]          [Task 2]\n                                    hci_disconnect_all_sync\n    l2cap_recv_acldata(hcon)\n                                      hci_conn_get(hcon)\n                                      hci_abort_conn_sync(hcon)\n                                        hci_dev_lock\n      hci_dev_lock\n                                        hci_conn_del(hcon)\n      v-------------------------------- hci_dev_unlock\n                                      hci_conn_put(hcon)\n      conn = hcon -> l2cap_data (UAF)","source":"nvd"}],"published":"2025-12-16T15:06:21.887Z","modified":"2026-10-15T22:19:11.733Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"5af1f84ed13a416297ab9ced7537f4d5ae7f329a","fixed":"ec74cdf77310c43b01b83ee898a9bd4b4b0b8e93","status":"affected"},{"type":"git","introduced":"5af1f84ed13a416297ab9ced7537f4d5ae7f329a","fixed":"79a2d4678ba90bdba577dc3af88cc900d6dcd5ee","status":"affected"},{"type":"git","version":"cd55c13bbb3d093ae601aa97e588ed4c1390ebb1","status":"affected"},{"type":"git","version":"4d3ca4a9aaf0aa798a6be372dc0fc3a29e37dd57","status":"affected"},{"type":"git","version":"80265dd1d944c3f33e52375b5dbe654980bd2688","status":"affected"},{"type":"semver","introduced":"6.1.149","fixed":"6.2","status":"affected"},{"type":"semver","introduced":"6.4.16","fixed":"6.5","status":"affected"},{"type":"semver","introduced":"6.5.3","fixed":"6.6","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.6","status":"unaffected"},{"type":"semver","introduced":"6.17.11","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/ec74cdf77310c43b01b83ee898a9bd4b4b0b8e93","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/79a2d4678ba90bdba577dc3af88cc900d6dcd5ee","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-15T22:00:49.566Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68304","url":"https://www.cve.org/CVERecord?id=CVE-2025-68304","licence":"CVE Terms of Use","modified":"2026-10-15T22:02:48.882Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68304","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68304","licence":"Public domain","modified":"2026-10-15T22:19:11.733Z"}],"updatedAt":"2026-11-25T22:59:09.534Z","epss":{"score":0.00249,"percentile":0.17432,"date":"2026-12-01T12:00:22.000Z"}}