Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6CE483CB570 for ; Sun, 18 Oct 2026 15:57:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792339023; cv=none; b=GG9eD9XAl3sMJEPAobCyhQHFUUIuZmCB1z0yfTrxTikFGC4nZsCmOmyJFhXPkuKDkZgD2yr+e88nwGd0AHIg449QCsODTof6ueitAwaJpuoMwOV9s3v8WSCVzzxUx1PfhXZa5hefdj+ySgJ/X4MFJLsXgW4GEhluXQF/jkCnmPw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792339023; c=relaxed/simple; bh=Q5h4rlUUWmjZEvy8qGppzY47QHg23Y3Sjsfk0yzvPME=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JI1RyjlJ7wASh9ReAyE/iVOE+RTRJkXDVQStF4dhjIJdsAdvGdRi3Yw2gZskSsmkcPsrKo2eKCCAlULofBEbfQBle9G5gMJcS8V8h6ZI4+F+VQ/4unzkZr9yTujlVdUv67++Z7qlZdF3ECq7bmrkEoqgW9jmfwC2+kXMDymP/jc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nG6tMiGl; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="nG6tMiGl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F8631F000C4; Sun, 18 Oct 2026 15:56:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792339022; bh=NFPMZUQ2ML+ZNz5+otusCk/3P/uyRXB0nchqScOsYZY=; h=From:To:Cc:Subject:Date:Reply-To; b=nG6tMiGlVXwPAaQjVBeahKH0Yl2UZ5bpWO3Nx9aUS2XN68tB/0AfNDR1c0x4ceTXy CnYPItD4j5ckiCh1Sm3em7TM5iUF4F1so+sYBSmJtRqYKKJJnMXqXs+TAgTsiF2/CB FuflosYn03eo6cuG9P2SwdJ5/AXu+hPdgnQ5iBhU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98737: Bluetooth: hci_sync: Fix inquiry cache use-after-free Date: Sun, 18 Oct 2026 17:45:12 +0200 Message-ID: <2026101812-CVE-2026-98737-be37@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3937; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RajnsCtEqt/POs4SGv8RFkHwKk3KvdBtFMjUKNxnG54=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXvp80FhgYH/K5mRowMT3DyY1it5j2rff6+Gs0ngXu 4OJyR3VHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR1GSG+Qnxm8zk+VeuWyc3 YaX28eT09VsjVzEsmL6kNulw05PgrTdmLJ/4//h+Be4pxwE= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-98737 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit cf75ad8b41d2aa06f98f365d42a3ae8b059daddd and fixed in 6.12.113 with commit 52edf1c0e59dea37b8368c4a2559dca96b2fdfea Issue introduced in 5.17 with commit cf75ad8b41d2aa06f98f365d42a3ae8b059daddd and fixed in 6.18.56 with commit 333257e6e4a7bcaaea82fd357121d0f1e6b76c7b Issue introduced in 5.17 with commit cf75ad8b41d2aa06f98f365d42a3ae8b059daddd and fixed in 7.2.10 with commit a642f498f0b08f2aa9f4a69468db92f57a72349d Issue introduced in 5.17 with commit cf75ad8b41d2aa06f98f365d42a3ae8b059daddd and fixed in 7.3-rc6 with commit 8ed67535fdff40ca652bcd4ac7da68d11d01bd34 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-98737 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_sync.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/52edf1c0e59dea37b8368c4a2559dca96b2fdfea https://git.kernel.org/stable/c/333257e6e4a7bcaaea82fd357121d0f1e6b76c7b https://git.kernel.org/stable/c/a642f498f0b08f2aa9f4a69468db92f57a72349d https://git.kernel.org/stable/c/8ed67535fdff40ca652bcd4ac7da68d11d01bd34