Skip to contentSkip to conversation

CVE-2026-31499: Bluetooth: L2CAP: Fix deadlock in l2cap_conn_del()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 22

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: L2CAP: Fix deadlock in l2cap_conn_del()

l2cap_conn_del() calls cancel_delayed_work_sync() for both info_timer and id_addr_timer while holding conn->lock. However, the work functions l2cap_info_timeout() and l2cap_conn_update_id_addr() both acquire conn->lock, creating a potential AB-BA deadlock if the work is already executing when l2cap_conn_del() takes the lock.

Move the work cancellations before acquiring conn->lock and use disable_delayed_work_sync() to additionally prevent the works from being rearmed after cancellation, consistent with the pattern used in hci_conn_del().

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

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

	Issue introduced in 6.14 with commit ab4eedb790cae44313759b50fe47da285e2519d5 and fixed in 6.18.21 with commit 3f26ecbd9cde621dd94be7ef252c7210b965a5c7
	Issue introduced in 6.14 with commit ab4eedb790cae44313759b50fe47da285e2519d5 and fixed in 6.19.11 with commit d008460de352e534f6721de829b093368564ec66
	Issue introduced in 6.14 with commit ab4eedb790cae44313759b50fe47da285e2519d5 and fixed in 7.0 with commit 00fdebbbc557a2fc21321ff2eaa22fd70c078608
	Issue introduced in 6.6.84 with commit efc30877bd4bc85fefe98d80af60fafc86e5775e
	Issue introduced in 6.12.20 with commit f87271d21dd4ee83857ca11b94e7b4952749bbae
	Issue introduced in 6.13.8 with commit 18ab6b6078fa8191ca30a3065d57bf35d5635761

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

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/l2cap_core.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/3f26ecbd9cde621dd94be7ef252c7210b965a5c7
	https://git.kernel.org/stable/c/d008460de352e534f6721de829b093368564ec66
	https://git.kernel.org/stable/c/00fdebbbc557a2fc21321ff2eaa22fd70c078608