Bluetooth: hci_event: fix potential UAF in SSP passkey handlers
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 92a25256f142d55e25f9959441cea6ddeabae57e · < e08d75753db17aa943d7622f09d9c217b5bfd3b8| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hci_event: fix potential UAF in SSP passkey handlers
hci_conn lookup and field access must be covered by hdev lock in hci_user_passkey_notify_evt() and hci_keypress_notify_evt(), otherwise the connection can be freed concurrently.
Extend the hci_dev_lock critical section to cover all conn usage in both handlers.
Keep the existing keypress notification behavior unchanged by routing the early exits through a common unlock path.
From the CVE record · Linux
The Linux kernel’s Bluetooth SSP passkey handlers can access a connection after it has been freed concurrently because connection lookup and field access are not fully covered by the device lock. This could cause a use-after-free; the input does not specify attacker capabilities, authentication requirements, or whether user interaction is needed.
Engineers running Linux kernels with the affected Bluetooth SSP passkey handlers should check their kernel; affected versions are not specified.