CVE-2022-48791

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

7.8 high EPSS 0.25%

Published 16 Jul 2024 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2022-48791

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-48791 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.9% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Sep 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 968ee9176a4489ce6d5ee54ff88dadfbff9b95f4, before d872e7b5fe38f325f5206b6872746fa02c2b4819
affected from d712d3fb484b7fa8d1d57e9ca6f134bb9d8c18b1, before 3c334cdfd94945b8edb94022a0371a8665b17366
affected from d712d3fb484b7fa8d1d57e9ca6f134bb9d8c18b1, before 510b21442c3a2e3ecc071ba3e666b320e7acdd61
affected from d712d3fb484b7fa8d1d57e9ca6f134bb9d8c18b1, before 61f162aa4381845acbdc7f2be4dfb694d027c018
affected fa3c19ceaa8b4b7c29d710c2c407df57d256a6c5
affected from 5.10.61, before 5.10.102
affected from 5.13.13, before 5.14
Other versions: unaffected
Linux
affected 5.14
unaffected before 5.14
unaffected from 5.10.102 up to and including 5.10.*
unaffected from 5.15.25 up to and including 5.15.*
unaffected from 5.16.11 up to and including 5.16.*
unaffected 5.17 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-48791 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-48791

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-48791
trivy image --scanners vuln IMAGE | grep CVE-2022-48791

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-48791 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.