CVE-2025-68371
scsi: smartpqi: Fix device resources accessed after device removal
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.
INFO
Published Date :
Dec. 24, 2025, 11:16 a.m.
Last Modified :
Nov. 10, 2026, 1:17 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Check device presence before reset handler execution.
- Cancel pending TMF work before device removal.
- Acquire LUN reset mutex during device freeing.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-68371.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-68371 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-68371
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-68371 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-68371 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
Nov. 10, 2026
Action Type Old Value New Value Added Affected Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2025/68xxx/CVE-2025-68371.json">CVE-2025-68371</a> -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Oct. 15, 2026
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/1a5c5a2f88e839af5320216a02ffb075b668596a Added Reference https://git.kernel.org/stable/c/4e1acf1b6dd6dd0495bda139daafd7a403ae2dc1 Added Reference https://git.kernel.org/stable/c/6d2390653d82cad0e1ba2676e536dd99678f6ef1 Added Reference https://git.kernel.org/stable/c/7dfa5a5516ec3c6b9b6c22ee18f0eb2df3f38ef2 Added Reference https://git.kernel.org/stable/c/b518e86d1a70a88f6592a7c396cf1b93493d1aab Added Reference https://git.kernel.org/stable/c/eccc02ba1747501d92bb2049e3ce378ba372f641 Removed Reference https://git.kernel.org/stable/c/1a5c5a2f88e839af5320216a02ffb075b668596a Removed Reference https://git.kernel.org/stable/c/4e1acf1b6dd6dd0495bda139daafd7a403ae2dc1 Removed Reference https://git.kernel.org/stable/c/6d2390653d82cad0e1ba2676e536dd99678f6ef1 Removed Reference https://git.kernel.org/stable/c/7dfa5a5516ec3c6b9b6c22ee18f0eb2df3f38ef2 Removed Reference https://git.kernel.org/stable/c/b518e86d1a70a88f6592a7c396cf1b93493d1aab Removed Reference https://git.kernel.org/stable/c/eccc02ba1747501d92bb2049e3ce378ba372f641 -
CVE Modified by 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
Oct. 15, 2026
Action Type Old Value New Value Added Affected Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2025/68xxx/CVE-2025-68371.json">CVE-2025-68371</a> Added Reference https://cert-portal.siemens.com/productcert/html/ssa-019113.html Added Reference https://cert-portal.siemens.com/productcert/html/ssa-457936.html Removed Reference https://cert-portal.siemens.com/productcert/html/ssa-019113.html -
CVE Translated by [email protected]
Oct. 13, 2026
Action Type Old Value New Value Added Translation Title: Linux, Description: En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: scsi: smartpqi: Corrección de recursos del dispositivo accedidos después de la eliminación del dispositivo Corrige posibles condiciones de carrera durante la eliminación del dispositivo. Anteriormente, un elemento de trabajo programado para restablecer una LUN aún podía ejecutarse después de que el dispositivo fuera eliminado, lo que llevaba a un uso después de liberación y otros problemas de acceso a recursos. Esta condición de carrera ocurre porque el gestor de aborto puede programar un restablecimiento de LUN concurrentemente con la eliminación del dispositivo a través de sdev_destroy(), lo que lleva a un uso después de liberación y acceso indebido a recursos liberados. - Verificar en el gestor de restablecimiento del dispositivo si el dispositivo aún está presente en la lista de dispositivos SCSI del controlador antes de ejecutarse; si no, el restablecimiento se omite. - Cancelar cualquier trabajo TMF pendiente que no haya comenzado en sdev_destroy(). - Asegurar que la liberación del dispositivo en sdev_destroy() se realice mientras se mantiene el mutex de restablecimiento de LUN para evitar condiciones de carrera con restablecimientos en curso. -
CVE Modified by 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
Jul. 14, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'Siemens', 'product': 'SIMATIC S7-1500 CPU 1518-4 PN/DP MFP', 'versions': [{'status': 'affected', 'version': 'V3.1.6', 'lessThan': '*', 'versionType': 'custom'}], 'defaultStatus': 'unknown'}, {'vendor': 'Siemens', 'product': 'SIMATIC S7-1500 CPU 1518-4 PN/DP MFP', 'versions': [{'status': 'affected', 'version': 'V3.1.6', 'lessThan': '*', 'versionType': 'custom'}], 'defaultStatus': 'unknown'}, {'vendor': 'Siemens', 'product': 'SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP', 'versions': [{'status': 'affected', 'version': 'V3.1.6', 'lessThan': '*', 'versionType': 'custom'}], 'defaultStatus': 'unknown'}, {'vendor': 'Siemens', 'product': 'SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP', 'versions': [{'status': 'affected', 'version': 'V3.1.6', 'lessThan': '*', 'versionType': 'custom'}], 'defaultStatus': 'unknown'}, {'vendor': 'Siemens', 'product': 'SIPLUS S7-1500 CPU 1518-4 PN/DP MFP', 'versions': [{'status': 'affected', 'version': 'V3.1.6', 'lessThan': '*', 'versionType': 'custom'}], 'defaultStatus': 'unknown'}] Added Reference https://cert-portal.siemens.com/productcert/html/ssa-019113.html -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '2d80f4054f7f901b8ad97358a9069616ac8524c7', 'lessThan': '7dfa5a5516ec3c6b9b6c22ee18f0eb2df3f38ef2', 'versionType': 'git'}, {'status': 'affected', 'version': '2d80f4054f7f901b8ad97358a9069616ac8524c7', 'lessThan': '6d2390653d82cad0e1ba2676e536dd99678f6ef1', 'versionType': 'git'}, {'status': 'affected', 'version': '2d80f4054f7f901b8ad97358a9069616ac8524c7', 'lessThan': 'eccc02ba1747501d92bb2049e3ce378ba372f641', 'versionType': 'git'}, {'status': 'affected', 'version': '2d80f4054f7f901b8ad97358a9069616ac8524c7', 'lessThan': '4e1acf1b6dd6dd0495bda139daafd7a403ae2dc1', 'versionType': 'git'}, {'status': 'affected', 'version': '2d80f4054f7f901b8ad97358a9069616ac8524c7', 'lessThan': '1a5c5a2f88e839af5320216a02ffb075b668596a', 'versionType': 'git'}, {'status': 'affected', 'version': '2d80f4054f7f901b8ad97358a9069616ac8524c7', 'lessThan': 'b518e86d1a70a88f6592a7c396cf1b93493d1aab', 'versionType': 'git'}], 'programFiles': ['drivers/scsi/smartpqi/smartpqi_init.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.0'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.0', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.1.160', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.120', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.63', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.17.13', 'versionType': 'semver', 'lessThanOrEqual': '6.17.*'}, {'status': 'unaffected', 'version': '6.18.2', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '6.19', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/scsi/smartpqi/smartpqi_init.c'], 'defaultStatus': 'affected'}] -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jan. 11, 2026
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/6d2390653d82cad0e1ba2676e536dd99678f6ef1 Added Reference https://git.kernel.org/stable/c/7dfa5a5516ec3c6b9b6c22ee18f0eb2df3f38ef2 -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Dec. 24, 2025
Action Type Old Value New Value Added 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. Added Reference https://git.kernel.org/stable/c/1a5c5a2f88e839af5320216a02ffb075b668596a Added Reference https://git.kernel.org/stable/c/4e1acf1b6dd6dd0495bda139daafd7a403ae2dc1 Added Reference https://git.kernel.org/stable/c/b518e86d1a70a88f6592a7c396cf1b93493d1aab Added Reference https://git.kernel.org/stable/c/eccc02ba1747501d92bb2049e3ce378ba372f641