Vulnerability record
nvmet-fc: only send read data for successful commands
In the Linux kernel, the following vulnerability has been resolved:
nvmet-fc: only send read data for successful commands
When a read command completes with an error, __nvmet_fc_fcp_nvme_cmd_done() still pushes the whole data buffer to the host before the response. nvmet_fc_alloc_tgt_pgs() allocates that buffer with sgl_alloc() and no __GFP_ZERO, and a command rejected by nvmet_check_transfer_len() leaves it untouched, so the host receives stale target memory.
The buffer is as large as the data length in the command IU, so the amount of stale memory returned is up to the host.
The tcp and…
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources