9.8critical
scsi: qla2xxx: Clear cmds after chip reset
- Severity
- 9.8critical CVSS:3.1 by Linux
- Exploit likelihood
- 0.58% (higher than 49% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Clear cmds after chip reset Commit aefed3e5548f ("scsi: qla2xxx: target: Fix offline port handling and host reset handling") caused two problems: 1. Commands sent to FW, after chip reset got stuck and never freed as FW is not going to respond to them anymore. 2. BUG_ON(cmd->sg_mapped) in qlt_free_cmd(). Commit 26f9ce53817a ("scsi: qla2xxx: Fix missed DMA unmap for aborted commands") attempted to fix this, but introduced another bug under different circumstances when two different CPUs were racing to call qlt_unmap_sg() at the same time: BUG_ON(!valid_dma_direction(dir)) in dma_unmap_sg_attrs(). So revert "scsi: qla2xxx: Fix missed DMA unmap for aborted commands" and partially revert "scsi: qla2xxx: target: Fix offline port handling and host reset handling" at __qla2x00_abort_all_cmds.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from aefed3e5548f28e5fecafda6604fcbc65484dbaa before e87e9f92d7735895b7dd97f53dce6d95d08cf29c, from aefed3e5548f28e5fecafda6604fcbc65484dbaa before 0d0a1a267c1ee7c41aeffdca84afcb113787a91a, from aefed3e5548f28e5fecafda6604fcbc65484dbaa before c82c0fbb97d0fd44324eb55ab758408c7c964b32, from aefed3e5548f28e5fecafda6604fcbc65484dbaa before 5c1fb3fd05da3d55b8cbc42d7d660b313cbdc936, from aefed3e5548f28e5fecafda6604fcbc65484dbaa before d46c69a087aa3d1513f7a78f871b80251ea0c1ae, eb67b7a23d357f578578e737cb6412ae2384f352, ec9639d92c1e10d4bc667e842753d85e21683d5c, e6e957f552d5b696879a31e5b0e2a9120e1ea86e and 4 more Not affected: before 5.2, from 6.1.191 up to 6.1.*, from 6.6.160 up to 6.6.*, from 6.12.114 up to 6.12.*, from 6.18.2 up to 6.18.*, from 6.19 up to * | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Clear cmds after chip reset Commit aefed3e5548f ("scsi: qla2xxx: target: Fix offline port handling and host reset handling") caused two problems: 1. Commands sent to FW, after chip reset got stuck and never freed as FW is not going to respond to them anymore. 2. BUG_ON(cmd->sg_mapped) in qlt_free_cmd(). Commit 26f9ce53817a ("scsi: qla2xxx: Fix missed DMA unmap for aborted commands") attempted to fix this, but introduced another bug under different circumstances when two different CPUs were racing to call qlt_unmap_sg() at the same time: BUG_ON(!valid_dma_direction(dir)) in dma_unmap_sg_attrs(). So revert "scsi: qla2xxx: Fix missed DMA unmap for aborted commands" and partially revert "scsi: qla2xxx: target: Fix offline port handling and host reset handling" at __qla2x00_abort_all_cmds.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: scsi: qla2xxx: Borrar cmds después del reinicio del chip El commit aefed3e5548f ('scsi: qla2xxx: target: Corregir el manejo de puertos fuera de línea y el manejo de reinicio del host') causó dos problemas: 1. Los comandos enviados al FW, después del reinicio del chip, se quedaron atascados y nunca se liberaron, ya que el FW no va a responderles más. 2. BUG_ON(cmd -> sg_mapped) en qlt_free_cmd(). El commit 26f9ce53817a ('scsi: qla2xxx: Corregir el desmapeo DMA omitido para comandos abortados') intentó solucionar esto, pero introdujo otro error bajo diferentes circunstancias cuando dos CPUs diferentes estaban compitiendo para llamar a qlt_unmap_sg() al mismo tiempo: BUG_ON(!valid_dma_direction(dir)) en dma_unmap_sg_attrs(). Así que se revierte 'scsi: qla2xxx: Corregir el desmapeo DMA omitido para comandos abortados' y se revierte parcialmente 'scsi: qla2xxx: target: Corregir el manejo de puertos fuera de línea y el manejo de reinicio del host' en __qla2x00_abort_all_cmds.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68745 changed 2026-10-30 | CVE Terms of Use |
| NVD | CVE-2025-68745 changed 2026-10-30 | Public domain |