scsi: pm8001: Fix use-after-free for aborted SSP/STP sas_task
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.102, 5.15.25, 5.16.11
- CVEs
- CVE-2022-48792
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 17:04 UTC · Revision 1
Source evidence
scsi: pm8001: Fix use-after-free for aborted SSP/STP sas_task
core-osv · Original sourcePublished 16 Jul 2024, 11:43 UTC
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.
osv:CVE-2022-48792
Kernel
Fixed versions: 5.10.102, 5.15.25, 5.16.11
Complete source record
{
"id": "a6d0eac5af34b1cb27d509bcbc6904858da02d4a0ef5d5e83af56645c28cdc2a",
"url": "https://osv.dev/vulnerability/CVE-2022-48792",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "scsi: pm8001: Fix use-after-free for aborted SSP/STP sas_task",
"summary": "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.",
"evidence": "osv:CVE-2022-48792",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.102",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.25",
"evidence": "/affected/1/ranges"
},
{
"value": "5.16.11",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2022-48792",
"aliases": [
"CVE-2022-48792"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "869ddbdcae3b4fb83b99889abae31544c149b210"
},
{
"fixed": "fe9ac3eaa2e387a5742b380b73a5a6bc237bf184"
},
{
"fixed": "d9d93f32534a0a80a1c26bdb0746d90a7b19c2c2"
},
{
"fixed": "f61f9fccb2cb4bb275674a79d638704db6bc2171"
},
{
"fixed": "df7abcaa1246e2537ab4016077b5443bb3c09378"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48792.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.15.0"
},
{
"fixed": "5.10.102"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.25"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "5.16.11"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48792.json"
}
}
],
"modified": "2026-10-28T02:30:21.795660346Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/d9d93f32534a0a80a1c26bdb0746d90a7b19c2c2",
"https://git.kernel.org/stable/c/df7abcaa1246e2537ab4016077b5443bb3c09378",
"https://git.kernel.org/stable/c/f61f9fccb2cb4bb275674a79d638704db6bc2171",
"https://git.kernel.org/stable/c/fe9ac3eaa2e387a5742b380b73a5a6bc237bf184",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48792.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-48792",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48792.json"
}
},
"related_cves": [
{
"value": "CVE-2022-48792",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 487472,
"published_at": "2024-07-16T11:43:48.026+00:00"
}