Re: [PATCH v2] Bluetooth: hci_codec: validate vendor codec count length
From: patchwork-bot+bluetooth
Date: Thu Sep 10 2026 - 15:55:51 EST
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>:
On Mon, 24 Aug 2026 21:42:36 +0545 you wrote:
> The Read Local Supported Codecs parsers consume the variable-sized
> standard codec array before parsing the vendor codec count. Although the
> initial reply-size check includes a vendor count byte in the fixed layout,
> it does not guarantee that the byte remains after the standard codec array.
>
> If a controller reply ends immediately after that array, calculating the
> vendor codec array size reads vnd_codecs->num beyond the skb data. Use
> skb_pull_data() to validate and consume each codec header before using its
> count in both command variants.
>
> [...]
Here is the summary with links:
- [v2] Bluetooth: hci_codec: validate vendor codec count length
https://git.kernel.org/bluetooth/bluetooth-next/c/803d146cd56b
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html