Re: [PATCH v3] Bluetooth: btnxpuart: Validate the FW dump header length
| Newsgroups | org.kernel.vger.linux-bluetooth,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <178699596488.1691257.10669499183665262272.git-patchwork-notify@kernel.org> |
Hello: This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>: On Fri, 14 Aug 2026 18:28:48 +0000 you wrote: > nxp_process_fw_dump() pulls the ACL header off the frame and then reads > seq_num and buf_len from a struct nxp_fw_dump_hdr placed at skb->data, > without checking that the ACL payload is long enough to contain it. > > h4_recv_buf() collects HCI_ACL_HDR_SIZE bytes of header followed by the > number of payload bytes named in that header, so skb->len is 4 + dlen > with dlen supplied by the controller and possibly smaller than the 8 > byte dump header, or zero. A short frame with connection handle 0xfff > therefore reads both fields from beyond the received data. > > [...] Here is the summary with links: - [v3] Bluetooth: btnxpuart: Validate the FW dump header length https://git.kernel.org/bluetooth/bluetooth-next/c/1fcf216462ec You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html