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-97421 Overview
CVE-2026-97421 is a boundary condition vulnerability in the Linux kernel's Remote Direct Memory Access (RDMA) subsystem. The flaw resides in the ib_umem_find_best_pgsz() function within the user memory (umem) code path. Several corner cases exist, particularly on 32-bit systems, where the umem->iova field is a u64 but the function argument may truncate it. The function also fails to validate that the length is not too large for the input/output virtual address (IOVA) and does not prevent lengths greater than 4GB from overflowing a GENMASK. Local authenticated users can trigger these conditions to compromise kernel memory integrity.
Critical Impact
Local attackers with low privileges can exploit integer truncation and overflow in RDMA memory region handling to affect kernel confidentiality, integrity, and availability.
Affected Products
- Linux kernel versions containing the vulnerable ib_umem_find_best_pgsz() implementation in drivers/infiniband/core/umem.c
- Systems with the RDMA/InfiniBand subsystem enabled (CONFIG_INFINIBAND)
- 32-bit kernel builds are particularly exposed due to pointer width differences
Discovery Timeline
- 2026-09-24 - CVE-2026-97421 published to the National Vulnerability Database (NVD)
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97421
Vulnerability Analysis
The vulnerability is a numeric truncation and integer overflow condition in the RDMA user memory helper ib_umem_find_best_pgsz(). This function selects the best page size for mapping a user memory region into an RDMA device's IOVA space. The flaw stems from three distinct boundary conditions that interact poorly on 32-bit systems. First, umem->iova is defined as a u64, but the function argument accepting the IOVA may be narrower, causing silent truncation of the upper 32 bits. Second, no validation ensures that the supplied length fits within the addressable IOVA range. Third, when the length exceeds 4GB, bit mask generation via GENMASK overflows because the shift count exceeds the type width.
Exploitation requires local access and the ability to open an RDMA verbs device, which is typically available to users in groups that can access /dev/infiniband/*. A successful attack can corrupt kernel page table state or produce incorrect DMA mappings, enabling privilege escalation or memory disclosure.
Root Cause
The root cause combines a type-width mismatch between caller and callee with missing bounds checks. The upstream fix widens the function signature to accept a u64 IOVA, adds explicit checks that the length does not exceed the available IOVA span, and prevents GENMASK from being evaluated with a shift larger than the mask type.
Attack Vector
The attack vector is local. An authenticated user with access to an RDMA verbs device registers a user memory region with crafted length and IOVA parameters that trigger truncation or GENMASK overflow. The resulting incorrect page size selection corrupts kernel RDMA state. See the upstream commits 09ea683, 5fc5b73, and ae3cf7d for the authoritative fix.
No verified public exploit code is available. The vulnerability mechanism is documented in the upstream commit messages linked above.
Detection Methods for CVE-2026-97421
Indicators of Compromise
- Kernel log entries referencing RDMA/InfiniBand page size selection failures, memory region registration errors, or ib_umem warnings
- Unexpected process crashes or kernel oops traces originating from drivers/infiniband/core/umem.c
- Non-root processes performing RDMA verbs operations with abnormally large length or high-bit iova values
Detection Strategies
- Audit kernel package versions across Linux hosts and compare against distribution advisories referencing the three upstream fix commits
- Monitor /dev/infiniband/uverbs* device access patterns to identify unexpected userspace clients registering memory regions
- Correlate kernel ring buffer messages with process execution telemetry to flag crashes tied to RDMA memory registration calls
Monitoring Recommendations
- Forward dmesg and /var/log/kern.log to a centralized data lake for anomaly analysis on InfiniBand subsystem events
- Track creation of unusual RDMA memory regions by non-privileged users through audit rules on ibv_reg_mr syscalls
- Alert on kernel panics or oops events whose stack traces include ib_umem_find_best_pgsz or related InfiniBand symbols
How to Mitigate CVE-2026-97421
Immediate Actions Required
- Apply the vendor-supplied kernel update that incorporates the three upstream fix commits as soon as it is available from your distribution
- Inventory systems with the InfiniBand/RDMA subsystem loaded by running lsmod | grep ib_ and prioritize patching those hosts
- Restrict access to /dev/infiniband/* device nodes to trusted service accounts only, using filesystem permissions and group membership
Patch Information
The upstream Linux kernel fix is distributed across three commits: 09ea683, 5fc5b73, and ae3cf7d. These patches widen the IOVA argument to u64, add length validation, and prevent GENMASK overflow when the mapping length exceeds 4GB. Consult your Linux distribution's security tracker for the specific backported kernel package version.
Workarounds
- Unload the InfiniBand user verbs module where RDMA is not required by running modprobe -r ib_uverbs and blacklisting it in /etc/modprobe.d/
- Prefer 64-bit kernel builds, as the truncation corner case is most severe on 32-bit systems
- Limit RDMA device access to a dedicated group and remove unprivileged users from that group until the patched kernel is deployed
# Restrict RDMA device access and disable user verbs where not needed
sudo chgrp rdma /dev/infiniband/uverbs*
sudo chmod 0660 /dev/infiniband/uverbs*
echo 'blacklist ib_uverbs' | sudo tee /etc/modprobe.d/disable-ib-uverbs.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

