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 C5336306D3F for ; Wed, 24 Dec 2025 10:36:13 +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=1766572574; cv=none; b=KHtbzgtaVlq/JA4YbJQ7Sr4c++g5YKbRMVp/p/c6ofOVsAw1chGi89fghXEdPSpxvyaj4y3Z71lKpQz8T6oYc3GFBR1Xq3aXO8goO6M5szltl2b4fHJEMoekYWH5sxcZRN2JMq3jJeLxyuQGK/wvAFxygLM7HnTcHC6+E5sgiew= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766572574; c=relaxed/simple; bh=eNjSQgp3PgZPDPNYF2MqHnIlaSv06iOoHbyu/cRwivU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sSUZn8yQwQijCFHrJJ8SSMdRcQXZkcKOa3IxiQ55AvqV4EmQYE8Q4tmc+gOtvCFl8nxuv75pInukuUoVkkdFPJfzdGFqMY0TGSeHugvV/lCbtRvqpaAqV96wxv/rIMEqpMZx+Roczc2Ha9/d5aTtUsbuEY04RkdEH8Ki8Wivtew= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uT11XI+Q; 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="uT11XI+Q" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06C60C4CEFB; Wed, 24 Dec 2025 10:36:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766572573; bh=eNjSQgp3PgZPDPNYF2MqHnIlaSv06iOoHbyu/cRwivU=; h=From:To:Cc:Subject:Date:Reply-To:From; b=uT11XI+QoxLRX+t2t7Ayko8o7oxAAkoIGyaJmXp5g3pNSRSo1XkUyiJUv9jPoqd3V KbeHDwSHjqeDjIZjRUK6cgCNmFvCxMrlPZe43xLDKzrNh6bOapTgG5iosoOu02xxAb 4Lf+s3zv4wA6fZOSCVaBBWjpz0WGo3W90pfF7V3Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68371: scsi: smartpqi: Fix device resources accessed after device removal Date: Wed, 24 Dec 2025 11:35:16 +0100 Message-ID: <2025122401-CVE-2025-68371-5c31@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=3036; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wuj2pSBees0YN0sW1Pn0qBqzKr0QggpRMnv/iLBQNgM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneB6/6yDF8EPb+eaJxU+A+4c2VUevXNhu+2Os26xvHz +zGuXa1HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRLakM85Q9itUOMOovvS7X enmK0JJP4Tw/vjMs2N392nvmiqA9sptYph/mZne6+G1NPgA= 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: smartpqi: Fix device resources accessed after device removal Correct possible race conditions during device removal. Previously, a scheduled work item to reset a LUN could still execute after the device was removed, leading to use-after-free and other resource access issues. This race condition occurs because the abort handler may schedule a LUN reset concurrently with device removal via sdev_destroy(), leading to use-after-free and improper access to freed resources. - Check in the device reset handler if the device is still present in the controller's SCSI device list before running; if not, the reset is skipped. - Cancel any pending TMF work that has not started in sdev_destroy(). - Ensure device freeing in sdev_destroy() is done while holding the LUN reset mutex to avoid races with ongoing resets. The Linux kernel CVE team has assigned CVE-2025-68371 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 2d80f4054f7f901b8ad97358a9069616ac8524c7 and fixed in 6.12.63 with commit eccc02ba1747501d92bb2049e3ce378ba372f641 Issue introduced in 6.0 with commit 2d80f4054f7f901b8ad97358a9069616ac8524c7 and fixed in 6.17.13 with commit 4e1acf1b6dd6dd0495bda139daafd7a403ae2dc1 Issue introduced in 6.0 with commit 2d80f4054f7f901b8ad97358a9069616ac8524c7 and fixed in 6.18.2 with commit 1a5c5a2f88e839af5320216a02ffb075b668596a Issue introduced in 6.0 with commit 2d80f4054f7f901b8ad97358a9069616ac8524c7 and fixed in 6.19-rc1 with commit b518e86d1a70a88f6592a7c396cf1b93493d1aab 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-68371 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/smartpqi/smartpqi_init.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/eccc02ba1747501d92bb2049e3ce378ba372f641 https://git.kernel.org/stable/c/4e1acf1b6dd6dd0495bda139daafd7a403ae2dc1 https://git.kernel.org/stable/c/1a5c5a2f88e839af5320216a02ffb075b668596a https://git.kernel.org/stable/c/b518e86d1a70a88f6592a7c396cf1b93493d1aab