{"id":"CVE-2025-68371","summary":"scsi: smartpqi: Fix device resources accessed after device removal","details":"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.","modified":"2026-04-02T17:30:27.528715Z","published":"2025-12-24T10:33:01.896Z","related":["SUSE-SU-2026:20838-1","SUSE-SU-2026:20931-1","openSUSE-SU-2026:10039-1","openSUSE-SU-2026:10301-1","openSUSE-SU-2026:20416-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68371.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1a5c5a2f88e839af5320216a02ffb075b668596a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4e1acf1b6dd6dd0495bda139daafd7a403ae2dc1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6d2390653d82cad0e1ba2676e536dd99678f6ef1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7dfa5a5516ec3c6b9b6c22ee18f0eb2df3f38ef2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b518e86d1a70a88f6592a7c396cf1b93493d1aab"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eccc02ba1747501d92bb2049e3ce378ba372f641"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68371.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68371"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2d80f4054f7f901b8ad97358a9069616ac8524c7"},{"fixed":"7dfa5a5516ec3c6b9b6c22ee18f0eb2df3f38ef2"},{"fixed":"6d2390653d82cad0e1ba2676e536dd99678f6ef1"},{"fixed":"eccc02ba1747501d92bb2049e3ce378ba372f641"},{"fixed":"4e1acf1b6dd6dd0495bda139daafd7a403ae2dc1"},{"fixed":"1a5c5a2f88e839af5320216a02ffb075b668596a"},{"fixed":"b518e86d1a70a88f6592a7c396cf1b93493d1aab"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-68371.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.0.0"},{"fixed":"6.1.160"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.17.13"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.18.0"},{"fixed":"6.18.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-68371.json"}}],"schema_version":"1.7.5"}