Bluetooth: btmtksdio: Fix out-of-bounds DMA read in the TX path
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel fa0ad2d277c7adead61d1c22411c55cea6990c2a, Kernel 0b71a6caaf284915c8cf9cd320ecee9f0361824a, Kernel 7b37556d7d801b79096c7ba8ea92db2338aa8b00 and 8 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=9aebfd4a2200ab8075e44379c758bccefdc589bb <fa0ad2d277c7adead61d1c22411c55cea6990c2a, >=9aebfd4a2200ab8075e44379c758bccefdc589bb <0b71a6caaf284915c8cf9cd320ecee9f0361824a, >=9aebfd4a2200ab8075e44379c758bccefdc589bb <7b37556d7d801b79096c7ba8ea92db2338aa8b00, >=9aebfd4a2200ab8075e44379c758bccefdc589bb <7b80d2701a68456c536f82e577dbed2f60ccb82b, >=9aebfd4a2200ab8075e44379c758bccefdc589bb <9a785ea864214aaffd8300683825c3f788d0b634, >=9aebfd4a2200ab8075e44379c758bccefdc589bb <c8742f53c9ef623decd5285403df0e5b5273c9fd, =5.2 | fa0ad2d277c7adead61d1c22411c55cea6990c2a, 0b71a6caaf284915c8cf9cd320ecee9f0361824a, 7b37556d7d801b79096c7ba8ea92db2338aa8b00, 7b80d2701a68456c536f82e577dbed2f60ccb82b, 9a785ea864214aaffd8300683825c3f788d0b634, c8742f53c9ef623decd5285403df0e5b5273c9fd |
| linux-kernel: Kernel | >=6.13.0 <6.18.52, >=6.19.0 <7.2.6, >=6.2.0 <6.6.157, >=6.7.0 <6.12.110, >=5.2.0 <6.1.188 | 6.18.52, 7.2.6, 6.6.157, 6.12.110, 6.1.188 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket