scsi: qla2xxx: Hold qpair lock when sending NVMe LS reject
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.6.157, 6.12.110, 6.18.51, 7.2.5
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
The Linux kernel's QLogic Fibre Channel storage driver (qla2xxx), which handles NVMe-over-Fibre Channel link service rejects, is affected. A race in its request-ring handling can corrupt the command queue state, potentially causing commands to be duplicated or dropped on the affected storage adapter.
Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.
Read the original description
In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Hold qpair lock when sending NVMe LS reject qla_nvme_ls_reject_iocb() allocates from and advances the request ring through __qla2x00_alloc_iocbs() (which assumes the hardware_lock is held) and qla2x00_start_iocbs() (which advances the ring and rings the request-in doorbell), but takes no lock itself. Two of its callers invoke it without the producer lock held: • qla_nvme_xmt_ls_rsp(), the NVMe-FC .xmt_ls_rsp transport callback, on its error path, and • qla2xxx_process_purls_pkt(), run from the purex work/DPC context. Both use ha->base_qpair, whose qp_lock_ptr is hardware_lock, so they can run concurrently with normal I/O submission on the base ring and corrupt the ring producer state, leading to duplicated or dropped commands. The third caller, qla2xxx_process_purls_iocb(), runs inside qla24xx_process_response_queue() with the qpair lock already held and is safe; that is also why the lock cannot be taken inside the helper itself (it would recursively re-acquire hardware_lock on the response path). Take qp_lock_ptr around the two unlocked callers and document the helper as caller-locked. Both run in process context, so spin_lock_irqsave() is used and nothing in the locked region sleeps.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 875386b98857822b77ac7f95bdf367b70af5b78c · fixed in 7eb618877503edbf17aa65e357a81bda1fc8f163; From 875386b98857822b77ac7f95bdf367b70af5b78c · fixed in b3a362466db6b8ec47cc537ac641ac197fa69b5d; From 875386b98857822b77ac7f95bdf367b70af5b78c · fixed in 11834e5773e20fd3742d7eb900876e66b9e7d029; From 875386b98857822b77ac7f95bdf367b70af5b78c · fixed in b02ff132017b28222187ebcf95ce7f4cb576cd36; From 875386b98857822b77ac7f95bdf367b70af5b78c · fixed in f743488e4a203049f27ec5d8cd0caccc483af01e
- Linux Linux
6.6
- KernelLinux
From 6.6.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.51; From 6.19.0 · fixed in 7.2.5