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 2584A490BFA for ; Fri, 25 Sep 2026 10:27:45 +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=1790332066; cv=none; b=BjeX3KEwuCMM7tWvx2DJfJ1om3AnGbr0bbfjj5v02/435VRpPsgEixeu1uErVDqPAI+jBiwcX0d7V0gmQm34sXzaS+0NJ8/pcOHauKhIIaHs7xDnzDLQAsVfkvOMCvKeQ1kgG7dQACaveTGHxSV59PfP4lDSj+JXOuabQueTcdU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332066; c=relaxed/simple; bh=9VtwfI3BfbKANwdWEkOzrEfYoyegcZV/AbhH3anMv+E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ks4QCkmuMgPk+l1Fi/VVbWjcYI7ylFTWqaf0S5nz6EvRHC1lMsN//qKngcZgyV3asGB6Es7fu9q+xeib7Db3XTF6WtepnXNrIjaSI5/5DN3s/zf7MyyBSGV9oVuo6YXreJWVLQdoVv/n2vKaDmorKFMFdbIx4Z7bITtm6/qCDOM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bzBjNzR4; 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="bzBjNzR4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7FF061F000FF; Fri, 25 Sep 2026 10:27:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332065; bh=D/pSM6jfs0mscgitP8fWUdIU9VFPPo7003vJmeteYMA=; h=From:To:Cc:Subject:Date:Reply-To; b=bzBjNzR4kF2hEB/TKkoZjDa0vPgFYXDbybPWcrsKiQc5FvvvuNcBevPOKIVxqZruQ N77QxfXJCsCqeL/H+9xqR+7acdxH+IrHEfE1aDryKFPyQVASvBkCyvXtiqZaSinPrb euPJCKjE0XAGQ86Rn8XPCYXd0TylwMUURfjR3ZMg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97908: Bluetooth: btqcomsmd: destroy RPMsg endpoints before freeing hci_dev Date: Fri, 25 Sep 2026 12:23:31 +0200 Message-ID: <2026092506-CVE-2026-97908-7bf1@gregkh> X-Mailer: git-send-email 2.55.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=3393; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=voyr3nOOSICSz/V6IiK5Bnu5QXPi+/NcEjnVHCDLVR0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvP26xHWdn7qnV0m2GpQ3rN6jeSb/XtPy2ruLnz1M4 p+ZerGyI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaSG8wwh2+H9tpMyRfOyxsv ph/Xmc/442KFLcP8lMaoVtPzqYatcbOrNs7salQP3uYAAA== 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: btqcomsmd: destroy RPMsg endpoints before freeing hci_dev The command and ACL RPMsg endpoints store struct btqcomsmd as their callback private data. The receive callbacks dereference btq->hdev without taking an hci_dev reference. The current teardown order frees the hci_dev before destroying the RPMsg endpoints in both the hci_register_dev() error path and the driver remove path. If WCNSS delivers data in that window, the endpoint callback can run with an already freed hci_dev and pass it to the Bluetooth core. For qcom_smd endpoints, rpmsg_destroy_ept() closes the channel and clears the callback under the channel recv_lock. The receive path holds the same lock while invoking the callback, so destroying the endpoints first both prevents new callbacks and serializes with any callback already running. Destroy the command and ACL endpoints before hci_free_dev(). Keep hci_unregister_dev() first during remove so the HCI core stops issuing operations before the transport endpoints are shut down. In the full registration-error cleanup path, return directly after freeing the hci_dev to avoid falling through to the partial-construction labels and destroying the endpoints twice. The Linux kernel CVE team has assigned CVE-2026-97908 to this issue. Affected and fixed versions =========================== Issue introduced in 4.12 with commit 5052de8deff5619a9b7071f00084fd0264b58e17 and fixed in 6.12.111 with commit 962dcc1d8a52e64428cae07806e7f6b8d3ec6ac0 Issue introduced in 4.12 with commit 5052de8deff5619a9b7071f00084fd0264b58e17 and fixed in 6.18.53 with commit 2dcc2240b4e5f6e5dce1736f82666aba40eb3b13 Issue introduced in 4.12 with commit 5052de8deff5619a9b7071f00084fd0264b58e17 and fixed in 7.2.7 with commit 2d016208a011558f211ec9687889df8318654730 Issue introduced in 4.12 with commit 5052de8deff5619a9b7071f00084fd0264b58e17 and fixed in 7.3-rc3 with commit f5a427b16e45210dee656b0860728f3d496dee85 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-97908 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: drivers/bluetooth/btqcomsmd.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/962dcc1d8a52e64428cae07806e7f6b8d3ec6ac0 https://git.kernel.org/stable/c/2dcc2240b4e5f6e5dce1736f82666aba40eb3b13 https://git.kernel.org/stable/c/2d016208a011558f211ec9687889df8318654730 https://git.kernel.org/stable/c/f5a427b16e45210dee656b0860728f3d496dee85