Skip to contentSkip to conversation

CVE-2026-74300: Bluetooth: hci: validate codec capability element length

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 15

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: hci: validate codec capability element length

Read Local Codec Capabilities returns a sequence of capability elements. Each element starts with a one-byte length followed by that many payload bytes.

hci_read_codec_capabilities() checks that the skb contains the length byte, but then validates only caps->len against the remaining skb length. A malformed controller response with one remaining byte and caps->len set to one passes that check even though the element needs two bytes. The parser then records a two-byte capability and copies one byte beyond the advertised response payload into the codec list.

Validate the full element size, including the length byte, before adding it to the accumulated capability length. This preserves all well-formed capability elements and drops only truncated controller responses.

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

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

	Issue introduced in 5.16 with commit 8961987f3f5fa2f2618e72304d013c8dd5e604a6 and fixed in 6.1.178 with commit fc97fc8cf7f53fd3619db63e09050d20a3a0c4b1
	Issue introduced in 5.16 with commit 8961987f3f5fa2f2618e72304d013c8dd5e604a6 and fixed in 6.6.145 with commit 290b36f9d1eb9b2f72b40d826f26b4a182ab15f7
	Issue introduced in 5.16 with commit 8961987f3f5fa2f2618e72304d013c8dd5e604a6 and fixed in 6.12.97 with commit f2ad01f55e07f9531efcea736087e6b8658a3440
	Issue introduced in 5.16 with commit 8961987f3f5fa2f2618e72304d013c8dd5e604a6 and fixed in 6.18.40 with commit ec4d352747a62c1082f16c11a74b37d6eb85a5a3
	Issue introduced in 5.16 with commit 8961987f3f5fa2f2618e72304d013c8dd5e604a6 and fixed in 7.1.5 with commit 4bc16db0f11918e07edf9fdcda4a30cf4c9df45c
	Issue introduced in 5.16 with commit 8961987f3f5fa2f2618e72304d013c8dd5e604a6 and fixed in 7.2-rc1 with commit c38fbcdc407925c7088f7e5f11c1fff73d2d35a2

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

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/hci_codec.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/fc97fc8cf7f53fd3619db63e09050d20a3a0c4b1
	https://git.kernel.org/stable/c/290b36f9d1eb9b2f72b40d826f26b4a182ab15f7
	https://git.kernel.org/stable/c/f2ad01f55e07f9531efcea736087e6b8658a3440
	https://git.kernel.org/stable/c/ec4d352747a62c1082f16c11a74b37d6eb85a5a3
	https://git.kernel.org/stable/c/4bc16db0f11918e07edf9fdcda4a30cf4c9df45c
	https://git.kernel.org/stable/c/c38fbcdc407925c7088f7e5f11c1fff73d2d35a2