{"id":"CVE-2022-48791","aliases":["CVE-2022-48791"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: pm8001: Fix use-after-free for aborted TMF sas_task","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: scsi: pm8001: Corrección de use-after-free para TMF sas_task abortada Actualmente, puede ocurrir un use-after-free si se cancela una TMF sas_task antes de que manejemos la finalización de IO en mpi_ssp_completion( ). El aborto se produce debido al tiempo de espera. Cuando se agota el tiempo de espera, se establece el indicador SAS_TASK_STATE_ABORTED y sas_task se libera en pm8001_exec_internal_tmf_task(). Sin embargo, si la finalización de E/S se produce más tarde, la finalización de E/S todavía piensa que sas_task está disponible. Solucione este problema borrando la tarea ccb-&gt; si se agota el tiempo de espera del TMF; el controlador de finalización de E/S no hace nada si se borra este puntero.","source":"nvd"}],"published":"2024-07-16T11:43:47.211Z","modified":"2026-08-05T08:52:21.770Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"968ee9176a4489ce6d5ee54ff88dadfbff9b95f4","fixed":"d872e7b5fe38f325f5206b6872746fa02c2b4819","status":"affected"},{"type":"git","introduced":"d712d3fb484b7fa8d1d57e9ca6f134bb9d8c18b1","fixed":"3c334cdfd94945b8edb94022a0371a8665b17366","status":"affected"},{"type":"git","introduced":"d712d3fb484b7fa8d1d57e9ca6f134bb9d8c18b1","fixed":"510b21442c3a2e3ecc071ba3e666b320e7acdd61","status":"affected"},{"type":"git","introduced":"d712d3fb484b7fa8d1d57e9ca6f134bb9d8c18b1","fixed":"61f162aa4381845acbdc7f2be4dfb694d027c018","status":"affected"},{"type":"git","version":"fa3c19ceaa8b4b7c29d710c2c407df57d256a6c5","status":"affected"},{"type":"semver","introduced":"5.10.61","fixed":"5.10.102","status":"affected"},{"type":"semver","introduced":"5.13.13","fixed":"5.14","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.14","status":"unaffected"},{"type":"semver","introduced":"5.10.102","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.25","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.16.11","lastAffected":"5.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"5.10.102"},{"status":"affected","introduced":"5.11","fixed":"5.15.25"},{"status":"affected","introduced":"5.16","fixed":"5.16.11"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/d872e7b5fe38f325f5206b6872746fa02c2b4819","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3c334cdfd94945b8edb94022a0371a8665b17366","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/510b21442c3a2e3ecc071ba3e666b320e7acdd61","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/61f162aa4381845acbdc7f2be4dfb694d027c018","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:59:35.678Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-48791","url":"https://www.cve.org/CVERecord?id=CVE-2022-48791","licence":"CVE Terms of Use","modified":"2026-08-05T08:52:21.770Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-48791","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48791","licence":"Public domain","modified":"2026-08-04T10:17:21.610Z"}],"updatedAt":"2026-11-25T22:58:19.883Z","epss":{"score":0.00246,"percentile":0.16988,"date":"2026-12-01T12:00:22.000Z"}}