Skip to contentSkip to conversation

CVE-2026-90254: Bluetooth: hci_sync: free the advertising instance on the failure and cancel paths

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_sync: free the advertising instance on the failure and cancel paths

adv_timeout_expire() hands a kmalloc()ed instance byte to hci_cmd_sync_queue() with a NULL destroy callback, and only adv_timeout_expire_sync() frees it. That leaks on two paths:

- the return value is not checked, and hci_cmd_sync_queue() does not take ownership when it fails (-ENETDOWN, -ENODEV, -ENOMEM);

- a cancelled entry is not released, as _hci_cmd_sync_cancel_entry() does not free entry->data when there is no destroy callback. hci_cmd_sync_clear() cancels every pending entry when the controller is unregistered.

Free the buffer from a destroy callback, and in the caller when the entry could not be queued at all.

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

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

	Issue introduced in 6.1 with commit c249ea9b4309cf3250c5bbb42a05d38d0ed9071c and fixed in 6.1.188 with commit c2019224a766245b7db39d87fdfe84c3fdc879d9
	Issue introduced in 6.1 with commit c249ea9b4309cf3250c5bbb42a05d38d0ed9071c and fixed in 6.6.157 with commit 193182c6467f508a8a61d5db506d796ffed6eee6
	Issue introduced in 6.1 with commit c249ea9b4309cf3250c5bbb42a05d38d0ed9071c and fixed in 6.12.110 with commit 2e3d827cd56865c14f6ca118bbccd7801091fb21
	Issue introduced in 6.1 with commit c249ea9b4309cf3250c5bbb42a05d38d0ed9071c and fixed in 6.18.52 with commit 9c3b6c1413bd0b4993642d987616331f84d9b7f5
	Issue introduced in 6.1 with commit c249ea9b4309cf3250c5bbb42a05d38d0ed9071c and fixed in 7.2.6 with commit bb5ca1cc7744c41c59002bd6523714a685ae6595
	Issue introduced in 6.1 with commit c249ea9b4309cf3250c5bbb42a05d38d0ed9071c and fixed in 7.3-rc1 with commit 120d8dc042e3d45073bb6e50ee7b058a0b182627

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

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/c2019224a766245b7db39d87fdfe84c3fdc879d9
	https://git.kernel.org/stable/c/193182c6467f508a8a61d5db506d796ffed6eee6
	https://git.kernel.org/stable/c/2e3d827cd56865c14f6ca118bbccd7801091fb21
	https://git.kernel.org/stable/c/9c3b6c1413bd0b4993642d987616331f84d9b7f5
	https://git.kernel.org/stable/c/bb5ca1cc7744c41c59002bd6523714a685ae6595
	https://git.kernel.org/stable/c/120d8dc042e3d45073bb6e50ee7b058a0b182627