Skip to contentSkip to conversation

CVE-2026-63976: Bluetooth: l2cap: clear chan->ident on ECRED reconfiguration success

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 19

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: clear chan->ident on ECRED reconfiguration success

l2cap_ecred_reconf_rsp() returns early on success without clearing chan->ident. Every other L2CAP response handler (l2cap_ecred_conn_rsp, l2cap_le_connect_rsp, l2cap_config_rsp) clears chan->ident after a successful transaction to prevent the channel from matching subsequent responses with the recycled ident value.

A remote attacker that completed a reconfiguration as the peer can replay a failure response with the stale ident, causing the kernel to match and destroy the already-established channel via l2cap_chan_del(chan, ECONNRESET).

Clear chan->ident for all matching channels on success, and harden the failure path by using l2cap_chan_hold_unless_zero() consistent with other L2CAP handlers (l2cap_le_command_rej, __l2cap_get_chan_by_ident).

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

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

	Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 5.10.259 with commit 59f5ecf6ad5c4db6ae81965a96156954a3b0d89a
	Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 5.15.210 with commit ae0152d77d101c920769934fb102b18de0c6f526
	Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 6.1.176 with commit c2afd2613fda90107c5e2fe8e855627451749c78
	Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 6.6.143 with commit cc2b4f749de09975bfa06e58bbbad2f6acd4c79c
	Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 6.12.93 with commit 3b5b5f423b4fd23404a393bda8adba3cd6f74ef1
	Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 6.18.35 with commit f39049304ba655ffcbb92edbdf8c51a1f1210bed
	Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 7.0.12 with commit 8e7977afaef37c6bd2b2654f1bce6ab40d471147
	Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 7.1 with commit 00e1950716c6ed67d74777b2db286b0fa23b4be9

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

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/59f5ecf6ad5c4db6ae81965a96156954a3b0d89a
	https://git.kernel.org/stable/c/ae0152d77d101c920769934fb102b18de0c6f526
	https://git.kernel.org/stable/c/c2afd2613fda90107c5e2fe8e855627451749c78
	https://git.kernel.org/stable/c/cc2b4f749de09975bfa06e58bbbad2f6acd4c79c
	https://git.kernel.org/stable/c/3b5b5f423b4fd23404a393bda8adba3cd6f74ef1
	https://git.kernel.org/stable/c/f39049304ba655ffcbb92edbdf8c51a1f1210bed
	https://git.kernel.org/stable/c/8e7977afaef37c6bd2b2654f1bce6ab40d471147
	https://git.kernel.org/stable/c/00e1950716c6ed67d74777b2db286b0fa23b4be9