{"id":"CVE-2025-68371","aliases":["CVE-2025-68371"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: smartpqi: Fix device resources accessed after device removal","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: smartpqi: Fix device resources accessed after device removal\n\nCorrect possible race conditions during device removal.\n\nPreviously, a scheduled work item to reset a LUN could still execute\nafter the device was removed, leading to use-after-free and other\nresource access issues.\n\nThis race condition occurs because the abort handler may schedule a LUN\nreset concurrently with device removal via sdev_destroy(), leading to\nuse-after-free and improper access to freed resources.\n\n  - Check in the device reset handler if the device is still present in\n    the controller's SCSI device list before running; if not, the reset\n    is skipped.\n\n  - Cancel any pending TMF work that has not started in sdev_destroy().\n\n  - Ensure device freeing in sdev_destroy() is done while holding the\n    LUN reset mutex to avoid races with ongoing resets.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: smartpqi: Fix device resources accessed after device removal\n\nCorrect possible race conditions during device removal.\n\nPreviously, a scheduled work item to reset a LUN could still execute\nafter the device was removed, leading to use-after-free and other\nresource access issues.\n\nThis race condition occurs because the abort handler may schedule a LUN\nreset concurrently with device removal via sdev_destroy(), leading to\nuse-after-free and improper access to freed resources.\n\n  - Check in the device reset handler if the device is still present in\n    the controller's SCSI device list before running; if not, the reset\n    is skipped.\n\n  - Cancel any pending TMF work that has not started in sdev_destroy().\n\n  - Ensure device freeing in sdev_destroy() is done while holding the\n    LUN reset mutex to avoid races with ongoing resets.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad:\n\nscsi: smartpqi: Corrección de recursos del dispositivo accedidos después de la eliminación del dispositivo\n\nCorrige posibles condiciones de carrera durante la eliminación del dispositivo.\n\nAnteriormente, 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.\n\nEsta 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.\n\n  - 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.\n\n  - Cancelar cualquier trabajo TMF pendiente que no haya comenzado en sdev_destroy().\n\n  - 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.","source":"nvd"}],"published":"2025-12-24T10:33:01.896Z","modified":"2026-11-10T13:17:58.517Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"2d80f4054f7f901b8ad97358a9069616ac8524c7","fixed":"7dfa5a5516ec3c6b9b6c22ee18f0eb2df3f38ef2","status":"affected"},{"type":"git","introduced":"2d80f4054f7f901b8ad97358a9069616ac8524c7","fixed":"6d2390653d82cad0e1ba2676e536dd99678f6ef1","status":"affected"},{"type":"git","introduced":"2d80f4054f7f901b8ad97358a9069616ac8524c7","fixed":"eccc02ba1747501d92bb2049e3ce378ba372f641","status":"affected"},{"type":"git","introduced":"2d80f4054f7f901b8ad97358a9069616ac8524c7","fixed":"4e1acf1b6dd6dd0495bda139daafd7a403ae2dc1","status":"affected"},{"type":"git","introduced":"2d80f4054f7f901b8ad97358a9069616ac8524c7","fixed":"1a5c5a2f88e839af5320216a02ffb075b668596a","status":"affected"},{"type":"git","introduced":"2d80f4054f7f901b8ad97358a9069616ac8524c7","fixed":"b518e86d1a70a88f6592a7c396cf1b93493d1aab","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.0","status":"unaffected"},{"type":"semver","introduced":"6.1.160","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.120","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.63","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.13","lastAffected":"6.17.*","status":"unaffected"},{"type":"semver","introduced":"6.18.2","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/7dfa5a5516ec3c6b9b6c22ee18f0eb2df3f38ef2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6d2390653d82cad0e1ba2676e536dd99678f6ef1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eccc02ba1747501d92bb2049e3ce378ba372f641","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4e1acf1b6dd6dd0495bda139daafd7a403ae2dc1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1a5c5a2f88e839af5320216a02ffb075b668596a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b518e86d1a70a88f6592a7c396cf1b93493d1aab","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68371","url":"https://www.cve.org/CVERecord?id=CVE-2025-68371","licence":"CVE Terms of Use","modified":"2026-11-10T12:38:14.349Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68371","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68371","licence":"Public domain","modified":"2026-11-10T13:17:58.517Z"}],"updatedAt":"2026-11-25T22:59:09.872Z","epss":{"score":0.00242,"percentile":0.1645,"date":"2026-12-01T12:00:22.000Z"}}