{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-48791","id":"CVE-2022-48791","title":"scsi: pm8001: Fix use-after-free for aborted TMF sas_task","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: pm8001: Fix use-after-free for aborted TMF sas_task\n\nCurrently a use-after-free may occur if a TMF sas_task is aborted before we\nhandle the IO completion in mpi_ssp_completion(). The abort occurs due to\ntimeout.\n\nWhen the timeout occurs, the SAS_TASK_STATE_ABORTED flag is set and the\nsas_task is freed in pm8001_exec_interna","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: pm8001: Fix use-after-free for aborted TMF sas_task\n\nCurrently a use-after-free may occur if a TMF sas_task is aborted before we\nhandle the IO completion in mpi_ssp_completion(). The abort occurs due to\ntimeout.\n\nWhen the timeout occurs, the SAS_TASK_STATE_ABORTED flag is set and the\nsas_task is freed in pm8001_exec_internal_tmf_task().\n\nHowever, if the I/O completion occurs later, the I/O completion still\nthinks that the sas_task is available. Fix this by clearing the ccb->task\nif the TMF times out - the I/O completion handler does nothing if this\npointer is cleared.","published":"2024-07-16T11:43:47.211Z","updated":"2026-11-17T07:00:26.223685509Z","reserved":"2024-07-16T11:38:08.893Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"968ee9176a4489ce6d5ee54ff88dadfbff9b95f4","lessThan":"d872e7b5fe38f325f5206b6872746fa02c2b4819","status":"affected","versionType":"git"},{"version":"d712d3fb484b7fa8d1d57e9ca6f134bb9d8c18b1","lessThan":"3c334cdfd94945b8edb94022a0371a8665b17366","status":"affected","versionType":"git"},{"version":"d712d3fb484b7fa8d1d57e9ca6f134bb9d8c18b1","lessThan":"510b21442c3a2e3ecc071ba3e666b320e7acdd61","status":"affected","versionType":"git"},{"version":"d712d3fb484b7fa8d1d57e9ca6f134bb9d8c18b1","lessThan":"61f162aa4381845acbdc7f2be4dfb694d027c018","status":"affected","versionType":"git"},{"version":"fa3c19ceaa8b4b7c29d710c2c407df57d256a6c5","status":"affected","versionType":"git"},{"version":"5.10.61","lessThan":"5.10.102","status":"affected","versionType":"semver"},{"version":"5.13.13","lessThan":"5.14","status":"affected","versionType":"semver"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","lessThan":"5.14","status":"unaffected","versionType":"semver"},{"version":"5.10.102","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.25","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.16.11","lessThanOrEqual":"5.16.*","status":"unaffected","versionType":"semver"},{"version":"5.17","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-416"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/d872e7b5fe38f325f5206b6872746fa02c2b4819","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/3c334cdfd94945b8edb94022a0371a8665b17366","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/510b21442c3a2e3ecc071ba3e666b320e7acdd61","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/61f162aa4381845acbdc7f2be4dfb694d027c018","tags":["x_transferred","Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48791.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48791","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00246,"epssPercentile":0.16074,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-48791","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48791","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-48791","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-48791","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}