Re: [PATCH] Bluetooth: RFCOMM: validate skb length in rfcomm_recv_frame
[email protected] Fri, 24 Jul 2026 19:00:10 +0000
| Newsgroups | org.kernel.vger.linux-bluetooth,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <178491961039.3273549.4096598946894620170.git-patchwork-notify@kernel.org> |
Hello: This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>: On Wed, 22 Jul 2026 17:26:14 +0800 you wrote: > rfcomm_recv_frame() casts skb->data to struct rfcomm_hdr and dereferences > hdr->addr and hdr->ctrl without validating skb->len first. A truncated > frame with skb->len less than the minimum header size causes an > out-of-bounds read of uninitialized memory. Additionally, a zero-length > frame causes skb->len-- to underflow to UINT_MAX, making > skb_tail_pointer() read far past the buffer. > > [...] Here is the summary with links: - Bluetooth: RFCOMM: validate skb length in rfcomm_recv_frame https://git.kernel.org/bluetooth/bluetooth-next/c/4c7de7083a9a You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html