CVE-2026-46111: Bluetooth: hci_conn: fix potential UAF in create_big_sync
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hci_conn: fix potential UAF in create_big_sync
Add hci_conn_valid() check in create_big_sync() to detect stale connections before proceeding with BIG creation. Handle the resulting -ECANCELED in create_big_complete() and re-validate the connection under hci_dev_lock() before dereferencing, matching the pattern used by create_le_conn_complete() and create_pa_complete().
Keep the hci_conn object alive across the async boundary by taking a reference via hci_conn_get() when queueing create_big_sync(), and dropping it in the completion callback. The refcount and the lock are complementary: the refcount keeps the object allocated, while hci_dev_lock() serializes hci_conn_hash_del()'s list_del_rcu() on hdev->conn_hash, as required by hci_conn_del().
hci_conn_put() is called outside hci_dev_unlock() so the final put (which resolves to kfree() via bt_link_release) does not run under hdev->lock, though the release path would be safe either way.
Without this, create_big_complete() would unconditionally dereference the conn pointer on error, causing a use-after-free via hci_connect_cfm() and hci_conn_del().
The Linux kernel CVE team has assigned CVE-2026-46111 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.0 with commit eca0ae4aea66914515e5e3098ea051b518ee5316 and fixed in 6.6.140 with commit 6823f730bf195fc296d9edd09e2ca94bc1ff5584 Issue introduced in 6.0 with commit eca0ae4aea66914515e5e3098ea051b518ee5316 and fixed in 6.12.90 with commit 1750a2df0eab61dc421a7afae74abdd239a44b85 Issue introduced in 6.0 with commit eca0ae4aea66914515e5e3098ea051b518ee5316 and fixed in 6.18.32 with commit dc34f8d8240f25dd137dc2758ebbcc75e3779142 Issue introduced in 6.0 with commit eca0ae4aea66914515e5e3098ea051b518ee5316 and fixed in 7.0.7 with commit f8eaf92c57ad99358dd372580d5ff87623343a72 Issue introduced in 6.0 with commit eca0ae4aea66914515e5e3098ea051b518ee5316 and fixed in 7.1-rc3 with commit 0beddb0c380bed5f5b8e61ddbe14635bb73d0b41
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-46111
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_conn.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/6823f730bf195fc296d9edd09e2ca94bc1ff5584 https://git.kernel.org/stable/c/1750a2df0eab61dc421a7afae74abdd239a44b85 https://git.kernel.org/stable/c/dc34f8d8240f25dd137dc2758ebbcc75e3779142 https://git.kernel.org/stable/c/f8eaf92c57ad99358dd372580d5ff87623343a72 https://git.kernel.org/stable/c/0beddb0c380bed5f5b8e61ddbe14635bb73d0b41