Re: [PATCH] Bluetooth: btrsi: Move set_bt_context after successful HCI registration
From: patchwork-bot+bluetooth
Date: Fri Jul 24 2026 - 15:09:36 EST
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>:
On Wed, 22 Jul 2026 16:31:36 +0800 you wrote:
> In rsi_hci_attach(), ops->set_bt_context() stores the newly allocated
> h_adapter into common->bt_adapter before hci_alloc_dev() and
> hci_register_dev() are called. If either of these fails, h_adapter
> is freed but common->bt_adapter remains a non-NULL dangling pointer.
>
> This causes a deterministically reachable use-after-free when the
> device operates in a BT+WiFi coexistence mode and CONFIG_RSI_COEX
> is enabled. The following software-only trigger paths exist:
>
> [...]
Here is the summary with links:
- Bluetooth: btrsi: Move set_bt_context after successful HCI registration
https://git.kernel.org/bluetooth/bluetooth-next/c/17abcfc57c8a
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html