Skip to contentSkip to conversation

CVE-2026-23395: Bluetooth: L2CAP: Fix accepting multiple L2CAP_ECRED_CONN_REQ

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Mar 25

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 accepting multiple L2CAP_ECRED_CONN_REQ

Currently the code attempts to accept requests regardless of the command identifier which may cause multiple requests to be marked as pending (FLAG_DEFER_SETUP) which can cause more than L2CAP_ECRED_MAX_CID(5) to be allocated in l2cap_ecred_rsp_defer causing an overflow.

The spec is quite clear that the same identifier shall not be used on subsequent requests:

'Within each signaling channel a different Identifier shall be used for each successive request or indication.'
https://www.bluetooth.com/wp-content/uploads/Files/Specification/HTML/Core-62/out/en/host/logical-link-control-and-adaptation-protocol-specification.html#UUID-32a25a06-4aa4-c6c7-77c5-dcfe3682355d

So this attempts to check if there are any channels pending with the same identifier and rejects if any are found.

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

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

	Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 6.1.167 with commit fb4a3a26483f3ea2cd21c7a2f7c45d5670600465
	Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 6.6.130 with commit 2124d82fd25e1671bb3ceb37998af5aae5903e06
	Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 6.12.78 with commit 6b949a6b33cbdf621d9fc6f0c48ac00915dbf514
	Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 6.18.20 with commit 8d0d94f8ba5b3a0beec3b0da558b9bea48018117
	Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 6.19.10 with commit e72ee455297b794b852e5cea8d2d7bb17312172a
	Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 7.0-rc5 with commit 5b3e2052334f2ff6d5200e952f4aa66994d09899

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

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/fb4a3a26483f3ea2cd21c7a2f7c45d5670600465
	https://git.kernel.org/stable/c/2124d82fd25e1671bb3ceb37998af5aae5903e06
	https://git.kernel.org/stable/c/6b949a6b33cbdf621d9fc6f0c48ac00915dbf514
	https://git.kernel.org/stable/c/8d0d94f8ba5b3a0beec3b0da558b9bea48018117
	https://git.kernel.org/stable/c/e72ee455297b794b852e5cea8d2d7bb17312172a
	https://git.kernel.org/stable/c/5b3e2052334f2ff6d5200e952f4aa66994d09899