CVE-2026-138816: nvme-rdma: don't complete a request after a bogus remote invalidation
In the Linux kernel, the following vulnerability has been resolved:
nvme-rdma: don't complete a request after a bogus remote invalidation
When a remote invalidation names an rkey that is not the one we handed out for this request, nvmerdmaprocessnvmersp() logs and schedules error recovery, then falls through to nvmerdmaendrequest(). The request is completed with req->mr never invalidated, and nvmerdmaunmapdata() hands it back with ibmrpoolput(), which only puts it on a list. The rkey stays valid and still maps the pages the completed read filled, so a controller that sent the bogus invalidation can write into those pages after pread() has returned.
Return instead, the way the local invalidation path below already does, and leave the request for error recovery to cancel.
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
When a remote invalidation names an rkey other than the one handed out, return without completing the request and leave it for error recovery to cancel.
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Systems using the Linux kernel NVMe over RDMA path are exposed when a remote controller can send a remote invalidation for an rkey other than the one assigned to the request.
What does an attacker or malicious controller need to do to trigger the unsafe condition?
It must send a bogus remote invalidation naming an rkey that does not match the rkey handed out for the active request. The vulnerable handling then completes the request even though its memory region was not invalidated.
What is the practical impact after a successful trigger?
The rkey can remain valid and continue mapping pages populated by the completed read. The controller can then write to those pages after the application's pread() call has returned.
How can an administrator identify a possible attempted trigger?
The affected response-processing path logs the invalid rkey condition and schedules error recovery. Such log entries together with NVMe-RDMA error recovery activity indicate that a bogus remote invalidation was received.