Re: [PATCH] Bluetooth: RFCOMM: validate skb length in rfcomm_recv_frame

From: patchwork-bot+bluetooth

Date: Fri Jul 24 2026 - 15:07:34 EST


Hello:

This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>:

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