Skip to contentSkip to conversation

CVE-2026-52918: Bluetooth: serialize accept_q access

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 24

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: serialize accept_q access

bt_sock_poll() walks the accept queue without synchronization, while child teardown can unlink the same socket and drop its last reference. The unsynchronized accept queue walk has existed since the initial Bluetooth import.

Protect accept_q with a dedicated lock for queue updates and polling. Also rework bt_accept_dequeue() to take temporary child references under the queue lock before dropping it and locking the child socket.

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

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

	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.10.259 with commit d9ce4de05df2385c19e2c7d12f529144e1a44af1
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.15.210 with commit 41c8c1c7923e86e0eb59cfb4279349112756a336
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.1.176 with commit 4ec17782fd186f901a7329605d11048b085b945a
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.142 with commit be43e6b4043113c3b3cf887c3c8350f67140274c
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.92 with commit 85f8674cae82053f1e6bab295f6a8422cca14db5
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.34 with commit 8b4c412e001b0c670eb937beab491af974da55b3
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.0.11 with commit a218bf69eb51fefe59a3976fa8925261141f681c
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.1 with commit e83f5e24da741fa9405aeeff00b08c5ee7c37b88

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

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:
include/net/bluetooth/bluetooth.h
net/bluetooth/af_bluetooth.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/d9ce4de05df2385c19e2c7d12f529144e1a44af1
	https://git.kernel.org/stable/c/41c8c1c7923e86e0eb59cfb4279349112756a336
	https://git.kernel.org/stable/c/4ec17782fd186f901a7329605d11048b085b945a
	https://git.kernel.org/stable/c/be43e6b4043113c3b3cf887c3c8350f67140274c
	https://git.kernel.org/stable/c/85f8674cae82053f1e6bab295f6a8422cca14db5
	https://git.kernel.org/stable/c/8b4c412e001b0c670eb937beab491af974da55b3
	https://git.kernel.org/stable/c/a218bf69eb51fefe59a3976fa8925261141f681c
	https://git.kernel.org/stable/c/e83f5e24da741fa9405aeeff00b08c5ee7c37b88