CVE-2026-98737
Description
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hci_sync: Fix inquiry cache use-after-free
The sync command worker holds hdev->req_lock, but inquiry-cache updates and flushes use hdev->lock. Both hci_acl_create_conn_sync() and hci_stop_discovery_sync() look up entries and read their fields without taking hdev->lock.
After either lookup returns, a concurrent HCIINQUIRY ioctl can acquire hdev->lock and flush the cache, freeing the entry. The worker then reads the freed entry while preparing a create-connection or remote-name-cancel command. The list traversal also races with cache updates and removal.
KASAN reported these accesses:
BUG: KASAN: slab-use-after-free in hci_acl_create_conn_sync+0x5f1/0x650 Workqueue: hci0 hci_cmd_sync_work Call Trace: hci_acl_create_conn_sync+0x5f1/0x650 hci_cmd_sync_work+0x13c/0x290
Allocated by task 90: hci_inquiry_cache_update+0x3e6/0x7d0 hci_inquiry_result_evt+0x3cb/0x560
Freed by task 93: hci_inquiry_cache_flush+0x111/0x2b0 hci_inquiry+0x2f2/0x780 hci_sock_ioctl+0x269/0x5f0
BUG: KASAN: slab-use-after-free in hci_stop_discovery_sync+0x3b1/0x3c0 Workqueue: hci0 hci_cmd_sync_work Call Trace: hci_stop_discovery_sync+0x3b1/0x3c0 hci_cmd_sync_work+0x173/0x300
Allocated by task 86: hci_inquiry_cache_update+0x483/0x940 hci_inquiry_result_evt+0x3cb/0x560
Freed by task 91: hci_inquiry_cache_flush+0x13e/0x2f0 hci_inquiry+0x2f2/0x780 hci_sock_ioctl+0x269/0x5f0
Hold hdev->lock across each lookup and all reads from its result. Copy the remote address before unlocking so discovery cancellation does not retain a cache entry pointer. Release the lock before sending synchronous HCI commands, since their completion handlers may need the same lock.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
31- osv-coords30 versionspkg:linux/kernelpkg:rpm/opensuse/dtb-aarch64&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/dtb-aarch64&distro=openSUSE%20Leap%2016.1pkg:rpm/opensuse/kernel-64kb&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/kernel-64kb&distro=openSUSE%20Leap%2016.1pkg:rpm/opensuse/kernel-azure&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/kernel-azure&distro=openSUSE%20Leap%2016.1pkg:rpm/opensuse/kernel-default&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/kernel-default&distro=openSUSE%20Leap%2016.1pkg:rpm/opensuse/kernel-default-base&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/kernel-default-base&distro=openSUSE%20Leap%2016.1pkg:rpm/opensuse/kernel-docs&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/kernel-docs&distro=openSUSE%20Leap%2016.1pkg:rpm/opensuse/kernel-kvmsmall&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/kernel-kvmsmall&distro=openSUSE%20Leap%2016.1pkg:rpm/opensuse/kernel-nvidia64kb&distro=openSUSE%20Leap%2016.1pkg:rpm/opensuse/kernel-obs-build&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/kernel-obs-build&distro=openSUSE%20Leap%2016.1pkg:rpm/opensuse/kernel-obs-qa&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/kernel-obs-qa&distro=openSUSE%20Leap%2016.1pkg:rpm/opensuse/kernel-rt&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/kernel-rt&distro=openSUSE%20Leap%2016.1pkg:rpm/opensuse/kernel-source&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/kernel-source&distro=openSUSE%20Leap%2016.1pkg:rpm/opensuse/kernel-source-nvidia&distro=openSUSE%20Leap%2016.1pkg:rpm/opensuse/kernel-syms&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/kernel-syms&distro=openSUSE%20Leap%2016.1pkg:rpm/opensuse/kernel-syms-nvidia&distro=openSUSE%20Leap%2016.1pkg:rpm/opensuse/kernel-zfcpdump&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/kernel-zfcpdump&distro=openSUSE%20Leap%2016.1
>= 5.17.0, < 6.6.160+ 29 more
- (no CPE)range: >= 5.17.0, < 6.6.160
- (no CPE)range: < 6.12.0-160000.41.1
- (no CPE)range: < 6.12.0-160100.9.1
- (no CPE)range: < 6.12.0-160000.41.1
- (no CPE)range: < 6.12.0-160100.9.1
- (no CPE)range: < 6.12.0-160000.41.1
- (no CPE)range: < 6.12.0-160100.9.1
- (no CPE)range: < 6.12.0-160000.41.1
- (no CPE)range: < 6.12.0-160100.9.1
- (no CPE)range: < 6.12.0-160000.41.1.160000.2.31
- (no CPE)range: < 6.12.0-160100.9.1.160100.3.14
- (no CPE)range: < 6.12.0-160000.41.1
- (no CPE)range: < 6.12.0-160100.9.1
- (no CPE)range: < 6.12.0-160000.41.1
- (no CPE)range: < 6.12.0-160100.9.1
- (no CPE)range: < 6.12.0-160100.7.1
- (no CPE)range: < 6.12.0-160000.41.1
- (no CPE)range: < 6.12.0-160100.9.1
- (no CPE)range: < 6.12.0-160000.41.1
- (no CPE)range: < 6.12.0-160100.9.1
- (no CPE)range: < 6.12.0-160000.41.1
- (no CPE)range: < 6.12.0-160100.9.1
- (no CPE)range: < 6.12.0-160000.41.1
- (no CPE)range: < 6.12.0-160100.9.1
- (no CPE)range: < 6.12.0-160100.7.1
- (no CPE)range: < 6.12.0-160000.41.1
- (no CPE)range: < 6.12.0-160100.9.1
- (no CPE)range: < 6.12.0-160100.7.1
- (no CPE)range: < 6.12.0-160000.41.1
- (no CPE)range: < 6.12.0-160100.9.1
Patches
Vulnerability mechanics
References
5- git.kernel.org/stable/c/333257e6e4a7bcaaea82fd357121d0f1e6b76c7bnvd
- git.kernel.org/stable/c/52edf1c0e59dea37b8368c4a2559dca96b2fdfeanvd
- git.kernel.org/stable/c/8ed67535fdff40ca652bcd4ac7da68d11d01bd34nvd
- git.kernel.org/stable/c/a642f498f0b08f2aa9f4a69468db92f57a72349dnvd
- git.kernel.org/stable/c/ddc9edb244cc8b5266595e8fc220e7813f2b603anvd
News mentions
0No linked articles in our index yet.