{"id":"CVE-2025-68371","published":"2025-12-24T10:33:01Z","modified":"2026-11-10T12:38:14Z","title":"scsi: smartpqi: Fix device resources accessed after device removal","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00291,"percentile":0.14225,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/7dfa5a5516ec3c6b9b6c22ee18f0eb2df3f38ef2","tags":[]},{"url":"https://git.kernel.org/stable/c/6d2390653d82cad0e1ba2676e536dd99678f6ef1","tags":[]},{"url":"https://git.kernel.org/stable/c/eccc02ba1747501d92bb2049e3ce378ba372f641","tags":[]},{"url":"https://git.kernel.org/stable/c/4e1acf1b6dd6dd0495bda139daafd7a403ae2dc1","tags":[]},{"url":"https://git.kernel.org/stable/c/1a5c5a2f88e839af5320216a02ffb075b668596a","tags":[]},{"url":"https://git.kernel.org/stable/c/b518e86d1a70a88f6592a7c396cf1b93493d1aab","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[]}],"priority":{"score":2.8,"factors":[{"name":"EPSS percentile","points":2.84}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 2d80f4054f7f901b8ad97358a9069616ac8524c7, < 7dfa5a5516ec3c6b9b6c22ee18f0eb2df3f38ef2",">= 2d80f4054f7f901b8ad97358a9069616ac8524c7, < 6d2390653d82cad0e1ba2676e536dd99678f6ef1",">= 2d80f4054f7f901b8ad97358a9069616ac8524c7, < eccc02ba1747501d92bb2049e3ce378ba372f641",">= 2d80f4054f7f901b8ad97358a9069616ac8524c7, < 4e1acf1b6dd6dd0495bda139daafd7a403ae2dc1",">= 2d80f4054f7f901b8ad97358a9069616ac8524c7, < 1a5c5a2f88e839af5320216a02ffb075b668596a",">= 2d80f4054f7f901b8ad97358a9069616ac8524c7, < b518e86d1a70a88f6592a7c396cf1b93493d1aab"]},{"vendor":"Linux","product":"Linux","versions":["6.0"]}],"euvd":{"id":"EUVD-2025-205083","exploited":false,"provenance":"source"}}