Bluetooth: hci_conn: fix potential UAF in set_cig_params_sync
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
3a273cd0f47dd672d37736e623849374f9ab9ce9| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hci_conn: fix potential UAF in set_cig_params_sync
hci_conn lookup and field access must be covered by hdev lock in set_cig_params_sync, otherwise it's possible it is freed concurrently.
Take hdev lock to prevent hci_conn from being deleted or modified concurrently. Just RCU lock is not suitable here, as we also want to avoid "tearing" in the configuration.
From the CVE record · Linux
The Linux kernel’s Bluetooth set_cig_params_sync function can access an hci_conn without holding the hdev lock. If the connection is concurrently deleted or modified, this can cause a use-after-free; the input does not specify an attack path or authentication requirements.
Operators running the Linux kernel should check their versions; affected versions are not specified.