Bluetooth: hci_conn: fail SCO/ISO via hci_conn_failed if ACL gone early
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
6.4
|
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hci_conn: fail SCO/ISO via hci_conn_failed if ACL gone early
Not calling hci_(dis)connect_cfm before deleting conn referred to by a socket generally results to use-after-free.
When cleaning up SCO connections when the parent ACL is deleted too early, use hci_conn_failed to do the connection cleanup properly.
We also need to clean up ISO connections in a similar situation when connecting has started but LE Create CIS is not yet sent, so do it too here.
From the CVE record · Linux
The Linux kernel's Bluetooth connection cleanup can cause a use-after-free if a parent ACL connection is deleted early while SCO or ISO connections are being established. The input does not specify how an attacker could trigger this, whether authentication is required, or whether user interaction is needed.
Teams running Linux kernels with the affected Bluetooth hci_conn code should check their kernel versions; affected versions are not specified.