# CVE-2026-139256: RDMA/irdma: Bound in-flight CQP ops across deferred completions

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-11-30T13:33:03.892Z
- Modified: 2026-11-30T14:18:48.170Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

RDMA/irdma: Bound in-flight CQP ops across deferred completions

On IRDMA_GEN_3+ devices, CQP operations can complete in two stages:
Stage-1 on the CCQ acknowledges receipt and moves an entry from
cqp->ooo_avail to cqp->ooo_pnd, while Stage-2 signals final completion
via an AEQ event or a subsequent CCQ CQE.

In irdma_sc_ccq_get_cqe_info(), Stage-1 processing advances
cqp->sq_ring.tail so the SQ descriptor slot can be reused once consumed
by hardware, whereas cqp->completed_ops is only incremented on Stage-2.
Because irdma_cqp_ring_full() only checks cqp->sq_ring, a burst of
backlogged commands in dev->cqp_cmd_head allows irdma_process_bh() to
submit more concurrent in-flight CQP commands than the maximum supported
limit (cqp->sq_size - 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 irdma_cqp_ring_full() to bound total in-flight CQP
    operations (cqp->requested_ops - cqp->completed_ops) to
    (cqp->sq_size - 1).
  - Calling irdma_process_bh() at the end of irdma_process_ae_def_cmpl()
    so backlogged commands are drained after Stage-2 AEQ completions
    increment cqp->completed_ops and free in-flight capacity.

(As written by CVE List.)

## Affected

- Linux Linux: from c7db0abe5f2bbfa99a080b344e6f70a3d6d0ea38 before a57d4afc2768bd8bbc179e94d5bd97fa86ab86e9; from c7db0abe5f2bbfa99a080b344e6f70a3d6d0ea38 before 5eb28b4f552e334b6d788c5d83165769dc45d450; from c7db0abe5f2bbfa99a080b344e6f70a3d6d0ea38 before c3e8e9451e6f1b69f685b75e0fbf14f3d0fb2539; 6.18 (not affected: before 6.18; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/a57d4afc2768bd8bbc179e94d5bd97fa86ab86e9>
- <https://git.kernel.org/stable/c/5eb28b4f552e334b6d788c5d83165769dc45d450>
- <https://git.kernel.org/stable/c/c3e8e9451e6f1b69f685b75e0fbf14f3d0fb2539>

## Sources

- CVE List: [CVE-2026-139256](https://www.cve.org/CVERecord?id=CVE-2026-139256), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139256](https://nvd.nist.gov/vuln/detail/CVE-2026-139256), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139256 · Whole record: https://cve.day/CVE-2026-139256.json · Rebuilt by cve.day 2026-11-30T14:33:06.880Z
