Skip to contentSkip to conversation

CVE-2026-63944: Bluetooth: hci_sync: fix UAF in hci_le_create_cis_sync

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

Bluetooth: hci_sync: fix UAF in hci_le_create_cis_sync

hci_le_create_cis_sync() dereferences conn->conn_timeout after releasing both rcu_read_lock() and hci_dev_lock(hdev). The conn pointer was obtained from an RCU-protected iteration over hdev->conn_hash.list and is not valid once these locks are dropped. A concurrent disconnect can free the hci_conn between the unlock and the dereference, causing a use-after-free read.

The cancellation mechanism in hci_conn_del() cannot prevent this because hci_le_create_cis_pending() queues hci_create_cis_sync with data=NULL:

    hci_cmd_sync_queue(hdev, hci_create_cis_sync, NULL, NULL);

While hci_conn_del() dequeues with data=conn:

    hci_cmd_sync_dequeue(hdev, NULL, conn, NULL);

Since NULL != conn, the lookup in _hci_cmd_sync_lookup_entry() never matches, and the pending work item is not cancelled.

Fix this by saving conn->conn_timeout into a local variable while the locks are still held, so the stale conn pointer is never dereferenced after unlock.

This is the same class of bug as the one fixed by commit 035c25007c9e ("Bluetooth: hci_sync: Fix UAF on le_read_features_complete") which addressed the identical pattern in a different function.

This vulnerability was identified using 0sec.ai, an open-source automated security auditing platform (https://github.com/0sec-labs).

The Linux kernel CVE team has assigned CVE-2026-63944 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.4 with commit c09b80be6ffc338634b2f5f8cfa12b6843410834 and fixed in 6.6.143 with commit a55618c0f4cead9e59c63f5ee030d393fd70d861
	Issue introduced in 6.4 with commit c09b80be6ffc338634b2f5f8cfa12b6843410834 and fixed in 6.12.93 with commit a921957d39290143629eb38c4f74b9bef8035d0a
	Issue introduced in 6.4 with commit c09b80be6ffc338634b2f5f8cfa12b6843410834 and fixed in 6.18.35 with commit d9019210c8c30d40eb20094274cc647e352f48f7
	Issue introduced in 6.4 with commit c09b80be6ffc338634b2f5f8cfa12b6843410834 and fixed in 7.0.12 with commit 380e67b1794a9a281a0cb592b4e62077fbd0c8ca
	Issue introduced in 6.4 with commit c09b80be6ffc338634b2f5f8cfa12b6843410834 and fixed in 7.1 with commit bfea6091e0fffb270c20e74384b660910277eb6c

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-63944

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_sync.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/a55618c0f4cead9e59c63f5ee030d393fd70d861
	https://git.kernel.org/stable/c/a921957d39290143629eb38c4f74b9bef8035d0a
	https://git.kernel.org/stable/c/d9019210c8c30d40eb20094274cc647e352f48f7
	https://git.kernel.org/stable/c/380e67b1794a9a281a0cb592b4e62077fbd0c8ca
	https://git.kernel.org/stable/c/bfea6091e0fffb270c20e74384b660910277eb6c