CVE-2026-138816: Linux kernel NVMe over RDMA host completes a read whose memory a hostile target can still write

ByLinuxtastic

December 1, 2026 #CVE, #Linux Kernel

A host that mounts NVMe namespaces over RDMA registers a memory region for each read and expects the controller to invalidate its key when the data has landed. If “a remote invalidation names an rkey that is not the one we handed out for this request”, nvme_rdma_process_nvme_rsp() in drivers/nvme/host/rdma.c “logs and schedules error recovery, then falls through to nvme_rdma_end_request()”. The request completes “with req->mr never invalidated”, so “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”. The kernel CNA scores it 9.8; Red Hat rates it Important at 8.1 as adjacent-network memory corruption. If any host loads nvme_rdma, upgrade it to a kernel at or above 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.63 or 7.3.4 and reboot, starting with hosts whose targets are not under the same administration.

CVE-2026-138816 at a glance.

ComponentLinux kernel, NVMe host (initiator) side: nvme_rdma_process_nvme_rsp() and nvme_rdma_end_request() in drivers/nvme/host/rdma.c, the nvme_rdma transport module
Affected versionsmainline 4.15 up to 7.4-rc1 (from commit 3ef0279b); 5.10.x below 5.10.275, 5.15.x below 5.15.226, 6.1.x below 6.1.193, 6.6.x below 6.6.163, 6.12.x below 6.12.117, 6.18.x below 6.18.63, 7.3.x below 7.3.4. Kernels before 4.15 are not affected
Fixed inmainline 7.4-rc1 (commit 909307ce, the one Debian cites as upstream) and stable 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.63, 7.3.4; eight fix commits in the record. The fix returns on a bogus invalidation “the way the local invalidation path below already does” and leaves the request for error recovery to cancel
Severitykernel CNA CVSS 3.1 9.8 Critical (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H); NVD Received with no score, CWE or CPE of its own. Red Hat Important, 8.1 with adjacent-network access and no confidentiality impact (AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H), CWE-459 (incomplete clean-up), score marked draft; Ubuntu Medium, not yet evaluated per release; SUSE and Alpine not reachable. The readings differ on whether a write into a page the host has already handed back can disclose anything; the box carries both
Exploited in the wildNot on CISA’s Known Exploited Vulnerabilities list as of 1 December 2026 (catalogue 2026.11.30, released 30 November). EPSS: no score yet on 1 December 2026
Who is exposedhosts that mount remote NVMe namespaces over RDMA (nvme_rdma, over RoCE or InfiniBand), where the attacker is the controller at the other end of the connection or something able to impersonate it on the fabric; Red Hat’s position is that only hosts mounting remote namespaces over RDMA are exposed and that the danger is an adjacent untrusted target corrupting host memory. A host whose targets are its own storage array under the same administration has a smaller problem than one that attaches to storage it does not control; cloud and multi-tenant fabrics are where the trust boundary matters. NVMe over TCP and local NVMe are not affected
PublishedCVE record 30 November 2026 (kernel CNA, updated 1 December); this page built 1 December 2026, last updated 1 December 2026

What it is

On an RDMA fabric a read is a transfer the controller performs into memory the host has registered; the host hands the controller an rkey for the region, and when the transfer is done the controller may invalidate that key in its completion so the host does not have to. nvme_rdma_process_nvme_rsp() checks that the key the controller invalidated is the one it gave out for the request. When it is not, the host “logs and schedules error recovery”, which is right, “then falls through to nvme_rdma_end_request()”, which is not: the request is completed as though it had succeeded, and its memory region is handed back to the pool “with ib_mr_pool_put(), which only puts it on a list”.

The consequence is that the registration survives the completion. “The rkey stays valid and still maps the pages the completed read filled”, so the controller, which knows the key, can keep writing into them after the block layer has returned the data to the application. The pages may by then belong to anyone: page cache for another file, a different process’s buffer, or kernel memory reused after the read. The kernel CNA scores that as full compromise; Red Hat scopes it to integrity and availability on the grounds that the attacker writes but does not read. A misbehaving or hostile controller is the attacker in both readings, which puts the burden on who administers the storage the host attaches to.

The fix is a one-line change in control flow: on a bogus remote invalidation, “return instead, the way the local invalidation path below already does, and leave the request for error recovery to cancel”. Error recovery tears down the queue and its registrations, so the key dies with the connection. git.kernel.org refused our reader, so the diff is described from the CNA’s copy of the commit message and the single file the record names.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 1 December 2026; the link in the row is the tracker page, which will be newer than this one.

DistributionStatusFixed package
AlpineNot consulted for this page—
DebianFixed in trixie (6.12.117-1), trixie’s security update, forky and sid; bookworm’s 6.1 kernel (6.1.192-3) vulnerable; no DSA or DLA on 1 December 2026trixie 6.12.117-1 (security 6.12.118-1); forky and sid 7.3.6-1; nothing for bookworm
UbuntuMedium; the linux package is needs evaluation on every release from 14.04 to 26.10, nothing released or in progress on 1 December 2026nothing on 1 December 2026
RHEL, Rocky, Alma, CentOS StreamImportant, 8.1, CWE-459 (bug 2586410); affected on RHEL 7, 8, 9 and 10 (kernel and kernel-rt) and the OpenShift RHCOS images; RHEL 6 not affected; no erratanot yet
openSUSE/SLETracker unreachable on 1 December 2026 (client error on two attempts); nothing inferred—
Fedora, Arch; self-built kernelsNot consulted; upstream stable versions apply5.10.275 / 5.15.226 / 6.1.193 / 6.6.163 / 6.12.117 / 6.18.63 / 7.3.4 or later

How to check

Three questions, in order: which kernel is running, is the RDMA transport loaded, and are any namespaces attached over it. The third names the hosts that need the reboot first.

# 1. the running kernel (compare with the fixed stable version for its series)
uname -r

# 2. is the RDMA host transport loaded or loadable
lsmod | grep -E '^nvme_rdma'
modinfo -n nvme_rdma 2>/dev/null

# 3. which controllers are attached over rdma, and to what
nvme list-subsys 2>/dev/null | grep -E 'rdma'
grep -l rdma /sys/class/nvme/nvme*/transport 2>/dev/null
for c in /sys/class/nvme/nvme*; do echo "$c $(cat $c/transport) $(cat $c/address 2>/dev/null)"; done

A kernel at or above the fixed stable version for its series is done. A host with no nvme_rdma loaded and only pcie or tcp in the transport files is not reachable by this bug. A host with controllers attached over rdma is exposed to every one of those controllers; list the addresses, decide which of them you administer yourself, and reboot the hosts that attach to storage you do not control first.

How to fix it

Install the fixed kernel and reboot; the completion path is in the loaded module and stays until the host boots the new image. Debian trixie’s point release and security update both carry it; Ubuntu, Red Hat and SUSE were pending on 1 December 2026.

# Debian trixie / forky / sid
apt update && apt install linux-image-amd64 && systemctl reboot       # or linux-image-arm64
# Ubuntu, RHEL family, SUSE: when the pending builds land
apt update && apt full-upgrade && systemctl reboot
dnf upgrade kernel && systemctl reboot
zypper patch && systemctl reboot
uname -r

There is no setting that makes the host reject the bogus invalidation; the only mitigation before the reboot is to attach only to controllers you trust, which on a shared fabric means the fabric’s own access control (InfiniBand partitions, RoCE VLANs and the target’s allow-lists). What not to do: do not switch an in-service host from RDMA to NVMe/TCP as a quick fix without a maintenance window, since reconnecting every namespace is more disruptive than the reboot it replaces; and do not read Red Hat’s integrity-only vector as a reason to wait on hosts that attach to third-party storage, where a write into reused memory is a full compromise in practice.

Sources

  • CVE-2026-138816 at CVE.org — the kernel CNA record (30 November 2026, updated 1 December when the CNA added its CVSS 3.1 metric): the commit message describing the un-invalidated rkey, the git and version ranges, CVSS 3.1 9.8
  • Fix commits on git.kernel.org: 909307ce (mainline, 7.4-rc1, the commit Debian cites as upstream) and the backports 05f7cbf0, 61faf081, fd797069, 0ca849f5, 5c8032e3, 5564d7a6, 08e4d674; git.kernel.org refuses automated readers, so the diffs were not read for this page and the fix is described from the CNA’s copy of the commit message
  • NVD entry — Received on 30 November, carrying the CNA’s ranges; no NVD score, CWE or CPE on 1 December
  • Distribution trackers: Debian (trixie 6.12.117-1 fixed, bookworm vulnerable) · Ubuntu (Medium, needs evaluation) · Red Hat (Important 8.1, CWE-459, RHEL 7 to 10 affected) · SUSE (unreachable on 1 December)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS: no score for this CVE on 1 December 2026

Related reading

This advisory page was assembled from the primary sources listed above on 1 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.