7.8high
Bluetooth: btintel: serialize btintel_hw_error() with hci_req_sync_lock
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 0.13% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: btintel: serialize btintel_hw_error() with hci_req_sync_lock btintel_hw_error() issues two __hci_cmd_sync() calls (HCI_OP_RESET and Intel exception-info retrieval) without holding hci_req_sync_lock(). This lets it race against hci_dev_do_close() -> btintel_shutdown_combined(), which also runs __hci_cmd_sync() under the same lock. When both paths manipulate hdev->req_status/req_rsp concurrently, the close path may free the response skb first, and the still-running hw_error path hits a slab-use-after-free in kfree_skb(). Wrap the whole recovery sequence in hci_req_sync_lock/unlock so it is serialized with every other synchronous HCI command issuer. Below is the data race report and the kasan report: BUG: data-race in __hci_cmd_sync_sk / btintel_shutdown_combined read of hdev->req_rsp at net/bluetooth/hci_sync.c:199 by task kworker/u17:1/83: __hci_cmd_sync_sk+0x12f2/0x1c30 net/bluetooth/hci_sync.c:200 __hci_cmd_sync+0x55/0x80 net/bluetooth/hci_sync.c:223 btintel_hw_error+0x114/0x670 drivers/bluetooth/btintel.c:254 hci_error_reset+0x348/0xa30 net/bluetooth/hci_core.c:1030 write/free by task ioctl/22580: btintel_shutdown_combined+0xd0/0x360 drivers/bluetooth/btintel.c:3648 hci_dev_close_sync+0x9ae/0x2c10 net/bluetooth/hci_sync.c:5246 hci_dev_do_close+0x232/0x460 net/bluetooth/hci_core.c:526 BUG: KASAN: slab-use-after-free in sk_skb_reason_drop+0x43/0x380 net/core/skbuff.c:1202 Read of size 4 at addr ffff888144a738dc by task kworker/u17:1/83: __hci_cmd_sync_sk+0x12f2/0x1c30 net/bluetooth/hci_sync.c:200 __hci_cmd_sync+0x55/0x80 net/bluetooth/hci_sync.c:223 btintel_hw_error+0x186/0x670 drivers/bluetooth/btintel.c:260
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 973bb97e5aee56edddaae3d5c96877101ad509c0 before 7e041d0aad1d4d43d921ace052e04f4e2cacaed3, from 973bb97e5aee56edddaae3d5c96877101ad509c0 before 5f84e845648dfa86e42de5487f1a774b42f0444d, from 973bb97e5aee56edddaae3d5c96877101ad509c0 before e10a4cb72468686ffbe8bb2b0520e37f6be1a0c5, from 973bb97e5aee56edddaae3d5c96877101ad509c0 before 66696648af477dc87859e5e4b607112f5f29d010, from 973bb97e5aee56edddaae3d5c96877101ad509c0 before f7d84737663ad4a120d2d8ef1561a4df91282c2e, from 973bb97e5aee56edddaae3d5c96877101ad509c0 before 94d8e6fe5d0818e9300e514e095a200bd5ff93ae, 4.3 Not affected: before 4.3, from 6.1.175 up to 6.1.*, from 6.6.131 up to 6.6.*, from 6.12.80 up to 6.12.*, from 6.18.21 up to 6.18.*, from 6.19.11 up to 6.19.* | CVE List |
| linux linux_kernel | from 4.3.1 before 6.6.131, from 6.7 before 6.12.80, from 6.13 before 6.18.21, from 6.19 before 6.19.11, 4.3, 7.0 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: btintel: serialize btintel_hw_error() with hci_req_sync_lock btintel_hw_error() issues two __hci_cmd_sync() calls (HCI_OP_RESET and Intel exception-info retrieval) without holding hci_req_sync_lock(). This lets it race against hci_dev_do_close() -> btintel_shutdown_combined(), which also runs __hci_cmd_sync() under the same lock. When both paths manipulate hdev->req_status/req_rsp concurrently, the close path may free the response skb first, and the still-running hw_error path hits a slab-use-after-free in kfree_skb(). Wrap the whole recovery sequence in hci_req_sync_lock/unlock so it is serialized with every other synchronous HCI command issuer. Below is the data race report and the kasan report: BUG: data-race in __hci_cmd_sync_sk / btintel_shutdown_combined read of hdev->req_rsp at net/bluetooth/hci_sync.c:199 by task kworker/u17:1/83: __hci_cmd_sync_sk+0x12f2/0x1c30 net/bluetooth/hci_sync.c:200 __hci_cmd_sync+0x55/0x80 net/bluetooth/hci_sync.c:223 btintel_hw_error+0x114/0x670 drivers/bluetooth/btintel.c:254 hci_error_reset+0x348/0xa30 net/bluetooth/hci_core.c:1030 write/free by task ioctl/22580: btintel_shutdown_combined+0xd0/0x360 drivers/bluetooth/btintel.c:3648 hci_dev_close_sync+0x9ae/0x2c10 net/bluetooth/hci_sync.c:5246 hci_dev_do_close+0x232/0x460 net/bluetooth/hci_core.c:526 BUG: KASAN: slab-use-after-free in sk_skb_reason_drop+0x43/0x380 net/core/skbuff.c:1202 Read of size 4 at addr ffff888144a738dc by task kworker/u17:1/83: __hci_cmd_sync_sk+0x12f2/0x1c30 net/bluetooth/hci_sync.c:200 __hci_cmd_sync+0x55/0x80 net/bluetooth/hci_sync.c:223 btintel_hw_error+0x186/0x670 drivers/bluetooth/btintel.c:260
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: Bluetooth: btintel: serializar btintel_hw_error() con hci_req_sync_lock btintel_hw_error() emite dos llamadas a __hci_cmd_sync() (HCI_OP_RESET y recuperación de información de excepción de Intel) sin mantener hci_req_sync_lock(). Esto permite que compita contra hci_dev_do_close() -> btintel_shutdown_combined(), que también ejecuta __hci_cmd_sync() bajo el mismo bloqueo. Cuando ambas rutas manipulan hdev -> req_status/req_rsp concurrentemente, la ruta de cierre puede liberar el skb de respuesta primero, y la ruta hw_error aún en ejecución encuentra un uso después de liberación de slab en kfree_skb(). Encapsular toda la secuencia de recuperación en hci_req_sync_lock/unlock para que se serialice con cualquier otro emisor de comandos HCI síncronos. A continuación se presenta el informe de condición de carrera y el informe kasan: ERROR: condición de carrera en __hci_cmd_sync_sk / btintel_shutdown_combined lectura de hdev -> req_rsp en net/bluetooth/hci_sync.c:199 por la tarea kworker/u17:1/83: __hci_cmd_sync_sk+0x 12f2/0x 1c30 net/bluetooth/hci_sync.c:200 __hci_cmd_sync+0x55/0x80 net/bluetooth/hci_sync.c:223 btintel_hw_error+0x114/0x670 drivers/bluetooth/btintel.c:254 hci_error_reset+0x348/0xa30 net/bluetooth/hci_core.c:1030 escritura/liberación por la tarea ioctl/22580: btintel_shutdown_combined+0xd0/0x360 drivers/bluetooth/btintel.c:3648 hci_dev_close_sync+0x9ae/0x 2c10 net/bluetooth/hci_sync.c:5246 hci_dev_do_close+0x232/0x460 net/bluetooth/hci_core.c:526 ERROR: KASAN: uso después de liberación de slab en sk_skb_reason_drop+0x43/0x380 net/core/skbuff.c:1202 Lectura de tamaño 4 en la dirección ffff888144a738dc por la tarea kworker/u17:1/83: __hci_cmd_sync_sk+0x 12f2/0x 1c30 net/bluetooth/hci_sync.c:200 __hci_cmd_sync+0x55/0x80 net/bluetooth/hci_sync.c:223 btintel_hw_error+0x186/0x670 drivers/bluetooth/btintel.c:260
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-31500 changed 2026-11-05 | CVE Terms of Use |
| NVD | CVE-2026-31500 changed 2026-11-11 | Public domain |