Skip to contentSkip to conversation

CVE-2026-31497: Bluetooth: btusb: clamp SCO altsetting table indices

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: btusb: clamp SCO altsetting table indices

btusb_work() maps the number of active SCO links to USB alternate settings through a three-entry lookup table when CVSD traffic uses transparent voice settings. The lookup currently indexes alts[] with data->sco_num - 1 without first constraining sco_num to the number of available table entries.

While the table only defines alternate settings for up to three SCO links, data->sco_num comes from hci_conn_num() and is used directly. Cap the lookup to the last table entry before indexing it so the driver keeps selecting the highest supported alternate setting without reading past alts[].

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

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

	Issue introduced in 5.8 with commit baac6276c0a9f36f1fe1f00590ef00d2ba5ba626 and fixed in 5.10.253 with commit 312c4450fe23014665c163f480edd5ad2e27bbb8
	Issue introduced in 5.8 with commit baac6276c0a9f36f1fe1f00590ef00d2ba5ba626 and fixed in 5.15.203 with commit 9dd13a8641de79bc1bc93da55cdd35259a002683
	Issue introduced in 5.8 with commit baac6276c0a9f36f1fe1f00590ef00d2ba5ba626 and fixed in 6.1.168 with commit 476c9262b430c38c6a701a3b8176a3f48689085b
	Issue introduced in 5.8 with commit baac6276c0a9f36f1fe1f00590ef00d2ba5ba626 and fixed in 6.6.131 with commit 6fba3c3d48c927e55611a0f5ea34da88138ed0ff
	Issue introduced in 5.8 with commit baac6276c0a9f36f1fe1f00590ef00d2ba5ba626 and fixed in 6.12.80 with commit 834cf890d2c3d29cbfa1ee2376c40469c28ec297
	Issue introduced in 5.8 with commit baac6276c0a9f36f1fe1f00590ef00d2ba5ba626 and fixed in 6.18.21 with commit 1019028eb124564cf7bca58a16f1df8a1ca30726
	Issue introduced in 5.8 with commit baac6276c0a9f36f1fe1f00590ef00d2ba5ba626 and fixed in 6.19.11 with commit 21c254202f9d78abe0fcd642a92966deb92bd226
	Issue introduced in 5.8 with commit baac6276c0a9f36f1fe1f00590ef00d2ba5ba626 and fixed in 7.0 with commit 129fa608b6ad08b8ab7178eeb2ec272c993aaccc

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

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:
drivers/bluetooth/btusb.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/312c4450fe23014665c163f480edd5ad2e27bbb8
	https://git.kernel.org/stable/c/9dd13a8641de79bc1bc93da55cdd35259a002683
	https://git.kernel.org/stable/c/476c9262b430c38c6a701a3b8176a3f48689085b
	https://git.kernel.org/stable/c/6fba3c3d48c927e55611a0f5ea34da88138ed0ff
	https://git.kernel.org/stable/c/834cf890d2c3d29cbfa1ee2376c40469c28ec297
	https://git.kernel.org/stable/c/1019028eb124564cf7bca58a16f1df8a1ca30726
	https://git.kernel.org/stable/c/21c254202f9d78abe0fcd642a92966deb92bd226
	https://git.kernel.org/stable/c/129fa608b6ad08b8ab7178eeb2ec272c993aaccc