CVE-2026-46140: Bluetooth: btmtk: validate WMT event SKB length before struct access
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: btmtk: validate WMT event SKB length before struct access
btmtk_usb_hci_wmt_sync() casts the WMT event response SKB data to struct btmtk_hci_wmt_evt (7 bytes) and struct btmtk_hci_wmt_evt_funcc (9 bytes) without first checking that the SKB contains enough data. A short firmware response causes out-of-bounds reads from SKB tailroom.
Use skb_pull_data() to validate and advance past the base WMT event header. For the FUNC_CTRL case, pull the additional status field bytes before accessing them.
The Linux kernel CVE team has assigned CVE-2026-46140 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.11 with commit d019930b0049fc2648a6b279893d8ad330596e81 and fixed in 6.12.88 with commit c411cf1bfde951cfa821809cf4020ba177f76e0c Issue introduced in 6.11 with commit d019930b0049fc2648a6b279893d8ad330596e81 and fixed in 6.18.30 with commit 624fb79dadc1b65757986a9d0fdde5c0cf3fe179 Issue introduced in 6.11 with commit d019930b0049fc2648a6b279893d8ad330596e81 and fixed in 7.0.7 with commit 70d37a8b9229e394cc17ddad47e90b81d80fcd09 Issue introduced in 6.11 with commit d019930b0049fc2648a6b279893d8ad330596e81 and fixed in 7.1-rc3 with commit 634a4408c0615c523cf7531790f4f14a422b9206
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-46140
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/btmtk.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/c411cf1bfde951cfa821809cf4020ba177f76e0c https://git.kernel.org/stable/c/624fb79dadc1b65757986a9d0fdde5c0cf3fe179 https://git.kernel.org/stable/c/70d37a8b9229e394cc17ddad47e90b81d80fcd09 https://git.kernel.org/stable/c/634a4408c0615c523cf7531790f4f14a422b9206