# CVE-2022-48791: linux: In the Linux kernel, the following vulnerability has been resolved:  scsi: pm8001: Fix use-after-free for aborted TMF...

CVE-2022-48791 is fixed in linux on 1 platform, first by DEBIAN-CVE-2022-48791, released July 16, 2024. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2022-48791
- Priority: High
- CVSS: 7.8 (high)
- EPSS: 0.0025
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jul 16, 2024

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | linux Debian 12.15 (bookworm) | 5.16.11-1 | [DEBIAN-CVE-2022-48791](https://patchblox.com/security/data/fix/linux/debian-cve-2022-48791.md) | Jul 16, 2024 |
| Linux | linux Debian 13.5 (trixie) | 5.16.11-1 | [DEBIAN-CVE-2022-48791](https://patchblox.com/security/data/fix/linux/debian-cve-2022-48791.md) | Jul 16, 2024 |
| Linux | linux Debian 14 | 5.16.11-1 | [DEBIAN-CVE-2022-48791](https://patchblox.com/security/data/fix/linux/debian-cve-2022-48791.md) | Jul 16, 2024 |

---

Data as of 2026-11-09T07:25:28Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
