CVE-2026-98154: nvme-rdma: fix -EIO cleanup order in queue_rq
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
nvme-rdma: fix -EIO cleanup order in queue_rq
On -EIO, the RDMA queue_rq path reports a host path error and then still cleans up the command and unmaps the SQE DMA. The path error helper completes the request, so that is double cleanup and DMA unmap after the request is already complete.
Unmap the SQE first, then report the host path error. Skip the outer command cleanup on that path.
The Linux kernel CVE team has assigned CVE-2026-98154 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.12 with commit 62eca39722fd997e3621fc903229917b9f0fb271 and fixed in 6.12.111 with commit a41e7fc8d244d9cfc6273051aed85b67adedbb89 Issue introduced in 5.12 with commit 62eca39722fd997e3621fc903229917b9f0fb271 and fixed in 6.18.53 with commit cf3e706963ffbd3ee2568fa0d08ab016f0575ea8 Issue introduced in 5.12 with commit 62eca39722fd997e3621fc903229917b9f0fb271 and fixed in 7.2.7 with commit 171b993a4aed9889159df4815b6a6ba141e61975 Issue introduced in 5.12 with commit 62eca39722fd997e3621fc903229917b9f0fb271 and fixed in 7.3-rc2 with commit d61828199c6cb4b76d48403c77023cd4bb9d09fc
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98154
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/nvme/host/rdma.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/a41e7fc8d244d9cfc6273051aed85b67adedbb89 https://git.kernel.org/stable/c/cf3e706963ffbd3ee2568fa0d08ab016f0575ea8 https://git.kernel.org/stable/c/171b993a4aed9889159df4815b6a6ba141e61975 https://git.kernel.org/stable/c/d61828199c6cb4b76d48403c77023cd4bb9d09fc