Re: [PATCH] Bluetooth: hci_sock: validate event length before filtering

From: patchwork-bot+bluetooth

Date: Wed Sep 16 2026 - 14:09:31 EST


Hello:

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

On Tue, 15 Sep 2026 13:03:07 -0300 you wrote:
> is_filtered_packet() reads the event code from skb->data[0] without first
> checking that the skb is nonempty. When an opcode filter is configured,
> it also reads the command opcode at offsets 3 or 4 without checking that
> a Command Complete or Command Status event is long enough.
>
> hci_send_to_sock() invokes the filter before hci_event_packet() validates
> the event header. A malformed event supplied by a controller or a vhci
> device can therefore cause an out-of-bounds read.
>
> [...]

Here is the summary with links:
- Bluetooth: hci_sock: validate event length before filtering
https://git.kernel.org/bluetooth/bluetooth-next/c/b0a6cf99afd5

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