CVE-2026-99857: 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, nvmetfcfcpnvmecmddone() still pushes the whole data buffer to the host before the response. nvmetfcalloctgtpgs() allocates that buffer with sglalloc() and no GFPZERO, and a command rejected by nvmetchecktransferlen() 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 rdma targets send data only when cqe->status is zero (see nvmettcpneeddataout() and nvmetrdmaneeddataout()), so no nvmet command can rely on returning data with an error status. Do the same for fc. The ERSP then reports a transferred length of fod->offset, which is 0, matching what nvmefcfcpiodone() checks on the host.
Tested over nvme-fcloop: a failed read command no longer transfers data and still completes with its error status, and successful reads are unaffected.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1 - Compensating control
In nvmet-fc, send read data only when the command completes successfully.
Event History
Frequently Asked Questions
Who is exposed to this issue?
Systems using the Linux kernel NVMe over Fabrics Fibre Channel target (nvmet-fc) are exposed when they service read commands. The disclosure does not indicate that NVMe/TCP or NVMe/RDMA targets have the same behavior.
What must an attacker or remote host do to trigger the memory disclosure?
A host must issue a read command that completes with an error, such as one rejected by nvmet_check_transfer_len(). Before the fix, nvmet-fc could send the command-sized, uninitialized target data buffer despite the error response.
How much data could be disclosed?
The stale memory returned can be up to the data length specified by the host in the command IU. The host therefore controls the requested buffer size associated with the failed read.
What changes after applying the fix?
nvmet-fc sends read data only for commands with a successful completion status. For failed reads, the reported transferred length is zero while the command still completes with its error status.