# CVE-2022-48792: scsi: pm8001: Fix use-after-free for aborted SSP/STP sas_task

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-07-16T11:43:48.026Z
- Modified: 2026-08-05T08:52:22.849Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

scsi: pm8001: Fix use-after-free for aborted SSP/STP sas_task

Currently a use-after-free may occur if a sas_task is aborted by the upper
layer before we handle the I/O completion in mpi_ssp_completion() or
mpi_sata_completion().

In this case, the following are the two steps in handling those I/O
completions:

 - Call complete() to inform the upper layer handler of completion of
   the I/O.

 - Release driver resources associated with the sas_task in
   pm8001_ccb_task_free() call.

When complete() is called, the upper layer may free the sas_task. As such,
we should not touch the associated sas_task afterwards, but we do so in the
pm8001_ccb_task_free() call.

Fix by swapping the complete() and pm8001_ccb_task_free() calls ordering.

(As written by CVE List.)

## Affected

- Linux Linux: from 869ddbdcae3b4fb83b99889abae31544c149b210 before fe9ac3eaa2e387a5742b380b73a5a6bc237bf184; from 869ddbdcae3b4fb83b99889abae31544c149b210 before d9d93f32534a0a80a1c26bdb0746d90a7b19c2c2; from 869ddbdcae3b4fb83b99889abae31544c149b210 before f61f9fccb2cb4bb275674a79d638704db6bc2171; from 869ddbdcae3b4fb83b99889abae31544c149b210 before df7abcaa1246e2537ab4016077b5443bb3c09378; 4.15 (not affected: before 4.15; 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 *)
- linux linux_kernel: before 5.10.102; from 5.11 before 5.15.25; from 5.16 before 5.16.11

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/fe9ac3eaa2e387a5742b380b73a5a6bc237bf184> (patch)
- <https://git.kernel.org/stable/c/d9d93f32534a0a80a1c26bdb0746d90a7b19c2c2> (patch)
- <https://git.kernel.org/stable/c/f61f9fccb2cb4bb275674a79d638704db6bc2171> (patch)
- <https://git.kernel.org/stable/c/df7abcaa1246e2537ab4016077b5443bb3c09378> (patch)

## Sources

- CVE List: [CVE-2022-48792](https://www.cve.org/CVERecord?id=CVE-2022-48792), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2022-48792](https://nvd.nist.gov/vuln/detail/CVE-2022-48792), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2022-48792 · Whole record: https://cve.day/CVE-2022-48792.json · Rebuilt by cve.day 2026-11-25T22:58:19.884Z
