Linux
scsi: qla2xxx: Clear cmds after chip reset
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= aefed3e5548f28e5fecafda6604fcbc65484dbaa, < e87e9f92d7735895b7dd97f53dce6d95d08cf29c
- >= aefed3e5548f28e5fecafda6604fcbc65484dbaa, < 0d0a1a267c1ee7c41aeffdca84afcb113787a91a
- >= aefed3e5548f28e5fecafda6604fcbc65484dbaa, < c82c0fbb97d0fd44324eb55ab758408c7c964b32
- >= aefed3e5548f28e5fecafda6604fcbc65484dbaa, < 5c1fb3fd05da3d55b8cbc42d7d660b313cbdc936
- >= aefed3e5548f28e5fecafda6604fcbc65484dbaa, < d46c69a087aa3d1513f7a78f871b80251ea0c1ae
- eb67b7a23d357f578578e737cb6412ae2384f352
- ec9639d92c1e10d4bc667e842753d85e21683d5c
- e6e957f552d5b696879a31e5b0e2a9120e1ea86e
- >= 4.9.316, < 4.10
- >= 4.14.281, < 4.15
- >= 4.19.245, < 4.20
Fixed in e87e9f92d7735895b7dd97f53dce6d95d08cf29c, 0d0a1a267c1ee7c41aeffdca84afcb113787a91a, c82c0fbb97d0fd44324eb55ab758408c7c964b32, 5c1fb3fd05da3d55b8cbc42d7d660b313cbdc936, d46c69a087aa3d1513f7a78f871b80251ea0c1ae, 4.10, 4.15, 4.20
- 5.2
Fixed in 0, 6.1.191, 6.6.160, 6.12.114, 6.18.2, 6.19
Mitigation
Upgrade Linux to e87e9f92d7735895b7dd97f53dce6d95d08cf29c or 0d0a1a267c1ee7c41aeffdca84afcb113787a91a or c82c0fbb97d0fd44324eb55ab758408c7c964b32 or 5c1fb3fd05da3d55b8cbc42d7d660b313cbdc936 or d46c69a087aa3d1513f7a78f871b80251ea0c1ae or 4.10 or 4.15 or 4.20 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.114 or 6.18.2 or 6.19 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.