Bluetooth: ISO: balance the parent hold in hci_bind_bis()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: ISO: balance the parent hold in hci_bind_bis()
hci_conn_link() takes a lifetime reference to its parent with hci_conn_get(), but only takes an operational hold on the child. hci_conn_unlink() later balances both a hold and a reference on the parent.
The SCO and CIS paths pass a parent acquired from a connect helper, so it already has a hold. For an additional BIS, hci_bind_bis() obtains the parent from hci_conn_hash_lookup_big(), which returns a bare pointer. Unlinking the child then drops the parent's existing hold and can schedule it for disconnection while its socket is still using it.
Take a hold on the parent before linking it and drop that hold if linking fails. A successful link transfers the hold to hci_conn_unlink().
From the CVE record · Linux
The Linux kernel’s Bluetooth ISO code fails to take a hold on a parent connection when binding an additional BIS. Unlinking the child can then schedule the parent for disconnection while its socket is still using it. The input does not specify how an attacker could trigger this or whether authentication or user interaction is required.
Engineers running Linux kernels with Bluetooth ISO support should check their versions; affected versions are not specified.