VDB

CVE-2022-48791

CVE-2022-48791 PUBLISHED CVSS 7.8 HIGH

scsi: pm8001: Fix use-after-free for aborted TMF sas_task

Reported by linux · Published July 16, 2024

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.

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux968ee9176a4489ce6d5ee54ff88dadfbff9b95f4, d712d3fb484b7fa8d1d57e9ca6f134bb9d8c18b1, d712d3fb484b7fa8d1d57e9ca6f134bb9d8c18b1
LinuxLinux5.14, 0, 5.10.102
LinuxLinux5.13.13, 5.16.11, 5.17
linuxlinux_kernel5.14, 5.14, 5.13.13

Timeline

  • Jul 16, 2024 CVE Published
  • Jul 17, 2024 EPSS Score (30 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (76 in total, the first dated here)
  • Mar 30, 2026 Security Advisory (84 in total, the first dated here)
  • May 23, 2026 Coalition ESS Score
  • Jul 27, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-48791
vulnetix vdb fixes CVE-2022-48791

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-48791/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›