scsi: qla2xxx: Wait for io return on terminate rport
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 715848ca6fffeb6362a50887d9c26245bd5dfba9 · < 90770dad1eb30967ebd8d37d82830bcf270b3293| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
scsi: qla2xxx: Wait for io return on terminate rport
System crash due to use after free. Current code allows terminate_rport_io to exit before making sure all IOs has returned. For FCP-2 device, IO's can hang on in HW because driver has not tear down the session in FW at first sign of cable pull. When dev_loss_tmo timer pops, terminate_rport_io is called and upper layer is about to free various resources. Terminate_rport_io trigger qla to do the final cleanup, but the cleanup might not be fast enough where it leave qla still holding on to the same resource.
Wait for IO's to return to upper layer before resources are freed.
From the CVE record · Linux
The Linux kernel's qla2xxx driver can use freed resources if it does not wait for outstanding I/O to return before terminating a remote port. This can cause a system crash when an FCP-2 device's cable is pulled and the device-loss timer expires. The input does not establish whether an attacker can trigger this remotely or whether authentication or user interaction is required.
Operators of Linux systems using the qla2xxx driver with FCP-2 devices should check their kernel; affected versions were not provided.