Re: [PATCH v3] Bluetooth: btusb: fix use-after-free in force_poll_sync

From: patchwork-bot+bluetooth

Date: Thu Nov 05 2026 - 11:52:28 EST


Hello:

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

On Thu, 5 Nov 2026 13:56:39 +0800 you wrote:
> The force_poll_sync debugfs file uses the driver's struct btusb_data as
> its private data. The file is created under hdev->debugfs and is removed
> only when the HCI device is released, while btusb_disconnect() frees
> btusb_data unconditionally. The HCI device can outlive the driver data,
> for example when an HCI socket still references it, so reading or
> writing the already opened file then dereferences freed memory:
>
> [...]

Here is the summary with links:
- [v3] Bluetooth: btusb: fix use-after-free in force_poll_sync
https://git.kernel.org/bluetooth/bluetooth-next/c/868c886f45f7

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