Skip to content

Bluetooth: btmtk: WMT event length validation (CVE-2026-46140) - 6.6.y backport

Siva Balasubramanian linux-bluetooth stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Bluetooth: btmtk: validate WMT event SKB length before struct accessdrivers/bluetooth/btmtk.c+13 -21 reply
2/2Bluetooth: btmtk: accept too short WMT FUNC_CTRL eventsdrivers/bluetooth/btmtk.c+2 -20 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchMikhail Gavrilov
1/2
2/2T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] Bluetooth: btmtk: WMT event length validation (CVE-2026-46140) - 6.6.y backport

Please consider the following two upstream commits for 6.6.y. They are present in 6.12.y but missing from 6.6.y (latest checked: v6.6.143), which contains the offending commit d019930b0049 ("Bluetooth: btmtk:
move btusb_mtk_hci_wmt_sync to btmtk.c") and is therefore affected.

634a4408c061 ("Bluetooth: btmtk: validate WMT event SKB length before

                 struct access")  -- CVE-2026-46140, tagged Cc: stable

e3ac0d9f1a20 ("Bluetooth: btmtk: accept too short WMT FUNC_CTRL
events") -- Fixes the above; regression fix for
real MT7925/MT7922 hardware. Both are needed together.

The first patch fixes an out-of-bounds read: btmtk_usb_hci_wmt_sync() casts the WMT event response SKB data into struct btmtk_hci_wmt_evt / struct btmtk_hci_wmt_evt_funcc without checking the SKB length first. The second patch is the required follow-up: the strict length check breaks devices that legitimately send a shorter FUNC_CTRL event, so it must accompany the first.

Both cherry-pick cleanly onto linux-6.6.y at v6.6.143 with no conflicts; skb_pull_data() is available in 6.6.y. Compile-tested only (CC [M] drivers/bluetooth/btmtk.o) - no affected hardware available.

Pauli Virtanen (1):
Bluetooth: btmtk: accept too short WMT FUNC_CTRL events

Tristan Madani (1):
Bluetooth: btmtk: validate WMT event SKB length before struct access

 drivers/bluetooth/btmtk.c | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

--
2.34.1