Skip to contentSkip to conversation

CVE-2026-90255: Bluetooth: hci_conn: fix the SCO setup context lifetime

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

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_conn: fix the SCO setup context lifetime

hci_setup_sync() queues a conn_handle_t with a NULL destroy callback, so the context is only freed if hci_enhanced_setup_sync() actually runs. An entry that is cancelled instead is leaked, as _hci_cmd_sync_cancel_entry() does not release entry->data when there is no destroy callback, and hci_cmd_sync_clear() cancels every pending entry when the controller is unregistered.

The context also stores a bare hci_conn pointer, so the connection can be freed while the work is queued. The dequeue in hci_conn_del() does not cover it either, as it matches on entry->data == conn and entry->data is the wrapper here. Same problem as commit 2f5d635ad590 ("Bluetooth:
hci_sync: hold conn in hci_connect_acl/le_sync() callbacks").

Hold the connection and release both from a destroy callback. The submission failure path drops both, since hci_cmd_sync_submit() does not call the destroy callback when it fails to queue.

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

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

	Issue introduced in 6.1 with commit e07a06b4eb417f5271d33ce2240e93c62d98b7b4 and fixed in 6.1.188 with commit 37cfec41365c826d5496ef5d00c9e215eee53aa2
	Issue introduced in 6.1 with commit e07a06b4eb417f5271d33ce2240e93c62d98b7b4 and fixed in 6.6.157 with commit 9a2ba69cebe3fc5a3d4fa8eaaad3c42862723c27
	Issue introduced in 6.1 with commit e07a06b4eb417f5271d33ce2240e93c62d98b7b4 and fixed in 6.12.110 with commit a661de0ee29d0915c5e924edf91d2be2b4d35bae
	Issue introduced in 6.1 with commit e07a06b4eb417f5271d33ce2240e93c62d98b7b4 and fixed in 6.18.52 with commit c1fe3c74a89a7749cba3caa0dd91236049c66116
	Issue introduced in 6.1 with commit e07a06b4eb417f5271d33ce2240e93c62d98b7b4 and fixed in 7.2.6 with commit 4d7b1c834d2775b73c65e4888e01f5af8b477fe9
	Issue introduced in 6.1 with commit e07a06b4eb417f5271d33ce2240e93c62d98b7b4 and fixed in 7.3-rc1 with commit 42de40abe25db9211107af8896d0fd741f10648d

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

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/37cfec41365c826d5496ef5d00c9e215eee53aa2
	https://git.kernel.org/stable/c/9a2ba69cebe3fc5a3d4fa8eaaad3c42862723c27
	https://git.kernel.org/stable/c/a661de0ee29d0915c5e924edf91d2be2b4d35bae
	https://git.kernel.org/stable/c/c1fe3c74a89a7749cba3caa0dd91236049c66116
	https://git.kernel.org/stable/c/4d7b1c834d2775b73c65e4888e01f5af8b477fe9
	https://git.kernel.org/stable/c/42de40abe25db9211107af8896d0fd741f10648d