Linux
Bluetooth: ISO: Fix a use-after-free of the hci_conn pointer
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: ISO: Fix a use-after-free of the hci_conn pointer In iso_sock_rebind_bc(), the bis pointer is cached, then the socket lock is dropped: bis = iso_pi(sk)->conn->hcon; /* Release the socket before lookups since that requires hci_dev_lock * which shall not be acquired while holding sock_lock for proper * ordering. */ release_sock(sk); hci_dev_lock(bis->hdev); During the unlocked window, could a concurrent close() destroy the connection and free the bis structure, causing hci_dev_lock(bis->hdev) to access memory after it is freed, fix this by using the hdev reference which was safely acquired via iso_conn_get_hdev().
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= d3413703d5f8b7d1e6f514f9440ed5da1bc30796, < d324b8aa20bd3c3394e3647dc22491d88f3f4e7a
- >= d3413703d5f8b7d1e6f514f9440ed5da1bc30796, < f50331f2a1441ec49988832c3a95f2edacc47322
Fixed in d324b8aa20bd3c3394e3647dc22491d88f3f4e7a, f50331f2a1441ec49988832c3a95f2edacc47322
- 6.19
Fixed in 0, 7.0.13, 7.1
Mitigation
Upgrade Linux to d324b8aa20bd3c3394e3647dc22491d88f3f4e7a or f50331f2a1441ec49988832c3a95f2edacc47322 or later.
Upgrade Linux to 0 or 7.0.13 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.