Skip to contentSkip to conversation

CVE-2026-98292: Bluetooth: btmtksdio, btmtkuart: validate WMT event length before struct access

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 6

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: btmtksdio, btmtkuart: validate WMT event length before struct access

btmtksdio.c and btmtkuart.c cast a received WMT event straight to struct btmtk_hci_wmt_evt and read its op/flag fields without checking the event is long enough to contain them, unlike btmtk.c. The FUNC_CTRL case then further casts to struct btmtk_hci_wmt_evt_funcc and reads its 2-byte status field, again without a length check. Firmware that sends a short or malformed WMT event makes both drivers read past the end of the received SKB.

Mirror btmtk.c: validate the base WMT header with skb_pull_data() before touching any of its fields, and when a FUNC_CTRL event turns out to be the short, header-only form (a plain enable/disable ack with no status word), decode the result from the header's own flag byte instead (0 = success, otherwise failure).

Verified setup on MT7920, MT7921, MT7922 and MT7925: no regression.

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

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

	Issue introduced in 5.1 with commit e0b67035a90b58d01f911fed77b6e3da153da66e and fixed in 7.2.8 with commit 5a5cfd8488c97e1b8939515429fe4c81e9f2df4f
	Issue introduced in 5.1 with commit e0b67035a90b58d01f911fed77b6e3da153da66e and fixed in 7.3-rc4 with commit 8879e3e0a84a86954c855caceead4867e74a9a27

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

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/btmtksdio.c
drivers/bluetooth/btmtkuart.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/5a5cfd8488c97e1b8939515429fe4c81e9f2df4f
	https://git.kernel.org/stable/c/8879e3e0a84a86954c855caceead4867e74a9a27