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-98354 Overview
CVE-2026-98354 is a memory leak in the Linux kernel's RDMA Management Datagram (MAD) subsystem. The flaw lives in ib_mad_complete_recv(), which initializes mad_recv_wc->rmpp_list and then calls ib_mad_enforce_security() before linking recv_buf onto that list. When PKey enforcement fails, the error path invokes ib_free_recv_mad(), which walks the still-empty rmpp_list and frees nothing. Each MAD that fails the PKey check leaks one ib_mad_private structure, approximately 300 bytes per InfiniBand port MAD and roughly 2 KB for Omni-Path Architecture (OPA). A remote node can trigger the leak repeatedly by sending MADs with an incorrect PKey.
Critical Impact
A remote peer on the InfiniBand or OPA fabric can exhaust kernel memory on a target host by sending a stream of MADs with invalid PKeys, enabling a slow denial-of-service condition against RDMA-enabled systems.
Affected Products
- Linux kernel builds containing the drivers/infiniband/core/mad.c PKey enforcement path prior to the fix
- Systems with InfiniBand host channel adapters using the ib_mad subsystem
- Systems using Intel Omni-Path Architecture (OPA) ports that process MADs through the same code path
Discovery Timeline
- 2026-10-06 - CVE CVE-2026-98354 published to NVD
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-98354
Vulnerability Analysis
The RDMA MAD layer handles management datagrams used for subnet administration, performance queries, and other fabric control functions. When a MAD is received, ib_mad_complete_recv() prepares a work completion structure, mad_recv_wc, and initializes its rmpp_list head. The function then calls ib_mad_enforce_security() to validate the Partition Key (PKey) before attaching the receive buffer to the list.
If PKey enforcement rejects the MAD, the function jumps to its error path and calls ib_free_recv_mad(). That helper iterates rmpp_list and frees each ib_mad_private structure it finds. Because recv_buf has not yet been linked, the list is empty and the allocation is never released. The caller, ib_mad_recv_done(), sets its local recv pointer to NULL immediately after ib_mad_complete_recv() returns, assuming the MAD layer took ownership. Ownership is effectively lost, and the buffer leaks.
Root Cause
The root cause is an ordering bug in resource management [CWE-401, Missing Release of Memory after Effective Lifetime]. The receive buffer is allocated and the error-handling helper is wired to walk rmpp_list, but the code calls the fallible ib_mad_enforce_security() check before linking the buffer onto that list. The fix links recv_buf onto rmpp_list immediately after the list is initialized, so the error path has a buffer to free.
Attack Vector
Exploitation requires network reachability over an InfiniBand or OPA fabric. A remote node sends MADs carrying a PKey that does not match the receiver's configured partition membership. Each rejected MAD leaks one ib_mad_private allocation from kernel memory. Sustained traffic drains available kernel memory over time, degrading system stability and eventually triggering out-of-memory conditions on the target host. No authentication at the application layer is required; the attacker only needs to send traffic on the fabric to a port that performs PKey enforcement.
No public proof-of-concept code is available. The vulnerability is described in the upstream kernel commit message referenced below.
Detection Methods for CVE-2026-98354
Indicators of Compromise
- Steady, unexplained growth in kernel slab memory, especially allocations associated with ib_mad_private objects visible in /proc/slabinfo.
- Elevated counts of PKey violation events in InfiniBand subnet manager logs or in per-port performance counters that track dropped MADs.
- Increasing MemAvailable pressure on hosts with active InfiniBand or OPA ports despite no corresponding workload change.
Detection Strategies
- Correlate kernel memory growth with inbound MAD traffic volume on IB and OPA ports to identify hosts under slow-drain conditions.
- Monitor subnet manager and switch telemetry for repeated PKey mismatches sourced from a single remote GUID or port.
- Baseline ib_mad_private slab usage during normal operation and alert on sustained upward drift that does not reset after idle periods.
Monitoring Recommendations
- Ingest /proc/slabinfo, /proc/meminfo, and InfiniBand performance counter data into a centralized logging pipeline for trend analysis.
- Alert on PKey violation counter deltas that exceed a defined threshold within a short window to catch active probing or misconfigured peers.
- Track kernel log messages from the ib_mad and security enforcement paths to flag repeated enforcement failures tied to the same source.
How to Mitigate CVE-2026-98354
Immediate Actions Required
- Apply the upstream kernel fix that links recv_buf onto rmpp_list immediately after initialization, as documented in the referenced stable commits.
- Audit PKey configuration across the fabric so that legitimate endpoints share partition membership and spurious PKey mismatches are eliminated.
- Restrict fabric access to trusted hosts and disable unused InfiniBand or OPA ports on systems that do not require RDMA management traffic.
Patch Information
The fix is distributed across the stable kernel trees as commits 3476c28, 39c4ea7, 4617c9a, 5091e25, 752b30e, 8e2036f, bad289e, and c0d8df8. Deploy a distribution kernel that includes these commits for the relevant long-term support branch.
Workarounds
- Enforce strict PKey partitioning at the subnet manager so that only authorized endpoints can send MADs to a given port, reducing the attack surface.
- Where possible, scheduled reboots or kernel live-patching can reclaim leaked memory until the official patch is deployed.
- Place RDMA-enabled hosts on isolated fabrics with no connectivity to untrusted tenants or external networks.
# Verify running kernel version and check for the ib_mad_private slab
uname -r
grep -E 'ib_mad_private|ib_mad' /proc/slabinfo
# Inspect PKey violation counters per IB port
for port in /sys/class/infiniband/*/ports/*/counters/; do
echo "$port"
cat "$port/pkey_violations" 2>/dev/null
done
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

