CVE-2022-48791

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

HIGH
7.8
CVSS Score
Published: July 16, 2024 at 11:43 AM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 5.13.13v < 5.10.1025.10.61 ≤ v < 5.10.1025.11 ≤ v < 5.15.255.13.13 ≤ v < 5.145.14 ≤ v < 5.15.255.14 ≤ v < 5.16.115.14 ≤ v < 5.175.16 ≤ v < 5.16.115.10.615.13.135.14968ee9176a4489ce6d5ee54ff88dadfbff9b95f4d712d3fb484b7fa8d1d57e9ca6f134bb9d8c18b1fa3c19ceaa8b4b7c29d710c2c407df57d256a6c5
Vendor states this is fixed in 3c334cdfd94945b8edb94022a0371a8665b17366 (fixed)
Vendor states this is fixed in 510b21442c3a2e3ecc071ba3e666b320e7acdd61 (fixed)
Vendor states this is fixed in 61f162aa4381845acbdc7f2be4dfb694d027c018 (fixed)
Vendor states this is fixed in d872e7b5fe38f325f5206b6872746fa02c2b4819 (fixed)
Vendor states this is fixed in 5.10.102 (unaffected)
Vendor states this is fixed in 5.14 (unaffected)
Vendor states this is fixed in 5.15.25 (unaffected)
Vendor states this is fixed in 5.16.11 (unaffected)
Vendor states this is fixed in 5.17 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3c334cdfd94945b8edb94022a0371a8665b17366
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/510b21442c3a2e3ecc071ba3e666b320e7acdd61
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/61f162aa4381845acbdc7f2be4dfb694d027c018
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d872e7b5fe38f325f5206b6872746fa02c2b4819

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card