{"id":"CVE-2022-48792","aliases":["CVE-2022-48792"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: pm8001: Fix use-after-free for aborted SSP/STP sas_task","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: pm8001: Fix use-after-free for aborted SSP/STP sas_task\n\nCurrently a use-after-free may occur if a sas_task is aborted by the upper\nlayer before we handle the I/O completion in mpi_ssp_completion() or\nmpi_sata_completion().\n\nIn this case, the following are the two steps in handling those I/O\ncompletions:\n\n - Call complete() to inform the upper layer handler of completion of\n   the I/O.\n\n - Release driver resources associated with the sas_task in\n   pm8001_ccb_task_free() call.\n\nWhen complete() is called, the upper layer may free the sas_task. As such,\nwe should not touch the associated sas_task afterwards, but we do so in the\npm8001_ccb_task_free() call.\n\nFix by swapping the complete() and pm8001_ccb_task_free() calls ordering.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: pm8001: Fix use-after-free for aborted SSP/STP sas_task\n\nCurrently a use-after-free may occur if a sas_task is aborted by the upper\nlayer before we handle the I/O completion in mpi_ssp_completion() or\nmpi_sata_completion().\n\nIn this case, the following are the two steps in handling those I/O\ncompletions:\n\n - Call complete() to inform the upper layer handler of completion of\n   the I/O.\n\n - Release driver resources associated with the sas_task in\n   pm8001_ccb_task_free() call.\n\nWhen complete() is called, the upper layer may free the sas_task. As such,\nwe should not touch the associated sas_task afterwards, but we do so in the\npm8001_ccb_task_free() call.\n\nFix by swapping the complete() and pm8001_ccb_task_free() calls ordering.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: scsi: pm8001: Corrige el use-after-free para sas_task SSP/STP abortado. Actualmente, puede ocurrir un use-after-free si la capa superior cancela una sas_task antes de que manejemos el Finalización de E/S en mpi_ssp_completion() o mpi_sata_completion(). En este caso, los siguientes son los dos pasos para manejar esas finalizaciones de E/S: - Llamar a complete() para informar al controlador de la capa superior de la finalización de la E/S. - Liberar los recursos del controlador asociados con sas_task en la llamada pm8001_ccb_task_free(). Cuando se llama a complete(), la capa superior puede liberar sas_task. Como tal, no debemos tocar el sas_task asociado después, pero lo hacemos en la llamada pm8001_ccb_task_free(). Se soluciona intercambiando el orden de las llamadas complete() y pm8001_ccb_task_free().","source":"nvd"}],"published":"2024-07-16T11:43:48.026Z","modified":"2026-08-05T08:52:22.849Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"869ddbdcae3b4fb83b99889abae31544c149b210","fixed":"fe9ac3eaa2e387a5742b380b73a5a6bc237bf184","status":"affected"},{"type":"git","introduced":"869ddbdcae3b4fb83b99889abae31544c149b210","fixed":"d9d93f32534a0a80a1c26bdb0746d90a7b19c2c2","status":"affected"},{"type":"git","introduced":"869ddbdcae3b4fb83b99889abae31544c149b210","fixed":"f61f9fccb2cb4bb275674a79d638704db6bc2171","status":"affected"},{"type":"git","introduced":"869ddbdcae3b4fb83b99889abae31544c149b210","fixed":"df7abcaa1246e2537ab4016077b5443bb3c09378","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.15","status":"unaffected"},{"type":"semver","introduced":"5.10.102","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.25","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.16.11","lastAffected":"5.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"5.10.102"},{"status":"affected","introduced":"5.11","fixed":"5.15.25"},{"status":"affected","introduced":"5.16","fixed":"5.16.11"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/fe9ac3eaa2e387a5742b380b73a5a6bc237bf184","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d9d93f32534a0a80a1c26bdb0746d90a7b19c2c2","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f61f9fccb2cb4bb275674a79d638704db6bc2171","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/df7abcaa1246e2537ab4016077b5443bb3c09378","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:59:32.216Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-48792","url":"https://www.cve.org/CVERecord?id=CVE-2022-48792","licence":"CVE Terms of Use","modified":"2026-08-05T08:52:22.849Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-48792","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48792","licence":"Public domain","modified":"2026-08-04T10:17:21.787Z"}],"updatedAt":"2026-11-25T22:58:19.884Z","epss":{"score":0.0024,"percentile":0.16238,"date":"2026-12-01T12:00:22.000Z"}}