In the Linux kernel, the following vulnerability has been resolved: nvmet-fcloop: Check remoteport portstate before calling done callback In nvmefchandlelsrqstwork, the lsrsp->done callback is only set when remoteport->portstate is FCOBJSTATEONLINE. Otherwise, the nvmefcxmtlsrsp's LLDD call to lport->ops->xmtlsrsp is expected to fail and the nvme-fc transport layer itself will directly call nvmefcxmtlsrspfree instead of relying on LLDD's done callback to free the lsrsp resources. Update the fcloopt2hxmtlsrsp routine to check remoteport->port_state. If online, then lsrsp->done callback will free the lsrsp. Else, return -ENODEV to signal the nvme-fc transport to handle freeing lsrsp.