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 61DC83B47C1 for ; Sun, 18 Oct 2026 15:57:56 +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=1792339077; cv=none; b=DD4eN7NQGLdM51AcNXsVePtsY8K3zR72L7MMEjsXMTthtF7DYTr4SoNxdyS/q789g8ClIJh234JefmYgKse+oeqIB13Del3tyS1JXtwXSBKeMVywXIuJPFdrOEYkHmK2m5KXKN8qVAganZLb1JYt3Skrz4qgVwXxq5zW4dlrIcM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792339077; c=relaxed/simple; bh=xpToalbtBdBKh6pRJ5/tFZ6Mwa89ncK2twXqqlKethY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ECpflKkMYzja2wdQpPMVxthQx2KnVQ3ru6iHCQeJhP/XHT/qig75oG3xqa4ZBEQElfq7fcOqoOk+3VFmVtrG+SFlL0yFT2Gee1VAy1TiYpweEkwTs5T4kLzve4aJ5+ZTf8fUo2q5zSwdEI9GSLWgZlf7LD49cIhXZDLUvAiREro= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=llbE3SrF; 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="llbE3SrF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 062851F000C4; Sun, 18 Oct 2026 15:57:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792339076; bh=ivbrUrck07hqbIPseCu7kCgq/wH5gL4rGB0W2Q8Bftw=; h=From:To:Cc:Subject:Date:Reply-To; b=llbE3SrF1ls6XmhnGgYQeI50+mF/Z8Km+vLAVithliu1fDfHCcbNLgNoSJIofUZpl HtNXMwWqGKu5hGDBaaB4JLIYnlRBHhmiCnVy0oW33HmqUyvhjFfASOKoufuxCuEuGh 9Fhdg0yHwW94eN+nbnuG+qfqPdVqZ3NyA+TgoGy8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98738: Bluetooth: Serialize SMP remote OOB data access Date: Sun, 18 Oct 2026 17:45:13 +0200 Message-ID: <2026101812-CVE-2026-98738-a393@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=3921; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=t/2x+j7XGZCYpI0ufvUlrc6VN4pi3KtFC/yiAwtOnYw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXvqkOSkvuaBT/MI81mua34waRYa4xZPVfgb8SnvP8 f5K36GgjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjILQaGeUr1SSmPGSucP7fY 3jV1L33y99R2N4a5cld32sjopffNmqrybLJYfNraKXWSAA== 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: Serialize SMP remote OOB data access build_pairing_cmd() looks up remote OOB data and copies its contents without holding hdev->lock, which serializes the list's writers. After SMP finds an entry, a concurrent management Remove Remote OOB Data command can unlink and free it before SMP reads its present flag or copies its random and confirmation values. Removal can also invalidate an entry while the lookup is still traversing the list. KASAN reported: BUG: KASAN: slab-use-after-free in build_pairing_cmd+0x948/0x9b0 Call Trace: build_pairing_cmd+0x948/0x9b0 smp_recv_cb+0x459f/0x8110 l2cap_recv_frame+0xf14/0x9190 l2cap_recv_acldata+0xa64/0xd40 hci_rx_work+0x4ca/0x730 Allocated by task 87: hci_add_remote_oob_data+0x11d/0x530 add_remote_oob_data+0x282/0x400 hci_sock_sendmsg+0x1033/0x1ea0 Freed by task 93: hci_remote_oob_data_clear+0x108/0x1c0 remove_remote_oob_data+0x198/0x220 hci_sock_sendmsg+0x1033/0x1ea0 Taking hdev->lock in build_pairing_cmd() would recurse for callers that already hold it and invert the device-to-L2CAP lock order on the receive path. Add a per-device remote_oob_lock instead, held across the SMP lookup and copies and by the add, remove and clear helpers. Cover initialization and in-place updates as well, so SMP cannot read partially initialized or updated OOB values. Release the mutex on allocation failure, preserving the existing error return. The new critical sections acquire no device, connection or channel locks. Writers retain their existing hdev->lock protection, which continues to serialize the other readers without changing their locking or behavior. The Linux kernel CVE team has assigned CVE-2026-98738 to this issue. Affected and fixed versions =========================== Issue introduced in 3.19 with commit 02b05bd8b0a632e9a26795bced8f19ca6a5f7079 and fixed in 6.12.113 with commit 1e11412a1b9854a89d044576d616675b16141d87 Issue introduced in 3.19 with commit 02b05bd8b0a632e9a26795bced8f19ca6a5f7079 and fixed in 6.18.56 with commit 889c61e3d0f1091a958e4b2a24b20bab23d915c4 Issue introduced in 3.19 with commit 02b05bd8b0a632e9a26795bced8f19ca6a5f7079 and fixed in 7.2.10 with commit df5162eeb10e69fe0c2349503882c4a09077f001 Issue introduced in 3.19 with commit 02b05bd8b0a632e9a26795bced8f19ca6a5f7079 and fixed in 7.3-rc6 with commit 81a2345f1984f0b36d3226571bc196316a01b648 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-98738 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: include/net/bluetooth/hci_core.h net/bluetooth/hci_core.c net/bluetooth/smp.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/1e11412a1b9854a89d044576d616675b16141d87 https://git.kernel.org/stable/c/889c61e3d0f1091a958e4b2a24b20bab23d915c4 https://git.kernel.org/stable/c/df5162eeb10e69fe0c2349503882c4a09077f001 https://git.kernel.org/stable/c/81a2345f1984f0b36d3226571bc196316a01b648