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 EE83234DB5B for ; Tue, 16 Dec 2025 15:07:58 +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=1765897679; cv=none; b=oDnAaPgNZafppUfotAuiv+MEqDJ1XeGhUKHYAsb6S7pfKbI3L6gA+ok3J6yRjr4mDC79p3jtbc4b0ZPl2Z/DmY9Hil1XRsuSg3ztXKj/dvlPAoTwQnLZRWUf1Lwb1XosSwHWJ6Cl4eBchEiOSwCE0ilZFE+0i70eQClkLS9Nb7Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765897679; c=relaxed/simple; bh=WMuQR5nKervE+mGm6lkjvQCLOM+2fw+JkpyW1z3IoPk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jeVhpN+zW7GbtROhUgthtnu3IUt2UE7BXVMhK+uOMSy+1G7T99u0jrnhZ/lCWrrjhpnbZ8ea2h0NaC+7pZBVA8683VkDj8S/s36C0leBKTJRj800BcYuP8FXB+ULRdxTtwx4WCMLkTCi2z7ks00g4msGjOttW097nbq4KebK64o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=K8yhfqXD; 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="K8yhfqXD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7AD7EC4CEF5; Tue, 16 Dec 2025 15:07:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765897678; bh=WMuQR5nKervE+mGm6lkjvQCLOM+2fw+JkpyW1z3IoPk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=K8yhfqXDZxzjOnZeyKeUknL8SSpVQF8NFd5IpZLXrEpZUt2Aba5aFMjNgpXB0w1ed QcHGoQ3JBsT1kr/+QHDmu8mljAxVHHRFQkRMI7gLGjTJh7eXMX7IkU5OyYQOwDxdB8 f4AK7p3v+VEc8/2bkbSPO5fx28xyCnTj74dW8K2s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68304: Bluetooth: hci_core: lookup hci_conn on RX path on protocol side Date: Tue, 16 Dec 2025 16:06:58 +0100 Message-ID: <2025121644-CVE-2025-68304-9ae7@gregkh> X-Mailer: git-send-email 2.52.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=3606; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hJj/T2xny9tB3gHJxhhDCiOK/9AZ2sb6NzIAqpFgOGc=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOpS0a5pdX33m21G3epH5GpYe89UIHbs5aJZh+5J1/1 pJkJYeqjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIg98MC+b8uZyTt69tZfbr Z3OeSXp/aruUKcQw32l98Mt55c4npP6bzZr4fvIPxmLOQgA= 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_core: lookup hci_conn on RX path on protocol side The hdev lock/lookup/unlock/use pattern in the packet RX path doesn't ensure hci_conn* is not concurrently modified/deleted. This locking appears to be leftover from before conn_hash started using RCU commit bf4c63252490b ("Bluetooth: convert conn hash to RCU") and not clear if it had purpose since then. Currently, there are code paths that delete hci_conn* from elsewhere than the ordered hdev->workqueue where the RX work runs in. E.g. commit 5af1f84ed13a ("Bluetooth: hci_sync: Fix UAF on hci_abort_conn_sync") introduced some of these, and there probably were a few others before it. It's better to do the locking so that even if these run concurrently no UAF is possible. Move the lookup of hci_conn and associated socket-specific conn to protocol recv handlers, and do them within a single critical section to cover hci_conn* usage and lookup. syzkaller has reported a crash that appears to be this issue: [Task hdev->workqueue] [Task 2] hci_disconnect_all_sync l2cap_recv_acldata(hcon) hci_conn_get(hcon) hci_abort_conn_sync(hcon) hci_dev_lock hci_dev_lock hci_conn_del(hcon) v-------------------------------- hci_dev_unlock hci_conn_put(hcon) conn = hcon->l2cap_data (UAF) The Linux kernel CVE team has assigned CVE-2025-68304 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit 5af1f84ed13a416297ab9ced7537f4d5ae7f329a and fixed in 6.17.11 with commit ec74cdf77310c43b01b83ee898a9bd4b4b0b8e93 Issue introduced in 6.6 with commit 5af1f84ed13a416297ab9ced7537f4d5ae7f329a and fixed in 6.18 with commit 79a2d4678ba90bdba577dc3af88cc900d6dcd5ee Issue introduced in 6.1.149 with commit cd55c13bbb3d093ae601aa97e588ed4c1390ebb1 Issue introduced in 6.4.16 with commit 4d3ca4a9aaf0aa798a6be372dc0fc3a29e37dd57 Issue introduced in 6.5.3 with commit 80265dd1d944c3f33e52375b5dbe654980bd2688 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-2025-68304 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/iso.c net/bluetooth/l2cap_core.c 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/ec74cdf77310c43b01b83ee898a9bd4b4b0b8e93 https://git.kernel.org/stable/c/79a2d4678ba90bdba577dc3af88cc900d6dcd5ee