Re: [PATCH] Bluetooth: eir: validate service data length before reading UUID
From: patchwork-bot+bluetooth
Date: Tue Sep 08 2026 - 13:25:32 EST
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>:
On Mon, 7 Sep 2026 00:37:43 +0100 you wrote:
> eir_get_service_data() reads a 16-bit UUID from the service data using
> get_unaligned_le16() without first checking that the data is long enough
> to hold a UUID16 (2 bytes). If a malformed EIR entry has a service data
> field with only 1 byte of payload (field_len=2), eir_get_data() returns
> dlen=1. The subsequent get_unaligned_le16() then reads 1 byte past the
> field boundary.
>
> [...]
Here is the summary with links:
- Bluetooth: eir: validate service data length before reading UUID
https://git.kernel.org/bluetooth/bluetooth-next/c/334ddae615d8
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html