Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: ISO: fix race of kfree vs kref_get_unless_zero hci_conn::iso_data is accessed and modified without lock or RCU. This leads to a race [Task hdev->workqueue] [Task 2] iso_recv iso_conn_put(conn) conn = LOAD hcon->iso_data iso_conn_free(conn) iso_conn_hold_unless_zero(conn) hcon->iso_data = NULL kfree(conn) kref_get_unless_zero(&conn->ref) /* UAF */ and also to races in iso_conn_add() vs. iso_conn_free(). Fix by adding spinlock hci_conn::proto_lock and using it to guard hci_conn::iso_data.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected a58d0f5dac322e16cc75334d000666512341bde5 before 08ac98f18c8d24cc037858dd6fba2670155e4e84; affected dc26097bdb864a0d5955b9a25e43376ffc1af99b before 876a3e94c70d0859d1dad1c986112d4f0d99eba8; affected dc26097bdb864a0d5955b9a25e43376ffc1af99b before af24e338bf5dafb80f42baa9a0b9e9b57b1c5d9c; affected f53e7489273dc2bb307bf50f319b3762d45534f0; affected 6.12.2 before 6.12.114; affected 6.11.11 before 6.12 |
| Linux / Linux | affected 6.13; unaffected 0 before 6.13; unaffected 6.12.114 through 6.12.*; unaffected 7.1.8 through 7.1.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/08ac98f18c8d24cc037858dd6fba2670155e4e84
- https://git.kernel.org/stable/c/876a3e94c70d0859d1dad1c986112d4f0d99eba8
- https://git.kernel.org/stable/c/af24e338bf5dafb80f42baa9a0b9e9b57b1c5d9c
ADP enrichment
No English description supplied.
No references supplied.