Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793187744; b=MuQayiB/QHq+EjBd+FbqeyTvSImkW13aWGyyMI+a3612tEt7YXKS/kitRQiaiu9ejod/ z0DKYzmMiAYI2LCmcrDJPHTKHSZK2r/Fo12T0tEgT7S8Ic5vND6kVOzwumDpeep7fmWgf mXZ53WJ1SyAKbzIlbZhVsE1+EP1T7wXL0IqUTc8GUwCqOrxoDrpa9oRAq6cImjiaSYiiw j4Tp2op128Oal4CQIXrLpTniMFevbdxRqtR8Xxs/NLquVt04HMrwUsvI47988Wyveeek6 KaWxy7QUptPoSEgcQu/gnoocjcJsnkuje+9HWtFWpPw+q/NXruj6EJnqIXqmV4n0RvQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187744; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=QslPaNaWt+EI3nXP2lJe7+wBnTfq5LzKsBrIJvTOXfM=; b=O48srsCESZGB8l+BHMjhgbVBB2y95S1yLaRQpFJkLVfowE6QeKEUjhfhYEEHcLyKdKo8 zfIVM/pvBAAZLRnDu0ut4DDp7W3PWUaO+LWErkZjauceChTWkgU3n89CD1Ieja/RB41hP AOtXs7HT/NnUJIEcPe5sTdLJm3R+kWvprMg0YJugrSRrvozhptxRugR+t2HCjKuO8l6kK zFM2O0YCpEVdn4mw0MgUn13+BIBXmAFh2GfFqJ2UBiCK0NmZoliFkEWmbivld1KYSEbUc nqM9W9+UTijcRyWKLgb0RfQzyohSAUuVwktpOgYtYR/Msd8EgpANTLOxRN3xOAaGH6A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=L0ua+jBp; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 31889606A31A for ; Wed, 28 Oct 2026 11:42:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=L0ua+jBp Received: by smtp.kernel.org (Postfix) with ESMTPSA id 36A871F01825; Wed, 28 Oct 2026 11:42:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187744; bh=QslPaNaWt+EI3nXP2lJe7+wBnTfq5LzKsBrIJvTOXfM=; h=From:To:Cc:Subject:Date:Reply-To; b=L0ua+jBp4Ig1VlkxZB4m8O5fmoJ3zw8KrMNOqm+6QLS6vMDS5LwjaF509uX5J4DVA U3jSsYljuy8W0ivhIBBdpvKRmAskfSDVC+TP8Vmsv+T9QiN9gpf8dVcnnbtsDNstUc GlRu2tcUaXwWET6Qwuo3dSB0rTdr2LfQza/PTLpA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99202: scsi: libsas: Fix SMP IO deadlock during HA resume Date: Wed, 28 Oct 2026 11:36:29 +0100 Message-ID: <2026102814-CVE-2026-99202-80ac@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4347; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QrKjUw7uTveTmzc6ANEJnSzZqxyw7m6IdqbgrNpRB9w=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPzz9qawi0/b/b1+HOZO/r/QH3a/V0Tl1mKwvKYTPYZ RNUL8HTEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPpTmFY0P10qvsN9ryz//tb GJrXOz8NcWlZxDBXxCvmPld81UHFzRFR7CoScjdXXN4MAA== 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: scsi: libsas: Fix SMP IO deadlock during HA resume smp_execute_task_sg() calls pm_runtime_get_sync() on the host before issuing an SMP command. When that command is itself issued from the HA resume path, the get_sync() deadlocks: it waits for the ongoing resume (the device is RPM_RESUMING), while the resume is blocked in sas_drain_work() waiting for that same SMP IO to complete. The deadlock needs an expander-attached SATA disk. During sas_resume_ha() -> sas_drain_work(), DISCE_RESUME -> sas_resume_sata() -> ata_sas_port_resume() requests ATA_EH_RESET, and the hard reset for such a disk is done via SMP PHY CONTROL (sas_ata_hard_reset() -> sas_phy_reset() -> sas_smp_phy_control() -> smp_execute_task_sg()). Direct-attached SATA resets through lldd_control_phy() and SSP devices use TMFs, so neither hits this. Replace the get_sync()/put_sync() pair with pm_runtime_get_noresume()/pm_runtime_put(). smp_execute_task_sg() only needs to hold off autosuspend while the SMP is in flight, and it must not try to resume the host: a sync resume issued from the HA resume path itself is what deadlocks, and by the time sas_resume_ha() runs, hw_init has already reinitialized the hardware, so the device is accessible without one. The usage reference is still required. Discovery work normally runs inside an event worker's PM reference, taken at sas_notify_port_event() notify time and held until the handler has flushed the disco queue. sas_rediscover_ex_phy() however requeues DISCE_REVALIDATE_DOMAIN from within the revalidation worker itself, and flush_workqueue() does not wait for work items queued during execution, so that chained revalidation runs with no outer PM reference - without the get_noresume(), its SMP could race autosuspend. For the BSG path, sas_smp_handler() is the only caller which may find the host autosuspended: expander SMP requests do not go through any SCSI device request queue, so nothing else in that path holds the host awake. Resume it there with pm_runtime_resume_and_get() and check the result. The Linux kernel CVE team has assigned CVE-2026-99202 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18.44 with commit 9e24b47ef81d43b3fb1b14294f09991640c79fcc and fixed in 6.18.59 with commit c9fb89246d9922ac0a45d504adb03e0bb971310c Issue introduced in 7.2 with commit 3dbbbf656b850c9c8de05df6ad4a1dfc6ff02845 and fixed in 7.2.13 with commit 08b95ef36a64c3ae4490794bed3c35d0c3354e85 Issue introduced in 7.2 with commit 3dbbbf656b850c9c8de05df6ad4a1dfc6ff02845 and fixed in 7.3 with commit 81e097a064b28b4a1f6ca1a8b433e659c1bd64c0 Issue introduced in 6.1.183 with commit 09357f067122e2e28ec52e27013a1660a1571618 Issue introduced in 6.6.151 with commit e50a6523a603594a6d92cdecfe11997d639410a3 Issue introduced in 6.12.103 with commit c391b5899dd46485a5893696c12ae3e95a3a7325 Issue introduced in 7.1.8 with commit b9c44a14062093e9fc2d6bddc696cfceadb482d7 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-99202 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/scsi/libsas/sas_expander.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/c9fb89246d9922ac0a45d504adb03e0bb971310c https://git.kernel.org/stable/c/08b95ef36a64c3ae4490794bed3c35d0c3354e85 https://git.kernel.org/stable/c/81e097a064b28b4a1f6ca1a8b433e659c1bd64c0