Re: [PATCH] Bluetooth: hci_qca: fix use-after-free in ibs debugfs files
From: patchwork-bot+bluetooth
Date: Thu Nov 05 2026 - 11:49:15 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:45 +0800 you wrote:
> qca_debugfs_init() creates an "ibs" directory under hdev->debugfs and
> stores pointers to fields of struct qca_data in the debugfs files.
> qca_close() frees qca_data without removing that directory, while
> hdev->debugfs is only removed when the HCI device is released. The HCI
> device can outlive the driver data, for example when an HCI socket still
> references it, so reading or writing one of the ibs files then
> dereferences freed memory.
>
> [...]
Here is the summary with links:
- Bluetooth: hci_qca: fix use-after-free in ibs debugfs files
https://git.kernel.org/bluetooth/bluetooth-next/c/eeca795cec6d
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html