CVE-2026-46056: Bluetooth: hci_event: fix potential UAF in SSP passkey handlers
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-46056 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.7 with commit 92a25256f142d55e25f9959441cea6ddeabae57e and fixed in 6.6.140 with commit 204028af77a265e31ceb4ba7f643349a3cca72b2 Issue introduced in 3.7 with commit 92a25256f142d55e25f9959441cea6ddeabae57e and fixed in 6.12.86 with commit 01a6431766c35dfedb86e0cb5d3fc80c6d604a47 Issue introduced in 3.7 with commit 92a25256f142d55e25f9959441cea6ddeabae57e and fixed in 6.18.27 with commit e08d75753db17aa943d7622f09d9c217b5bfd3b8 Issue introduced in 3.7 with commit 92a25256f142d55e25f9959441cea6ddeabae57e and fixed in 7.0.4 with commit 8c6443bb9257b780986fb67ec08565bf48ecb8d7 Issue introduced in 3.7 with commit 92a25256f142d55e25f9959441cea6ddeabae57e and fixed in 7.1-rc1 with commit 85fa3512048793076eef658f66489112dcc91993
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-46056
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/bluetooth/hci_event.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/204028af77a265e31ceb4ba7f643349a3cca72b2 https://git.kernel.org/stable/c/01a6431766c35dfedb86e0cb5d3fc80c6d604a47 https://git.kernel.org/stable/c/e08d75753db17aa943d7622f09d9c217b5bfd3b8 https://git.kernel.org/stable/c/8c6443bb9257b780986fb67ec08565bf48ecb8d7 https://git.kernel.org/stable/c/85fa3512048793076eef658f66489112dcc91993