CVE-2022-48792CWE-416

CVE-2022-48792

High · published July 16, 2024

CVSS v3.1
7.8
EPSS
0%
Percentile
14.3
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

scsi: pm8001: Fix use-after-free for aborted SSP/STP sas_task

Currently a use-after-free may occur if a sas_task is aborted by the upper

layer before we handle the I/O completion in mpi_ssp_completion() or

mpi_sata_completion().

In this case, the following are the two steps in handling those I/O

completions:

- Call complete() to inform the upper layer handler of completion of

the I/O.

- Release driver resources associated with the sas_task in

pm8001_ccb_task_free() call.

When complete() is called, the upper layer may free the sas_task. As such,

we should not touch the associated sas_task afterwards, but we do so in the

pm8001_ccb_task_free() call.

Fix by swapping the complete() and pm8001_ccb_task_free() calls ordering.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00240 · 14.3th percentile
Weakness
CWE-416 · Use After Free
Published
2024-07-16T16:15Z
Affected products (3)
ProductVersionsFixed in
linux/linux_kernel< 5.10.1025.10.102
linux/linux_kernel≥ 5.11, < 5.15.255.15.25
linux/linux_kernel≥ 5.16, < 5.16.115.16.11
References (8)
EPSS history
Timeline
  • 16 JUL 11:43Z
    scsi: pm8001: Fix use-after-free for aborted SSP/STP sas_task
    cvelistv5