Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 BF6393859EC for ; Fri, 1 May 2026 14:20:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777645221; cv=none; b=YsFW/VRiHBi1SPFWiE3DjaFhTwXNIy2TPo3PYoyVlp31hZgLdmbj9pnp56ZS4uv10XDH13BCtJ631h6tRm5ZMVZ5Kine4ZitqVYX9bA1CKfW+9vXpWe5ivpvXIDZqKoff6j0N9zUFgABU9YI0lbdkoBcPsrgOWnANwwZV7QVn2Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777645221; c=relaxed/simple; bh=dU6YjzMh8XN5lPQj30vIyP6u84BepGcFOjwd3IVerFo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dw6SVJoLa9aN5pM0mvTomFtBNRR9Eh/GZWbJC+iGMasafJG/igmypbhZg//1NF3fqspYMwStVQFhU9Xn+vejFfd+Aw9P/+7J2NUA6hnWen8C5r6PubkyQvGEZisfWkNzdcp0ekKZlTqFb6DVHlLaYmHKVy465CeYb+5/tnLAg+0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hSt6F60Q; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="hSt6F60Q" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58BC8C2BCB4; Fri, 1 May 2026 14:20:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777645221; bh=dU6YjzMh8XN5lPQj30vIyP6u84BepGcFOjwd3IVerFo=; h=From:To:Cc:Subject:Date:Reply-To:From; b=hSt6F60QhpeZUVLXM1OThfFZV0AwZy0fLvSbn4Y6q3aBdxIuokWpVXh+B81IEZ0Mp WHd/0rppubmQEo17KDE61IOw4XU77GPT5iZUTSwyOaZVO6daGNT+EgDoKODCtV7eSB MiwsTjUfGv+jTMfKXzM0CRJLvV3UpjBiJQbJglxY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43023: Bluetooth: SCO: fix race conditions in sco_sock_connect() Date: Fri, 1 May 2026 16:15:56 +0200 Message-ID: <2026050158-CVE-2026-43023-19eb@gregkh> X-Mailer: git-send-email 2.54.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=5756; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OjfkvUF/Zwn8Yvp0tYS/rK1yjpR1S/BiWf1XvDr7iCU=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlftiZdLhLgdpj11MvGTn1vAc8pe6sO/qX5kRou9w4nP 02fZyLcEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNxdmBYsOeihQPH1sW7zJZH ad5km5kX+UduPcM8Ja+Vfg7OAinK5aw/7G0a3udckFoIAA== 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: SCO: fix race conditions in sco_sock_connect() sco_sock_connect() checks sk_state and sk_type without holding the socket lock. Two concurrent connect() syscalls on the same socket can both pass the check and enter sco_connect(), leading to use-after-free. The buggy scenario involves three participants and was confirmed with additional logging instrumentation: Thread A (connect): HCI disconnect: Thread B (connect): sco_sock_connect(sk) sco_sock_connect(sk) sk_state==BT_OPEN sk_state==BT_OPEN (pass, no lock) (pass, no lock) sco_connect(sk): sco_connect(sk): hci_dev_lock hci_dev_lock hci_connect_sco <- blocked -> hcon1 sco_conn_add->conn1 lock_sock(sk) sco_chan_add: conn1->sk = sk sk->conn = conn1 sk_state=BT_CONNECT release_sock hci_dev_unlock hci_dev_lock sco_conn_del: lock_sock(sk) sco_chan_del: sk->conn=NULL conn1->sk=NULL sk_state= BT_CLOSED SOCK_ZAPPED release_sock hci_dev_unlock (unblocked) hci_connect_sco -> hcon2 sco_conn_add -> conn2 lock_sock(sk) sco_chan_add: sk->conn=conn2 sk_state= BT_CONNECT // zombie sk! release_sock hci_dev_unlock Thread B revives a BT_CLOSED + SOCK_ZAPPED socket back to BT_CONNECT. Subsequent cleanup triggers double sock_put() and use-after-free. Meanwhile conn1 is leaked as it was orphaned when sco_conn_del() cleared the association. Fix this by: - Moving lock_sock() before the sk_state/sk_type checks in sco_sock_connect() to serialize concurrent connect attempts - Fixing the sk_type != SOCK_SEQPACKET check to actually return the error instead of just assigning it - Adding a state re-check in sco_connect() after lock_sock() to catch state changes during the window between the locks - Adding sco_pi(sk)->conn check in sco_chan_add() to prevent double-attach of a socket to multiple connections - Adding hci_conn_drop() on sco_chan_add failure to prevent HCI connection leaks The Linux kernel CVE team has assigned CVE-2026-43023 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1.109 with commit 70a13b1e25fef37c87c8a1228ddb8900efbca7cf and fixed in 6.1.168 with commit dabf22269242e2f2bf44c43fcdc2fa763df7f9cc Issue introduced in 6.3 with commit 9a8ec9e8ebb5a7c0cfbce2d6b4a6b67b2b78e8f3 and fixed in 6.6.134 with commit adb90cd0f9f7a8d438fcb93354040fbafc5ae2a0 Issue introduced in 6.3 with commit 9a8ec9e8ebb5a7c0cfbce2d6b4a6b67b2b78e8f3 and fixed in 6.12.81 with commit 7e296ffdab5bdab718dff7c14288fdcb9154fa27 Issue introduced in 6.3 with commit 9a8ec9e8ebb5a7c0cfbce2d6b4a6b67b2b78e8f3 and fixed in 6.18.22 with commit 98c8d3bfdaa657d8f472dbbebd7ea8cd816d8a8d Issue introduced in 6.3 with commit 9a8ec9e8ebb5a7c0cfbce2d6b4a6b67b2b78e8f3 and fixed in 6.19.12 with commit d002bd11024bd231bcb606877e33951ffb7bed14 Issue introduced in 6.3 with commit 9a8ec9e8ebb5a7c0cfbce2d6b4a6b67b2b78e8f3 and fixed in 7.0 with commit 8a5b0135d4a5d9683203a3d9a12a711ccec5936b 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-43023 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/sco.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/dabf22269242e2f2bf44c43fcdc2fa763df7f9cc https://git.kernel.org/stable/c/adb90cd0f9f7a8d438fcb93354040fbafc5ae2a0 https://git.kernel.org/stable/c/7e296ffdab5bdab718dff7c14288fdcb9154fa27 https://git.kernel.org/stable/c/98c8d3bfdaa657d8f472dbbebd7ea8cd816d8a8d https://git.kernel.org/stable/c/d002bd11024bd231bcb606877e33951ffb7bed14 https://git.kernel.org/stable/c/8a5b0135d4a5d9683203a3d9a12a711ccec5936b