Skip to contentSkip to conversation

CVE-2026-90090: Bluetooth: btmtksdio: Fix out-of-bounds DMA read in the TX path

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

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: Fix out-of-bounds DMA read in the TX path

btmtksdio_tx_packet() rounds the transfer size up to the SDIO block size of 256 bytes, but hands the host controller the SKB buffer as is:

	err = sdio_writesb(bdev->func, MTK_REG_CTDR, skb->data,
			   round_up(skb->len, MTK_SDIO_BLOCK_SIZE));

Only skb->len bytes hold packet data, so the controller reads up to 255 bytes of uninitialised memory and sends it to the device over the SDIO bus. Depending on how much tailroom slack the SKB allocation happens to carry, that read can also extend past the end of the buffer.

Compute the padded length up front, ensure the SKB has tailroom for it, and zero-fill the padding with skb_put_zero(). skb->len then covers the padding, so sdio_writesb() no longer needs to round up. byte_tx keeps counting the header and the payload only, and the error path restores the SKB so that the caller can requeue it.

Writing behind skb->tail is only safe because the driver owns the buffer, which "Bluetooth: btmtksdio: Take exclusive ownership of the SKB before TX" ensures.

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

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

	Issue introduced in 5.2 with commit 9aebfd4a2200ab8075e44379c758bccefdc589bb and fixed in 6.1.188 with commit c8742f53c9ef623decd5285403df0e5b5273c9fd
	Issue introduced in 5.2 with commit 9aebfd4a2200ab8075e44379c758bccefdc589bb and fixed in 6.6.157 with commit 0b71a6caaf284915c8cf9cd320ecee9f0361824a
	Issue introduced in 5.2 with commit 9aebfd4a2200ab8075e44379c758bccefdc589bb and fixed in 6.12.110 with commit 9a785ea864214aaffd8300683825c3f788d0b634
	Issue introduced in 5.2 with commit 9aebfd4a2200ab8075e44379c758bccefdc589bb and fixed in 6.18.52 with commit 7b37556d7d801b79096c7ba8ea92db2338aa8b00
	Issue introduced in 5.2 with commit 9aebfd4a2200ab8075e44379c758bccefdc589bb and fixed in 7.2.6 with commit 7b80d2701a68456c536f82e577dbed2f60ccb82b
	Issue introduced in 5.2 with commit 9aebfd4a2200ab8075e44379c758bccefdc589bb and fixed in 7.3-rc1 with commit fa0ad2d277c7adead61d1c22411c55cea6990c2a

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

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

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/c8742f53c9ef623decd5285403df0e5b5273c9fd
	https://git.kernel.org/stable/c/0b71a6caaf284915c8cf9cd320ecee9f0361824a
	https://git.kernel.org/stable/c/9a785ea864214aaffd8300683825c3f788d0b634
	https://git.kernel.org/stable/c/7b37556d7d801b79096c7ba8ea92db2338aa8b00
	https://git.kernel.org/stable/c/7b80d2701a68456c536f82e577dbed2f60ccb82b
	https://git.kernel.org/stable/c/fa0ad2d277c7adead61d1c22411c55cea6990c2a