Re: [PATCH v2] Bluetooth: eir: Fix stack OOB write when prepending the Flags AD

From: patchwork-bot+bluetooth

Date: Wed Jun 03 2026 - 13:52:15 EST


Hello:

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

On Wed, 3 Jun 2026 01:06:21 +0800 you wrote:
> eir_create_adv_data() builds the advertising data into a fixed-size
> buffer ("size", 31 for the legacy path). It may prepend a 3-byte "Flags"
> AD structure (LE_AD_NO_BREDR on an LE-only controller) and then copies
> the per-instance data without checking that it still fits:
>
> memcpy(ptr, adv->adv_data, adv->adv_data_len);
>
> [...]

Here is the summary with links:
- [v2] Bluetooth: eir: Fix stack OOB write when prepending the Flags AD
https://git.kernel.org/bluetooth/bluetooth-next/c/83dc982fad52

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