Linux
scsi: qla2xxx: Unlink NVMe unsol ctx before freeing on LS reject error
In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Unlink NVMe unsol ctx before freeing on LS reject error qla_nvme_xmt_ls_rsp() obtains uctx, which was linked into fcport->unsol_ctx_head by qla2xxx_process_purls_iocb() and is still linked when the NVMe transport calls back to transmit the LS response. On the error (out:) path the function frees uctx with kfree() but never removes it from the list. This leaves a freed node in fcport->unsol_ctx_head: the next list_add_tail() for that fcport writes through the freed node, and a subsequent list_del() can corrupt the list or panic. Unlink uctx with list_del() before kfree() on the error path, matching the other free sites in qla_nvme_release_lsrsp_cmd_kref() and qla2xxx_process_purls_pkt(). qla2x00_rel_sp() in the failure path only returns the SRB to its pool and does not invoke sp->put_fn, so the out: path is the sole free and uctx is always still linked there.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 875386b98857822b77ac7f95bdf367b70af5b78c, < 925a9129a514b7c3bc0a8af01e51868adbb9a83e
- >= 875386b98857822b77ac7f95bdf367b70af5b78c, < cbbf1484496aac86038e67ac984949af58009d4b
- >= 875386b98857822b77ac7f95bdf367b70af5b78c, < a95fc5f1c12bba1dbff72bd2611e7fad0758831b
- >= 875386b98857822b77ac7f95bdf367b70af5b78c, < c55d649a6cc246c3ccd5d118faea230c46b60f35
- >= 875386b98857822b77ac7f95bdf367b70af5b78c, < e46160a5d4fa59bf4d5f3412b6b5cb79edb967dd
Fixed in 925a9129a514b7c3bc0a8af01e51868adbb9a83e, cbbf1484496aac86038e67ac984949af58009d4b, a95fc5f1c12bba1dbff72bd2611e7fad0758831b, c55d649a6cc246c3ccd5d118faea230c46b60f35, e46160a5d4fa59bf4d5f3412b6b5cb79edb967dd
- 6.6
Fixed in 0, 6.6.160, 6.12.112, 6.18.53, 7.2.7, 7.3
Mitigation
Upgrade Linux to 925a9129a514b7c3bc0a8af01e51868adbb9a83e or cbbf1484496aac86038e67ac984949af58009d4b or a95fc5f1c12bba1dbff72bd2611e7fad0758831b or c55d649a6cc246c3ccd5d118faea230c46b60f35 or e46160a5d4fa59bf4d5f3412b6b5cb79edb967dd or later.
Upgrade Linux to 0 or 6.6.160 or 6.12.112 or 6.18.53 or 7.2.7 or 7.3 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.