{"id":"CVE-2026-139256","aliases":["CVE-2026-139256"],"related":[],"kind":"vulnerability","state":"published","title":"RDMA/irdma: Bound in-flight CQP ops across deferred completions","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/irdma: Bound in-flight CQP ops across deferred completions\n\nOn IRDMA_GEN_3+ devices, CQP operations can complete in two stages:\nStage-1 on the CCQ acknowledges receipt and moves an entry from\ncqp->ooo_avail to cqp->ooo_pnd, while Stage-2 signals final completion\nvia an AEQ event or a subsequent CCQ CQE.\n\nIn irdma_sc_ccq_get_cqe_info(), Stage-1 processing advances\ncqp->sq_ring.tail so the SQ descriptor slot can be reused once consumed\nby hardware, whereas cqp->completed_ops is only incremented on Stage-2.\nBecause irdma_cqp_ring_full() only checks cqp->sq_ring, a burst of\nbacklogged commands in dev->cqp_cmd_head allows irdma_process_bh() to\nsubmit more concurrent in-flight CQP commands than the maximum supported\nlimit (cqp->sq_size - 1) while earlier commands await Stage-2. This\ncauses CQP completions to be lost and synchronous waiters to time out\nwith -ETIMEDOUT (-110).\n\nFix this by:\n  - Updating irdma_cqp_ring_full() to bound total in-flight CQP\n    operations (cqp->requested_ops - cqp->completed_ops) to\n    (cqp->sq_size - 1).\n  - Calling irdma_process_bh() at the end of irdma_process_ae_def_cmpl()\n    so backlogged commands are drained after Stage-2 AEQ completions\n    increment cqp->completed_ops and free in-flight capacity.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/irdma: Bound in-flight CQP ops across deferred completions\n\nOn IRDMA_GEN_3+ devices, CQP operations can complete in two stages:\nStage-1 on the CCQ acknowledges receipt and moves an entry from\ncqp->ooo_avail to cqp->ooo_pnd, while Stage-2 signals final completion\nvia an AEQ event or a subsequent CCQ CQE.\n\nIn irdma_sc_ccq_get_cqe_info(), Stage-1 processing advances\ncqp->sq_ring.tail so the SQ descriptor slot can be reused once consumed\nby hardware, whereas cqp->completed_ops is only incremented on Stage-2.\nBecause irdma_cqp_ring_full() only checks cqp->sq_ring, a burst of\nbacklogged commands in dev->cqp_cmd_head allows irdma_process_bh() to\nsubmit more concurrent in-flight CQP commands than the maximum supported\nlimit (cqp->sq_size - 1) while earlier commands await Stage-2. This\ncauses CQP completions to be lost and synchronous waiters to time out\nwith -ETIMEDOUT (-110).\n\nFix this by:\n  - Updating irdma_cqp_ring_full() to bound total in-flight CQP\n    operations (cqp->requested_ops - cqp->completed_ops) to\n    (cqp->sq_size - 1).\n  - Calling irdma_process_bh() at the end of irdma_process_ae_def_cmpl()\n    so backlogged commands are drained after Stage-2 AEQ completions\n    increment cqp->completed_ops and free in-flight capacity.","source":"cvelist"}],"published":"2026-11-30T13:33:03.892Z","modified":"2026-11-30T14:18:48.170Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"c7db0abe5f2bbfa99a080b344e6f70a3d6d0ea38","fixed":"a57d4afc2768bd8bbc179e94d5bd97fa86ab86e9","status":"affected"},{"type":"git","introduced":"c7db0abe5f2bbfa99a080b344e6f70a3d6d0ea38","fixed":"5eb28b4f552e334b6d788c5d83165769dc45d450","status":"affected"},{"type":"git","introduced":"c7db0abe5f2bbfa99a080b344e6f70a3d6d0ea38","fixed":"c3e8e9451e6f1b69f685b75e0fbf14f3d0fb2539","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.18","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/a57d4afc2768bd8bbc179e94d5bd97fa86ab86e9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5eb28b4f552e334b6d788c5d83165769dc45d450","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c3e8e9451e6f1b69f685b75e0fbf14f3d0fb2539","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139256","url":"https://www.cve.org/CVERecord?id=CVE-2026-139256","licence":"CVE Terms of Use","modified":"2026-11-30T13:33:03.892Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139256","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139256","licence":"Public domain","modified":"2026-11-30T14:18:48.170Z"}],"updatedAt":"2026-11-30T14:33:06.880Z","epss":{"score":0.00207,"percentile":0.11436,"date":"2026-12-01T12:00:22.000Z"}}