7.8high
scsi: pm8001: Fix use-after-free for aborted TMF sas_task
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.25% (higher than 16% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: scsi: pm8001: Fix use-after-free for aborted TMF sas_task Currently a use-after-free may occur if a TMF sas_task is aborted before we handle the IO completion in mpi_ssp_completion(). The abort occurs due to timeout. When the timeout occurs, the SAS_TASK_STATE_ABORTED flag is set and the sas_task is freed in pm8001_exec_internal_tmf_task(). However, if the I/O completion occurs later, the I/O completion still thinks that the sas_task is available. Fix this by clearing the ccb->task if the TMF times out - the I/O completion handler does nothing if this pointer is cleared.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 968ee9176a4489ce6d5ee54ff88dadfbff9b95f4 before d872e7b5fe38f325f5206b6872746fa02c2b4819, from d712d3fb484b7fa8d1d57e9ca6f134bb9d8c18b1 before 3c334cdfd94945b8edb94022a0371a8665b17366, from d712d3fb484b7fa8d1d57e9ca6f134bb9d8c18b1 before 510b21442c3a2e3ecc071ba3e666b320e7acdd61, from d712d3fb484b7fa8d1d57e9ca6f134bb9d8c18b1 before 61f162aa4381845acbdc7f2be4dfb694d027c018, fa3c19ceaa8b4b7c29d710c2c407df57d256a6c5, from 5.10.61 before 5.10.102, from 5.13.13 before 5.14, 5.14 Not affected: before 5.14, from 5.10.102 up to 5.10.*, from 5.15.25 up to 5.15.*, from 5.16.11 up to 5.16.*, from 5.17 up to * | CVE List |
| linux linux_kernel | before 5.10.102, from 5.11 before 5.15.25, from 5.16 before 5.16.11 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: scsi: pm8001: Fix use-after-free for aborted TMF sas_task Currently a use-after-free may occur if a TMF sas_task is aborted before we handle the IO completion in mpi_ssp_completion(). The abort occurs due to timeout. When the timeout occurs, the SAS_TASK_STATE_ABORTED flag is set and the sas_task is freed in pm8001_exec_internal_tmf_task(). However, if the I/O completion occurs later, the I/O completion still thinks that the sas_task is available. Fix this by clearing the ccb->task if the TMF times out - the I/O completion handler does nothing if this pointer is cleared.
NVD (es)
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-> 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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-48791 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2022-48791 changed 2026-08-04 | Public domain |