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 28EEB3C4B79 for ; Sun, 18 Oct 2026 15:56:30 +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=1792338991; cv=none; b=KU2l4cAN15qDCBy6Kzw+tpT13UtETvmcvMH8y0vYyAKxbDm3P73G+02NlhMD9n/O+qwYXKaEugmz5ZnM1ZYAHAdLmuslNwl0rrGaIgiTfFnAGm8gi2vLhF7tQPIT/TktlsjVMHCPqUmJDfeZRH60uj0RTirhXn7bwswvsfQTa5Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792338991; c=relaxed/simple; bh=c4BR1cCFjIEXfeBrcdQWKX8WRsJIiuDzblfk0ozRjdM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Jls2REzZUtpS4ztFHrx7x3kddD5h8tpddKFmi3d4GO9YEz20SyguZz3u0j3OMgubPvR3KhKYwodGVnuZbJeeWePqZzQNiYzZqIWFqxYGu+RoVqYz8GcdCcqQsPHpRmuJPjbmbQpLtkn5NGO+IbqkFWksmc5s2ePmEx26F88FpOs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=poYNSiMP; 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="poYNSiMP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A33BB1F000C4; Sun, 18 Oct 2026 15:56:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792338990; bh=ftFFdjlmRsaSP9VaAs3rw36oUmkxQh2+jh4L2905CGc=; h=From:To:Cc:Subject:Date:Reply-To; b=poYNSiMPsqFAqkYz5rDYMsIJeJMLvq7OY6C87nhkls/8nKztxzWrysZhwpouo/AB5 9sksa1OM48PVqobAtuhv6cNyTedQqgJzY8Bgi2IxxfibpUQYJPLfKX6piKjeA9FwcT SnqvBhXF2/tAzsBZc7GM9dYcaL8sCB7pB2MuEJUY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98736: Bluetooth: hci_conn: Lock parent access during enhanced SCO setup Date: Sun, 18 Oct 2026 17:45:11 +0200 Message-ID: <2026101812-CVE-2026-98736-09ed@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=4947; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=c6EhCe4t5k/QDwqbCvh7dWM/E1ET8592XM2VZxxfrdE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXvq8fnI3MLRV/vd2ue6Pgu8TRVfefittZec96eXJ7 /s6sq6d7ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ3DdmWNCTxb/hyYPOWYe/ /F8ytz/O01R813eGBfubxL7d4F6whv3s3ORLP37tVu7I0wQA 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_conn: Lock parent access during enhanced SCO setup Bluetooth: hci_conn: Lock parent access during enhanced SCO setup hci_enhanced_setup_sync() runs on the request workqueue without the hci_dev_lock held by its caller when setup was queued. Its CVSD capability check and find_next_esco_param() dereference conn->parent while the receive workqueue can unlink and release that parent. The following interleaving can cause a use-after-free: hci_enhanced_setup_sync() hci_disconn_complete_evt() load conn->parent hci_dev_lock() hci_conn_del(ACL parent) unlink SCO child drop link's parent reference clear child->parent release ACL parent bt_link_release() kfree(parent) hci_dev_unlock() read parent->features[0][3] The reference held for the queued SCO child does not keep its ACL parent alive after unlinking. Commit 42de40abe25d ("Bluetooth: hci_conn: fix the SCO setup context lifetime") protects the child stored in the queued context, but leaves these parent accesses unprotected. With a 40 ms diagnostic delay after loading conn->parent, an instrumented kernel based on fd179f8a05be, which already contains 42de40abe25d, BUG: KASAN: slab-use-after-free in hci_enhanced_setup_sync+0xda5/0xdf0 Read of size 1 at addr ffff888102204047 by task kworker/u17:0/93 Call Trace: hci_enhanced_setup_sync+0xda5/0xdf0 hci_cmd_sync_work+0x13c/0x290 process_one_work+0x6b4/0x10e0 Allocated by task 92: __hci_conn_add+0x304/0x1df0 hci_connect_acl+0x349/0x3e0 hci_connect_sco+0x3b/0x9a0 sco_sock_connect+0x475/0xca0 Freed by task 94: kfree+0x121/0x3c0 bt_link_release+0x79/0xa0 device_release+0xc8/0x240 kobject_put+0x14d/0x280 hci_conn_del+0x524/0xe30 hci_disconn_complete_evt+0x403/0x8c0 hci_event_packet+0x71b/0xb20 hci_rx_work+0x293/0x730 The accessed address is 71 bytes into the freed ACL parent, at its features[0][3] byte; the queued SCO child is a different object. The diagnostic preserves the loaded parent across the delay, matching the unmodified compiled capability check, and does not change the parent references or teardown path. Hold hci_dev_lock() across the codec switch, including every call to find_next_esco_param(), and release it on all selection errors. Keep configure_datapath_sync() outside the critical section because it waits for HCI events. Preserve parameter selection and existing return values. The Linux kernel CVE team has assigned CVE-2026-98736 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit e07a06b4eb417f5271d33ce2240e93c62d98b7b4 and fixed in 6.12.113 with commit 1239ef0fa809b5952fca679db3faa3e1c00e1dac Issue introduced in 6.1 with commit e07a06b4eb417f5271d33ce2240e93c62d98b7b4 and fixed in 6.18.56 with commit cabd58d9bb66d49d481f762ce986173db397435d Issue introduced in 6.1 with commit e07a06b4eb417f5271d33ce2240e93c62d98b7b4 and fixed in 7.2.10 with commit 93a737e4e042f59673cd580d35214f278d7b757d Issue introduced in 6.1 with commit e07a06b4eb417f5271d33ce2240e93c62d98b7b4 and fixed in 7.3-rc6 with commit 024e05f73a4c1263d031614bc36700ec135eecb4 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-98736 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_conn.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/1239ef0fa809b5952fca679db3faa3e1c00e1dac https://git.kernel.org/stable/c/cabd58d9bb66d49d481f762ce986173db397435d https://git.kernel.org/stable/c/93a737e4e042f59673cd580d35214f278d7b757d https://git.kernel.org/stable/c/024e05f73a4c1263d031614bc36700ec135eecb4