Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 36D45286D5E for ; Wed, 22 Apr 2026 13:58:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866294; cv=none; b=a9SIyytMm2bbqcL2p9kjHFxC+1X2zzpzAazHbxQll+Nr6S/T5jtFzo8rOxD0O2W+DCnj8WDm5//vlQNgOe9KUEkUjTUkA7J7N96uK/RyNtTk4lPi6fFPpD4eMsLwJCXKyoqC5QWEzEZXjpdi75XIdxO2mvuYAUL1t9LaQc8OxFk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866294; c=relaxed/simple; bh=3LEPBuODLGsUGkWobiCWpLsn3fyX8vYAvdFkVjpFCXY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aTlEkFfhU+uDrjfb/PzDUWTJK31gUNEO7GLe4e/EVx5ng4zb+yQDOCfVdw4Cv9YI9H2k0/7pVEOPRbCTivp4GhCBP/GmZkVKb60abKgBVM7/AfYkLQ14hM1QlIma01e0zbU2Grn41pQe2Jj1QihfK7sHCpZS0/nRdkoMzTWt6h8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=huZeCfWJ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="huZeCfWJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF141C2BCAF; Wed, 22 Apr 2026 13:58:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866294; bh=3LEPBuODLGsUGkWobiCWpLsn3fyX8vYAvdFkVjpFCXY=; h=From:To:Cc:Subject:Date:Reply-To:From; b=huZeCfWJpnpalrC1hrk25jYuzLJr3eHgRQEPjGtupvo2dd+gr8LW1EvTLcHlJP+Uv kPTELZ5EN6LGWQl96xmVt4Oa+XweWYLkbJT26BSv6UQjzYHAJZPBiL9Vk9db9lHM2M IWprW/fxRsWFPXtNt3QJ5d9ckKpsRcIi2heBtwlk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31497: Bluetooth: btusb: clamp SCO altsetting table indices Date: Wed, 22 Apr 2026 15:54:43 +0200 Message-ID: <2026042203-CVE-2026-31497-f54a@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3730; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=AqaRqnQwx3SnNXF4kd+WAWnWKf89GOyG9EPbD36rl+4=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLv0pWPVqip9Ryslg5cY5uz7pljN+VmxbErxNj7Gg/ HH0w+PcHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR+QsZ5gfZ2Z64rnR4X411 0g53nefz+SMEXjDM07G8tO5hvaxMq4u3u1POIjPtE+ZBAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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