5.5medium
Bluetooth: hci_sync: annotate data-races around hdev->req_status
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.11% (higher than 1% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_sync: annotate data-races around hdev->req_status __hci_cmd_sync_sk() sets hdev->req_status under hdev->req_lock: hdev->req_status = HCI_REQ_PEND; However, several other functions read or write hdev->req_status without holding any lock: - hci_send_cmd_sync() reads req_status in hci_cmd_work (workqueue) - hci_cmd_sync_complete() reads/writes from HCI event completion - hci_cmd_sync_cancel() / hci_cmd_sync_cancel_sync() read/write - hci_abort_conn() reads in connection abort path Since __hci_cmd_sync_sk() runs on hdev->req_workqueue while hci_send_cmd_sync() runs on hdev->workqueue, these are different workqueues that can execute concurrently on different CPUs. The plain C accesses constitute a data race. Add READ_ONCE()/WRITE_ONCE() annotations on all concurrent accesses to hdev->req_status to prevent potential compiler optimizations that could affect correctness (e.g., load fusing in the wait_event condition or store reordering).
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from f80c5dad7b6467b884c445ffea45985793b4b2d0 before ff5855e8891e1e2490741366d087fd2fbcaabc4a, from f80c5dad7b6467b884c445ffea45985793b4b2d0 before e51042ddc0b20d9bda5eb6dcf85a2668f9c5dae4, from f80c5dad7b6467b884c445ffea45985793b4b2d0 before 6e539907c0d11f514c5e0b049b27b04dff48a5b1, from f80c5dad7b6467b884c445ffea45985793b4b2d0 before a7a1cdb4a64ca74eb95cc46648fccb8cd3f9af27, from f80c5dad7b6467b884c445ffea45985793b4b2d0 before 40734ce8efc34c4a0d0222855798c0dc14b65f2e, from f80c5dad7b6467b884c445ffea45985793b4b2d0 before b6807cfc195ef99e1ac37b2e1e60df40295daa8c, 8603d49906b231bbcd9141db7d096fa1041bc379, 0e061885bfcd65ef5d09f154f3c3c3491cc7544a and 5 more Not affected: before 5.2, from 6.1.191 up to 6.1.*, from 6.6.145 up to 6.6.*, from 6.12.83 up to 6.12.*, from 6.18.24 up to 6.18.*, from 6.19.14 up to 6.19.* | CVE List |
| linux linux_kernel | from 5.2 before 6.12.83, from 6.13 before 6.18.24, from 6.19 before 6.19.14, 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: hci_sync: annotate data-races around hdev->req_status __hci_cmd_sync_sk() sets hdev->req_status under hdev->req_lock: hdev->req_status = HCI_REQ_PEND; However, several other functions read or write hdev->req_status without holding any lock: - hci_send_cmd_sync() reads req_status in hci_cmd_work (workqueue) - hci_cmd_sync_complete() reads/writes from HCI event completion - hci_cmd_sync_cancel() / hci_cmd_sync_cancel_sync() read/write - hci_abort_conn() reads in connection abort path Since __hci_cmd_sync_sk() runs on hdev->req_workqueue while hci_send_cmd_sync() runs on hdev->workqueue, these are different workqueues that can execute concurrently on different CPUs. The plain C accesses constitute a data race. Add READ_ONCE()/WRITE_ONCE() annotations on all concurrent accesses to hdev->req_status to prevent potential compiler optimizations that could affect correctness (e.g., load fusing in the wait_event condition or store reordering).
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: Bluetooth: hci_sync: anotar condiciones de carrera de datos alrededor de hdev -> req_status __hci_cmd_sync_sk() establece hdev -> req_status bajo hdev -> req_lock: hdev -> req_status = HCI_REQ_PEND; Sin embargo, varias otras funciones leen o escriben hdev -> req_status sin mantener ningún bloqueo: - hci_send_cmd_sync() lee req_status en hci_cmd_work (workqueue) - hci_cmd_sync_complete() lee/escribe desde la finalización del evento HCI - hci_cmd_sync_cancel() / hci_cmd_sync_cancel_sync() leen/escriben - hci_abort_conn() lee en la ruta de aborto de conexión Dado que __hci_cmd_sync_sk() se ejecuta en hdev -> req_workqueue mientras que hci_send_cmd_sync() se ejecuta en hdev -> workqueue, estas son diferentes workqueues que pueden ejecutarse concurrentemente en diferentes CPUs. Los accesos C simples constituyen una condición de carrera de datos. Añadir anotaciones READ_ONCE()/WRITE_ONCE() en todos los accesos concurrentes a hdev -> req_status para prevenir posibles optimizaciones del compilador que podrían afectar la corrección (p. ej., fusión de cargas en la condición wait_event o reordenamiento de almacenamiento).
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43119 changed 2026-11-06 | CVE Terms of Use |
| NVD | CVE-2026-43119 changed 2026-11-11 | Public domain |