Re: [PATCH] Bluetooth: btrsi: Move set_bt_context after successful HCI registration
[email protected] Fri, 24 Jul 2026 19:00:18 +0000
| Newsgroups | org.kernel.vger.linux-bluetooth,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <178491961823.3273549.5264850910757463763.git-patchwork-notify@kernel.org> |
Hello: This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>: 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