{"id":"CVE-2022-48792","published":"2024-07-16T11:43:48Z","modified":"2026-08-05T08:52:22Z","title":"scsi: pm8001: Fix use-after-free for aborted SSP/STP sas_task","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: pm8001: Fix use-after-free for aborted SSP/STP sas_task\n\nCurrently a use-after-free may occur if a sas_task is aborted by the upper\nlayer before we handle the I/O completion in mpi_ssp_completion() or\nmpi_sata_completion().\n\nIn this case, the following are the two steps in handling those I/O\ncompletions:\n\n - Call complete() to inform the upper layer handler of completion of\n   the I/O.\n\n - Release driver resources associated with the sas_task in\n   pm8001_ccb_task_free() call.\n\nWhen complete() is called, the upper layer may free the sas_task. As such,\nwe should not touch the associated sas_task afterwards, but we do so in the\npm8001_ccb_task_free() call.\n\nFix by swapping the complete() and pm8001_ccb_task_free() calls ordering.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0024,"percentile":0.15446,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/fe9ac3eaa2e387a5742b380b73a5a6bc237bf184","tags":[]},{"url":"https://git.kernel.org/stable/c/d9d93f32534a0a80a1c26bdb0746d90a7b19c2c2","tags":[]},{"url":"https://git.kernel.org/stable/c/f61f9fccb2cb4bb275674a79d638704db6bc2171","tags":[]},{"url":"https://git.kernel.org/stable/c/df7abcaa1246e2537ab4016077b5443bb3c09378","tags":[]}],"priority":{"score":8.5,"factors":[{"name":"EPSS percentile","points":3.09},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 869ddbdcae3b4fb83b99889abae31544c149b210, < fe9ac3eaa2e387a5742b380b73a5a6bc237bf184",">= 869ddbdcae3b4fb83b99889abae31544c149b210, < d9d93f32534a0a80a1c26bdb0746d90a7b19c2c2",">= 869ddbdcae3b4fb83b99889abae31544c149b210, < f61f9fccb2cb4bb275674a79d638704db6bc2171",">= 869ddbdcae3b4fb83b99889abae31544c149b210, < df7abcaa1246e2537ab4016077b5443bb3c09378"]},{"vendor":"Linux","product":"Linux","versions":["4.15"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T16:59:32.216009Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-53671","exploited":false,"provenance":"source"}}