Skip to content
Fencer Vulns
high 7.8

CVE-2022-48791 json

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

published 2024-07-16 2 y ago modified 2026-08-05 3 mo ago also EUVD-2022-53670

cvss
7.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.2%
EPSS 0.2% chance of exploitation in 30 days, percentile 15%
public exploits
0
none known

Summary

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.

Patch / fix

  • Linux Linux 5.10.102, 5.14, 5.15.25, 5.16.11, 5.17
  • linux Debian 14, Debian 13, Debian 12 5.16.11-1

debian advisories DEBIAN-CVE-2022-48791

  • linux Ubuntu 20.04 LTS 5.4.0-196.216
  • linux-aws Ubuntu 20.04 LTS 5.4.0-1133.143
  • linux-gcp Ubuntu 20.04 LTS 5.4.0-1137.146
  • linux-ibm Ubuntu 20.04 LTS 5.4.0-1080.85
  • linux-iot Ubuntu 20.04 LTS 5.4.0-1044.45
  • linux-kvm Ubuntu 20.04 LTS 5.4.0-1121.129
  • linux-azure Ubuntu 20.04 LTS 5.4.0-1138.145
  • linux-gkeop Ubuntu 20.04 LTS 5.4.0-1100.104

ubuntu advisories UBUNTU-CVE-2022-48791

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • kernel-azure SLES for SAP 12 SP5, SLES 12 SP5 4.12.14-16.200.1
  • kernel-syms-azure SLES for SAP 12 SP5, SLES 12 SP5 4.12.14-16.200.1
  • kernel-source-azure SLES for SAP 12 SP5, SLES 12 SP5 4.12.14-16.200.1
  • kernel-rt SLE Real Time 12 SP5 4.12.14-10.203.1
  • kernel-syms-rt SLE Real Time 12 SP5 4.12.14-10.203.1
  • kernel-rt_debug SLE Real Time 12 SP5 4.12.14-10.203.1
  • kernel-source-rt SLE Real Time 12 SP5 4.12.14-10.203.1
  • kernel-syms SLES for SAP 12 SP5, SLES 12 SP5 4.12.14-122.231.1

suse advisories SUSE-SU-2025:1139-1SUSE-SU-2025:1123-1SUSE-SU-2025:1119-1SUSE-SU-2025:1092-1SUSE-SU-2025:1088-1SUSE-SU-2024:3591-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-48791 updated cvss 7.8

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

  • Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.25% chance of exploitation in the next 30 days, higher than 15% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 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

  • Linux Linux

Classification

Weakness
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.