scsi: qla2xxx: Don't query firmware state while chip is down
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b6faaaf796d7bfb00e32ca5c905d55cc43e89448 · < a194684853dceaa1d6b7a9a02bc12f479232ad9b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
scsi: qla2xxx: Don't query firmware state while chip is down
qla2x00_fw_state_show() initializes rval to QLA_FUNCTION_FAILED and jumps to the out: label when the chip is down or EEH is busy. The out: block then re-issued qla2x00_get_firmware_state() because rval != QLA_SUCCESS, defeating the chip-down/EEH-busy guards and issuing a mailbox command (outside optrom_mutex) during ISP reset or PCI error recovery, which can hang the adapter. It also turned a normal in-lock mailbox failure into a second unsynchronized mailbox attempt.
Make the out: fallback only mark the firmware state as unknown. The mailbox is now issued at most once, inside optrom_mutex, and only when the chip is up and not EEH-busy.
From the CVE record · Linux
The Linux kernel’s qla2xxx SCSI driver can issue a firmware-state mailbox command while the chip is down or PCI error recovery is busy. This can hang the adapter during an ISP reset or PCI error recovery. The input does not describe an attacker-controlled trigger, authentication requirement, or user interaction.
Engineers running Linux systems with the qla2xxx driver should check their kernel versions; affected versions are not specified.