Skip to main content
Vulnerability Database/CVE-2026-97413

CVE-2026-97413: Linux Kernel RDMA Buffer Overflow Vulnerability

CVE-2026-97413 is a buffer overflow vulnerability in the Linux kernel RDMA subsystem that allows malicious clients to trigger out-of-bounds memory access. This article covers the technical details, security impact, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-97413 Overview

CVE-2026-97413 is an integer underflow vulnerability in the Linux kernel's RDMA Transport Server (rtrs-srv) module. The flaw resides in the process_read() and process_write() functions, where usr_len is read from a network-supplied message field using le16_to_cpu and used to compute data_len = off - usr_len without validating that usr_len <= off. A malicious RDMA client can send usr_len > off, causing the subtraction to underflow and data_len to wrap into a very large size_t value. That length is then passed to the rdma_ev callback as a memory length, triggering out-of-bounds memory access on the kernel heap.

Critical Impact

A remote, unauthenticated RDMA client can trigger kernel memory corruption, leading to denial of service or potential remote code execution in kernel context.

Affected Products

  • Linux kernel builds enabling the RDMA/rtrs-srv InfiniBand transport server
  • Distributions shipping affected mainline and stable kernel branches prior to the fix commits
  • NVMe-over-Fabrics and RDMA storage targets relying on rtrs-srv

Discovery Timeline

  • 2026-09-24 - CVE-2026-97413 published to NVD
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-97413

Vulnerability Analysis

The vulnerability is an integer underflow [CWE-191] in the RDMA Transport Server kernel module. The rtrs-srv driver handles I/O descriptors sent by RDMA clients during read and write operations. Each descriptor includes a usr_len field that describes the length of the user payload embedded in the message, alongside an off value derived from the overall message layout.

The handlers compute data_len = off - usr_len to determine the length of the data portion that should be forwarded to the upper-layer callback. Because usr_len is attacker-controlled and no bounds check validates that usr_len <= off, an adversary can submit values that make the subtraction wrap around. The resulting data_len becomes a near-SIZE_MAX value when interpreted as size_t.

That corrupted length flows into the rdma_ev callback, where the server treats it as the size of a memory region tied to an in-flight operation. Downstream code performs reads or writes against memory using this length, resulting in out-of-bounds access against adjacent kernel allocations.

Root Cause

The root cause is missing input validation on a network-controlled 16-bit field before use in unsigned arithmetic. The fix, applied across kernel commits 24ad03b, 54bf38b, and c76e9123, reads and validates usr_len <= off before calling rtrs_srv_get_ops_ids() in both process_read() and process_write(). The early-return path is structured so no reference is acquired and no resources are leaked when validation fails.

Attack Vector

Exploitation requires network reachability to an RDMA target running an affected rtrs-srv instance, typically over InfiniBand or RoCE fabrics. No authentication or user interaction is required. An attacker crafts a malformed read or write request with usr_len greater than the computed off offset. The server computes an underflowed data_len, invokes the rdma_ev callback, and the subsequent memory operation touches memory outside the intended buffer. Impacts range from kernel panic and remote denial of service to memory disclosure or privileged code execution, depending on heap layout and callback behavior.

Technical details and the patch diffs are available in the upstream fixes: Kernel Git Commit 24ad03b, Kernel Git Commit 54bf38b, and Kernel Git Commit c76e9123.

Detection Methods for CVE-2026-97413

Indicators of Compromise

  • Unexpected kernel oops or panic traces referencing process_read, process_write, or rdma_ev in rtrs-srv
  • Kernel log entries showing memory access faults, slab corruption warnings, or KASAN reports originating from the rtrs_srv module
  • Abrupt termination of RDMA sessions from untrusted or newly observed client GIDs

Detection Strategies

  • Enable KASAN on test kernels to surface out-of-bounds reads and writes triggered by malformed RDMA descriptors
  • Monitor kernel ring buffer output (dmesg) for crashes correlating to RDMA client connections
  • Capture RDMA control-path traffic on management interfaces and inspect rtrs message headers for usr_len values exceeding plausible payload offsets

Monitoring Recommendations

  • Alert on repeated kernel module faults in rtrs_srv across the storage fleet
  • Track RDMA connection anomalies, including repeated session resets from the same peer, through fabric management tooling
  • Centralize kernel telemetry and host crash dumps into a security data lake for correlation with network-side RDMA activity

How to Mitigate CVE-2026-97413

Immediate Actions Required

  • Apply the upstream Linux kernel patches from commits 24ad03b, 54bf38b, and c76e9123 or install vendor-provided kernel updates that incorporate them
  • Restrict RDMA fabric access to trusted hosts using subnet manager policy, partition keys (P_Keys), and network segmentation
  • Audit systems with the rtrs-srv module loaded and prioritize patching storage targets exposed to shared or multi-tenant fabrics

Patch Information

The fix validates usr_len <= off before any resource acquisition in both process_read() and process_write(), ensuring the early-return path does not leak references. Patched versions are available via the stable kernel tree at Kernel Git Commit 24ad03b, Kernel Git Commit 54bf38b, and Kernel Git Commit c76e9123. Rebuild and reboot affected hosts to activate the fixed kernel.

Workarounds

  • Unload the rtrs_srv kernel module on hosts that do not require RDMA target functionality using modprobe -r rtrs_server
  • Blacklist the module where RDMA target services are not needed by adding blacklist rtrs_server to /etc/modprobe.d/
  • Enforce strict InfiniBand partitioning and limit RDMA listeners to management VLANs reachable only by authenticated storage initiators
bash
# Configuration example
# Verify whether the vulnerable module is loaded
lsmod | grep rtrs_server

# Temporarily unload the module (only if no active RDMA sessions depend on it)
sudo modprobe -r rtrs_server

# Persistently prevent loading until patched kernels are deployed
echo 'blacklist rtrs_server' | sudo tee /etc/modprobe.d/cve-2026-97413.conf
sudo update-initramfs -u

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.