Skip to contentSkip to conversation

CVE-2026-68391: Bluetooth: mgmt: hold reference for hci_conn in mgmt_pending_cmds

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 10

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: mgmt: hold reference for hci_conn in mgmt_pending_cmds

Dereferencing RCU-protected pointers outside critical sections is invalid and may lead to UAF. Use of hci_conn in hci_sync callbacks also needs to hold refcount to avoid UAF.

Take appropriate locks for hci_conn lookups, and take refcount for hci_conn pointers stored in mgmt_pending_cmd so that the pointer stays valid.

When accessing conn->state, ensure hdev->lock is held to avoid data race.

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

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

	Issue introduced in 6.0 with commit 7b445e220db9a2c58be5d09bbbd322abf1b1452a and fixed in 6.6.148 with commit b56f2ecafc08f372bf0529f9c4f3f429cb1702dc
	Issue introduced in 6.0 with commit 7b445e220db9a2c58be5d09bbbd322abf1b1452a and fixed in 6.12.101 with commit f915e74b6f18293d1d69a2a3305ef321ff7c0172
	Issue introduced in 6.0 with commit 7b445e220db9a2c58be5d09bbbd322abf1b1452a and fixed in 6.18.42 with commit d5b3b484b62bb0f4542e7622789d28871626cdf0
	Issue introduced in 6.0 with commit 7b445e220db9a2c58be5d09bbbd322abf1b1452a and fixed in 7.1.6 with commit ecdcb55ea1c01dda074406f38058785a69526734
	Issue introduced in 6.0 with commit 7b445e220db9a2c58be5d09bbbd322abf1b1452a and fixed in 7.2-rc4 with commit da55f570191d5d72f10c607a7043b947eb05ea46

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

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/mgmt.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/b56f2ecafc08f372bf0529f9c4f3f429cb1702dc
	https://git.kernel.org/stable/c/f915e74b6f18293d1d69a2a3305ef321ff7c0172
	https://git.kernel.org/stable/c/d5b3b484b62bb0f4542e7622789d28871626cdf0
	https://git.kernel.org/stable/c/ecdcb55ea1c01dda074406f38058785a69526734
	https://git.kernel.org/stable/c/da55f570191d5d72f10c607a7043b947eb05ea46