CVE-2026-74302: Bluetooth: hci_core: Fix UAF in hci_unregister_dev()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hci_core: Fix UAF in hci_unregister_dev()
hci_unregister_dev() does not disable cmd_timer and ncmd_timer before the hci_dev structure is freed. If a timeout fires during device teardown, the callback dereferences freed memory (including the hdev->reset function pointer), leading to a use-after-free.
Add disable_delayed_work_sync() calls alongside the existing disable_work_sync() calls to ensure both timers are fully quiesced before teardown proceeds.
The Linux kernel CVE team has assigned CVE-2026-74302 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.10 with commit 0d151a103775dd9645c78c97f77d6e2a5298d913 and fixed in 6.12.97 with commit 48c7ad6afcc58c2cda11fed39791708103b6a644 Issue introduced in 6.10 with commit 0d151a103775dd9645c78c97f77d6e2a5298d913 and fixed in 6.18.40 with commit a0fd1086a57b982f8c24ae4ab165c2af39fe1735 Issue introduced in 6.10 with commit 0d151a103775dd9645c78c97f77d6e2a5298d913 and fixed in 7.1.5 with commit 672d52d9412252e61b8de8d773ccdf5a277cf540 Issue introduced in 6.10 with commit 0d151a103775dd9645c78c97f77d6e2a5298d913 and fixed in 7.2-rc1 with commit 5edcc018fa6e80b2c478454a4a8229c23d67c181 Issue introduced in 4.19.319 with commit 48542881997e17b49dc16b93fe910e0cfcf7a9f9 Issue introduced in 5.4.281 with commit 9cfc84b1d464cc024286f42a090718f9067b80ed Issue introduced in 5.10.223 with commit ddeda6ca5f218b668b560d90fc31ae469adbfd92 Issue introduced in 5.15.164 with commit d2ce562a5aff1dcd0c50d9808ea825ef90da909f Issue introduced in 6.1.101 with commit 96600c2e5ee8213dbab5df1617293d8e847bb4fa Issue introduced in 6.6.42 with commit d6cbce18370641a21dd889e8613d8153df15eb39 Issue introduced in 6.9.11 with commit 3f939bd73fed12dddc2a32a76116c19ca47c7678
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-74302
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/bluetooth/hci_core.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/48c7ad6afcc58c2cda11fed39791708103b6a644 https://git.kernel.org/stable/c/a0fd1086a57b982f8c24ae4ab165c2af39fe1735 https://git.kernel.org/stable/c/672d52d9412252e61b8de8d773ccdf5a277cf540 https://git.kernel.org/stable/c/5edcc018fa6e80b2c478454a4a8229c23d67c181