CVE-2026-99856: nvmet: pci-epf: report transport errors in command completions
In the Linux kernel, the following vulnerability has been resolved:
nvmet: pci-epf: report transport errors in command completions
When the PCI endpoint target fails a command itself, the host receives a successful completion. This happens for a data length above MDTS, malformed PRPs or SGLs, a buffer allocation failure, an SQ that is not live, and a failed DMA of the command data. A write whose data cannot be fetched from the host is thus reported as written, though nothing was executed.
Each of these paths sets iod->status and calls nvmetpciepfcompleteiod(), which then reloads iod->status from iod->cqe.status. The nvmet core only fills that field when it completes the request, which these paths never do, so it is still zero and nvmetpciepfcqwork() posts a success status to the host.
Drop the reload. Every path already sets iod->status before completion: nvmetpciepfqueueresponse() copies it from the request's CQE, and the transport error paths set it themselves.
Found by code inspection.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- 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 7.3.4-1
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel's NVMe target PCI endpoint function (nvmet pci-epf) are affected. The issue concerns command processing by a PCI endpoint target and the completion status returned to its host.
What conditions can cause an incorrect successful completion?
The affected paths include data lengths above MDTS, malformed PRPs or SGLs, buffer-allocation failures, submission queues that are not live, and failed DMA while fetching command data. In particular, a write whose data cannot be fetched can be reported as written even though it was not executed.
What is the practical impact of exploitation or occurrence?
A host can receive a success status for a command that the PCI endpoint target failed to execute. This can cause the host to treat failed writes or other failed commands as completed successfully, creating data-integrity risk.
What does the fix change?
The fix stops nvmet_pci_epf_complete_iod() from reloading iod->status from iod->cqe.status. Transport-error paths already set iod->status, while normal response handling copies the status from the request completion entry.