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-98352 Overview
CVE-2026-98352 is a race condition in the Linux kernel's RDMA transport client (RDMA/rtrs-clt). The client borrows shared Completion Queue (CQ) credits via ib_cq_pool_get() in the ADDR_RESOLVED handler before the peer connects. When create_cm() returns -ERESTARTSYS from wait_event_interruptible_timeout(), the connection teardown path can run destroy_con_cq_qp() while the CQ reference is still being acquired by a concurrent handler. The result is a CQ pool leak that triggers WARN_ON(cq->cqe_used) in ib_cq_pool_cleanup() at device unregister time.
Critical Impact
Local attackers or faulty workloads interrupting RDMA connection attempts can trigger a kernel resource leak and reach a WARN_ON path during InfiniBand device teardown, degrading host stability.
Affected Products
- Linux kernel (upstream)
- Kernel builds including the rtrs-clt RDMA transport module
- Stable kernel branches referenced by the fix commits below
Discovery Timeline
- 2026-10-06 - CVE CVE-2026-98352 published to NVD
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-98352
Vulnerability Analysis
The flaw is a race condition between the RDMA Connection Manager (CMA) ADDR_RESOLVED event handler and the connection teardown path in the rtrs-clt client. The handler calls ib_cq_pool_get() to borrow shared CQ credits before the remote peer is connected. If create_cm() returns -ERESTARTSYS from wait_event_interruptible_timeout(), the CM ID is not destroyed immediately. The subsequent init_conns() and stop-and-destroy paths invoke destroy_con_cq_qp() while cq is still NULL, meaning no matching ib_cq_pool_put() occurs. rdma_destroy_id() runs afterward.
CMA uses handler_mutex to serialize the handler against rdma_destroy_id(), but that mutex does not order the credit GET against destroy_con_cq_qp(). If ADDR_RESOLVED has already passed the DESTROYING check, it can acquire con_mutex, borrow credits, and then race against kfree of the connection structure. Later device unregister trips WARN_ON(cq->cqe_used) inside ib_cq_pool_cleanup(), signalling the leaked credits.
Root Cause
The root cause is missing synchronization between CQ credit acquisition and connection teardown [CWE-362: Race Condition, CWE-401: Memory Leak]. The CMA handler_mutex guards against concurrent destroy of the CM ID but does not prevent the handler from borrowing CQ credits for a connection that is already being torn down.
Attack Vector
The vulnerability requires local triggering of an interruptible RDMA connect operation that is cancelled before address resolution completes. An interrupted connect() on an rtrs-clt session, combined with concurrent teardown, drives the race. Repeated triggering leaks CQ pool credits and leaves the system in a state where subsequent InfiniBand device unregister emits a kernel warning and may destabilize the RDMA subsystem.
No working proof-of-concept exploit code is published. The upstream fix sets a per-connection flag under con_mutex before CQ/QP teardown so a racing ADDR_RESOLVED cannot borrow credits after teardown has begun. See the stable commits linked in the Patch Information section for the exact change.
Detection Methods for CVE-2026-98352
Indicators of Compromise
- Kernel warnings matching WARN_ON(cq->cqe_used) emitted from ib_cq_pool_cleanup() during InfiniBand device unregister.
- Stack traces referencing destroy_con_cq_qp, ib_cq_pool_get, or rtrs_clt around the time of an interrupted RDMA session.
- Increasing counts of in-use CQ entries on InfiniBand devices with no corresponding active rtrs-clt sessions.
Detection Strategies
- Monitor dmesg and /var/log/messages for WARN_ON entries originating in drivers/infiniband/core/cq.c.
- Correlate RDMA client connect failures returning -ERESTARTSYS with later device unregister warnings on the same host.
- Audit kernel versions across RDMA-enabled hosts to identify builds missing the referenced stable commits.
Monitoring Recommendations
- Centralize kernel logs from RDMA/InfiniBand hosts into a SIEM and alert on ib_cq_pool_cleanup warnings.
- Track RDMA module load/unload events on storage and HPC fabrics where rtrs-clt is used.
- Baseline normal RDMA session lifecycle metrics so interrupted connect storms stand out.
How to Mitigate CVE-2026-98352
Immediate Actions Required
- Inventory hosts running RDMA workloads that use the rtrs-clt transport, including NVMe-over-Fabrics clients built on RTRS.
- Apply the vendor kernel update that includes the upstream fix to all affected systems, prioritizing production RDMA fabrics.
- Where patching is deferred, avoid programmatically interrupting pending RDMA connect operations.
Patch Information
The fix adds a per-connection teardown flag taken under con_mutex so that a racing ADDR_RESOLVED handler cannot borrow CQ credits after teardown has started. Apply the stable kernel updates containing the following commits:
- Kernel Commit 2ae16aa
- Kernel Commit 31024e15
- Kernel Commit 6f8020fe
- Kernel Commit 74c4ed55
- Kernel Commit 8f253d58
- Kernel Commit a82cca40
- Kernel Commit bf88ac48
Workarounds
- Unload the rtrs-client module on hosts that do not require RTRS-based RDMA transports until a patched kernel is deployed.
- Restrict unprivileged processes from issuing RDMA connect operations on affected hosts via standard Linux capability and namespace controls.
- Schedule InfiniBand device resets and host reboots during maintenance windows to clear leaked CQ credits accumulated before patching.
# Verify running kernel and check for the rtrs-client module
uname -r
lsmod | grep -E 'rtrs_client|rtrs-client'
# Temporary mitigation on hosts that do not require RTRS
sudo modprobe -r rtrs_client
echo 'blacklist rtrs_client' | sudo tee /etc/modprobe.d/blacklist-rtrs-client.conf
# After patching, confirm no stale CQ warnings appear
sudo dmesg -T | grep -i 'ib_cq_pool_cleanup\|cqe_used'
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

