Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 44331207E00 for ; Thu, 17 Sep 2026 16:22:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662128; cv=none; b=ieBsqbE/ilYv7TU00sT1lu8QsAgDTfL1mJm7MI7DNPYha9m24h4IMwFcySYe6DIr4SsRRDrDKZncwhUGOi2XKyE1+y8xSw8627Z9qqwUQiJ3k6uIigKBhIs6QYDKpuTB69TlTknx44ahpuplSdTgKoFg2+jZmkngYsYEv6i9uYk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662128; c=relaxed/simple; bh=23SNT7uzLUWcWB9HI0GAAHF3bzHsIEmBwp6zFljYwzk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Yhfix5R8hckZflMzxjGWXgnyHFulmHSpqFyTn51GM8eAJN0fnEXQmA3Utc3Gb4JVaK9zJOUVlALvzkBBmDQJoNOchcz7N3OBCnReHim73qmY4SM3GJP5q3ORsjJogRpgcMzizyw2k5wlDuVk9zwISHDyMs71/Xrxrh4CoCWnjRc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jikQQq9r; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="jikQQq9r" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 920CC1F000FF; Thu, 17 Sep 2026 16:22:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789662127; bh=hPwY/rZ5RGVL8GJJmy9BbVJaVUr2F6K9pSXggme9hx4=; h=From:To:Cc:Subject:Date:Reply-To; b=jikQQq9r4DqQ07llbntTW2IkIb6cWNUNOQavgFlerar50JQ0VWi9VjAIIu6e1hmH9 c4L5G9exthhSYPp7lOp9Bb19FBaOqTOxrLJeJ1ktZJgoODPrrUBZr9zoJ3RQOr5xlt Dsb/xsOhBXv+9yG1YizmDIjVoLOTHwMidmx2rark= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90251: Bluetooth: MSFT: validate evt_prefix_len against the response length Date: Thu, 17 Sep 2026 17:11:21 +0100 Message-ID: <2026091744-CVE-2026-90251-8427@gregkh> X-Mailer: git-send-email 2.55.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=4899; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=yEnyugMWMTQWQboQ4SX/8o69m6oluD0V/dyFnPjlqGo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBHpiTfdmXkxa9u6fgKzetQ9yGcKSDIq98XtnO86rf x70tSOxI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYSXMCwYE/p09t/F0QeU/k4 9WRO+VHp6OJcP4Z5eu9y2/R4whIO2hxQTH7Bda/utmYkAA== 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: MSFT: validate evt_prefix_len against the response length read_supported_features() only checks that the response covers the fixed part of struct msft_rp_read_supported_features, which is 11 bytes: if (skb->len < sizeof(*rp)) { bt_dev_err(hdev, "MSFT supported features length mismatch"); goto failed; } evt_prefix[] is a flexible array member and rp->evt_prefix_len is an unvalidated u8 taken straight out of that response, so msft->evt_prefix = kmemdup(rp->evt_prefix, rp->evt_prefix_len, GFP_KERNEL); copies up to 255 bytes from a reply that may have carried none of them. What is copied is data the controller never sent, and it is then used to match incoming vendor events in msft_vendor_evt(). This is not an out-of-bounds access. An skb data allocation always has at least SKB_DATA_ALIGN(sizeof(struct skb_shared_info)) bytes past the payload, which is more than the 255 byte maximum, so the read stays inside the allocation and KASAN does not report it. It is still a read of bytes the host was never given, with the length fully controlled by the controller. Reject a response that is too short for the prefix it declares. Verified with an emulated controller over /dev/vhci on a KASAN kernel, with vhci made to advertise an MSFT opcode the way btintel, btqca, btmtk and btrtl do unconditionally. A reply of exactly 11 bytes declaring evt_prefix_len = 255 reaches kmemdup and copies 255 bytes ("skb->len=11 evt_prefix_len=255", with the copied buffer dumped); since the reply ends at the fixed part, all 255 come from past the end of the response. No KASAN report is produced, as expected from the allocation slack described above. With this patch the response is rejected with "MSFT event prefix length mismatch" and msft->evt_prefix is left unset. The Linux kernel CVE team has assigned CVE-2026-90251 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit 145373cb1b1fcdba2059e945d0aa2613af2e84d1 and fixed in 5.10.270 with commit dce783a10e70f013410f5b583a29fc3286899629 Issue introduced in 5.8 with commit 145373cb1b1fcdba2059e945d0aa2613af2e84d1 and fixed in 5.15.221 with commit 21f539c59ed330b671d75fd119c5f659ff92fbd1 Issue introduced in 5.8 with commit 145373cb1b1fcdba2059e945d0aa2613af2e84d1 and fixed in 6.1.188 with commit 52b1b3b4d403cbda1b70ce2385e1a71f166a87ba Issue introduced in 5.8 with commit 145373cb1b1fcdba2059e945d0aa2613af2e84d1 and fixed in 6.6.157 with commit e804d54a5a99d99250490e68093eff7190472e6f Issue introduced in 5.8 with commit 145373cb1b1fcdba2059e945d0aa2613af2e84d1 and fixed in 6.12.110 with commit 620c2631cff490d14d0b9d56f185cc745806d6d7 Issue introduced in 5.8 with commit 145373cb1b1fcdba2059e945d0aa2613af2e84d1 and fixed in 6.18.52 with commit 7c2658023d839b651368a5b8b781bf9a817647cb Issue introduced in 5.8 with commit 145373cb1b1fcdba2059e945d0aa2613af2e84d1 and fixed in 7.2.6 with commit 63562cfaea8a650fdb31ee8de21c32e3600be642 Issue introduced in 5.8 with commit 145373cb1b1fcdba2059e945d0aa2613af2e84d1 and fixed in 7.3-rc1 with commit 0079e1a944634ab2dc1c7cdec1144486d096407e 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-90251 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/msft.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/dce783a10e70f013410f5b583a29fc3286899629 https://git.kernel.org/stable/c/21f539c59ed330b671d75fd119c5f659ff92fbd1 https://git.kernel.org/stable/c/52b1b3b4d403cbda1b70ce2385e1a71f166a87ba https://git.kernel.org/stable/c/e804d54a5a99d99250490e68093eff7190472e6f https://git.kernel.org/stable/c/620c2631cff490d14d0b9d56f185cc745806d6d7 https://git.kernel.org/stable/c/7c2658023d839b651368a5b8b781bf9a817647cb https://git.kernel.org/stable/c/63562cfaea8a650fdb31ee8de21c32e3600be642 https://git.kernel.org/stable/c/0079e1a944634ab2dc1c7cdec1144486d096407e