Re: [PATCH] Bluetooth: L2CAP: validate connectionless PSM length

From: patchwork-bot+bluetooth

Date: Wed Jun 10 2026 - 11:52:39 EST


Hello:

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

On Mon, 8 Jun 2026 23:57:05 +0000 you wrote:
> Connectionless L2CAP frames carry a two-byte PSM at the start of the
> payload. l2cap_recv_frame() currently reads that PSM unconditionally
> after validating only the outer L2CAP length.
>
> A malformed connectionless frame with a zero- or one-byte payload can
> therefore make the parser read beyond the advertised skb payload and use
> tailroom bytes as part of the PSM. A VHCI-backed QEMU reproducer
> injected a one-byte connectionless payload and reached the unchecked
> read.
>
> [...]

Here is the summary with links:
- Bluetooth: L2CAP: validate connectionless PSM length
https://git.kernel.org/bluetooth/bluetooth-next/c/801f756504d1

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html