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

High 7.8 Published Updated

A use-after-free vulnerability in the Linux kernel's pm8001 SCSI driver allows attackers to cause denial of service or potentially execute code via aborted TMF tasks.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-48791?

CVE-2022-48791 is a high-severity use after free vulnerability in Linux kernel, published on 16 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-416

Which versions are affected by CVE-2022-48791?

It affects 1 product.

Linux distribution packages (5)
kgraft-patch-SLE12-SP5_Update_60 SUSE:Linux Enterprise Live Patching 12 SP5All versions6-2.1
kernel-rt SUSE:Linux Enterprise Micro 5.1All versions5.3.18-150300.184.1
kernel-source-rt SUSE:Linux Enterprise Micro 5.1All versions5.3.18-150300.184.1
kernel-rt SUSE:Linux Enterprise Micro 5.2All versions5.3.18-150300.184.1
kernel-source-rt SUSE:Linux Enterprise Micro 5.2All versions5.3.18-150300.184.1

Products include Linux kernel.

How do I fix CVE-2022-48791?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2022-48791 being exploited?

There is no known exploitation of CVE-2022-48791 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-48791, GHSA-hrwc-pg2q-pgc2, SUSE-SU-2024:3304-1, SUSE-SU-2025:1092-1, UBUNTU-CVE-2022-48791.

Is CVE-2022-48791 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free