Re: [PATCH] Bluetooth: hci_sock: Prevent race in socket write iter and sock bind

From: patchwork-bot+bluetooth

Date: Wed Nov 19 2025 - 09:30:42 EST


Hello:

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

On Sun, 16 Nov 2025 17:04:43 +0800 you wrote:
> There is a potential race condition between sock bind and socket write
> iter. bind may free the same cmd via mgmt_pending before write iter sends
> the cmd, just as syzbot reported in UAF[1].
>
> Here we use hci_dev_lock to synchronize the two, thereby avoiding the
> UAF mentioned in [1].
>
> [...]

Here is the summary with links:
- Bluetooth: hci_sock: Prevent race in socket write iter and sock bind
https://git.kernel.org/bluetooth/bluetooth-next/c/1f738d68430c

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