CVE-2026-139256: RDMA/irdma: Bound in-flight CQP ops across deferred completions
In the Linux kernel, the following vulnerability has been resolved:
RDMA/irdma: Bound in-flight CQP ops across deferred completions
On IRDMAGEN3+ devices, CQP operations can complete in two stages: Stage-1 on the CCQ acknowledges receipt and moves an entry from cqp->oooavail to cqp->ooopnd, while Stage-2 signals final completion via an AEQ event or a subsequent CCQ CQE.
In irdmascccqgetcqeinfo(), Stage-1 processing advances cqp->sqring.tail so the SQ descriptor slot can be reused once consumed by hardware, whereas cqp->completedops is only incremented on Stage-2. Because irdmacqpringfull() only checks cqp->sqring, a burst of backlogged commands in dev->cqpcmdhead allows irdmaprocessbh() to submit more concurrent in-flight CQP commands than the maximum supported limit (cqp->sqsize - 1) while earlier commands await Stage-2. This causes CQP completions to be lost and synchronous waiters to time out with -ETIMEDOUT (-110).
Fix this by: - Updating irdmacqpringfull() to bound total in-flight CQP operations (cqp->requestedops - cqp->completedops) to (cqp->sqsize - 1). - Calling irdmaprocessbh() at the end of irdmaprocessaedefcmpl() so backlogged commands are drained after Stage-2 AEQ completions increment cqp->completedops and free in-flight capacity.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the irdma code, update irdma_cqp_ring_full() to bound total in-flight CQP operations (cqp->requested_ops - cqp->completed_ops) to cqp->sq_size - 1, and call irdma_process_bh() at the end of irdma_process_ae_def_cmpl() so backlogged commands are drained after Stage-2 AEQ completions.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel's IRDMA driver with IRDMA_GEN_3 or later devices are implicated. The problematic condition involves the driver's two-stage CQP completion handling on those devices.
What conditions trigger the failure?
A burst of backlogged commands in dev->cqp_cmd_head can cause the driver to submit more concurrent in-flight CQP commands than its supported limit while earlier commands are still awaiting Stage-2 completion. This can lead to lost CQP completions and synchronous waiters timing out with -ETIMEDOUT (-110).
How can an affected system be identified?
A relevant symptom is synchronous CQP operations timing out with -ETIMEDOUT (-110), particularly during backlogged CQP command activity. The underlying failure involves lost CQP completions after the in-flight operation count exceeds cqp->sq_size - 1.