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 3872A31BCB6 for ; Wed, 24 Dec 2025 10:59:46 +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=1766573989; cv=none; b=SC92/bHNSMyEEAGxHcBu7g/a6XPtW4fGk/UmksshH9M4fH/ZKUxIbPInDxKr9yWebdruzopn+C+wP7kZZ/eByFxR4Iya0LJQJfKF07ir6HJRjj5JUTO57kfAnvT9fqH/MqPBs8Y1S9Em10gjyLk66MoToAEx3ZKnYL/dBjSMEl8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766573989; c=relaxed/simple; bh=Y4pxMJgvCCKn9APf6vmKzokn//SW0esVCKIMwShvSDo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kS3vG2uRWJ/ouSYNxJKFV8wZeUg0JRKh+YtpVFQ4UidpOPCNfRhJJDNbpLAc7xWVL7sW1BpKKzU16kq73ajT+4XiEeM4Vju9fwDBq6WOyOYavAUe0wE3JUvgbHUM4cS9K2/kX2xMhJqEc7p5r2WknLzzDUz0opiJNYQcrYcvFMA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WLIwXDfJ; 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="WLIwXDfJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C1E4C4CEFB; Wed, 24 Dec 2025 10:59:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766573986; bh=Y4pxMJgvCCKn9APf6vmKzokn//SW0esVCKIMwShvSDo=; h=From:To:Cc:Subject:Date:Reply-To:From; b=WLIwXDfJWM2spAseHLqDMJXwNQQqolVtN0k2IBH3Vq3egLpmx4YXrwfFzp25YMt0G 31zbIYru1NDx7Bxd9R0z8SUS0BY7WBI4iv4BY4v+0oHGaiTdMrcSOB5CNxaDUXcLap q9jpjRtnQBL7xXqMJLhNfF9Vdjj++tW/W940KhZM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54038: Bluetooth: hci_conn: return ERR_PTR instead of NULL when there is no link Date: Wed, 24 Dec 2025 11:57:22 +0100 Message-ID: <2025122439-CVE-2023-54038-41bb@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=2363; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rng5ujiMZB2DPtqbil26BgGwGsLhn1nFcWCX0Cgtdvk=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnex54HR11WZm30/5G3et78beu3bPj5sjXBKu3X7dM7O tnvr4uZ1xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATOXeJYcH2jQ47rsxs59Vn u9fQzNNwf8/Obx0M8+yrWbgCLJeufOrIeYp9rfAv+4/MfwA= 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: return ERR_PTR instead of NULL when there is no link hci_connect_sco currently returns NULL when there is no link (i.e. when hci_conn_link() returns NULL). sco_connect() expects an ERR_PTR in case of any error (see line 266 in sco.c). Thus, hcon set as NULL passes through to sco_conn_add(), which tries to get hcon->hdev, resulting in dereferencing a NULL pointer as reported by syzkaller. The same issue exists for iso_connect_cis() calling hci_connect_cis(). Thus, make hci_connect_sco() and hci_connect_cis() return ERR_PTR instead of NULL. The Linux kernel CVE team has assigned CVE-2023-54038 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit 06149746e7203d5ffe2d6faf9799ee36203aa8b8 and fixed in 6.4.7 with commit 357ab53c83a5322437fa434e9a9e3e0bafe6b383 Issue introduced in 6.4 with commit 06149746e7203d5ffe2d6faf9799ee36203aa8b8 and fixed in 6.5 with commit b4066eb04bb67e7ff66e5aaab0db4a753f37eaad Issue introduced in 6.3.8 with commit f72fc94a17d45be98aecfd59c39b5b24a6a342e2 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-2023-54038 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/357ab53c83a5322437fa434e9a9e3e0bafe6b383 https://git.kernel.org/stable/c/b4066eb04bb67e7ff66e5aaab0db4a753f37eaad