{"id":"CVE-2026-139256","state":"PUBLISHED","title":"RDMA/irdma: Bound in-flight CQP ops across deferred completions","description":"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.","publishedAt":"2026-11-30T13:33:03.892Z","updatedAt":"2026-11-30T13:33:03.892Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c7db0abe5f2bbfa99a080b344e6f70a3d6d0ea38","status":"affected","lessThan":"a57d4afc2768bd8bbc179e94d5bd97fa86ab86e9","versionType":"git"},{"version":"c7db0abe5f2bbfa99a080b344e6f70a3d6d0ea38","status":"affected","lessThan":"5eb28b4f552e334b6d788c5d83165769dc45d450","versionType":"git"},{"version":"c7db0abe5f2bbfa99a080b344e6f70a3d6d0ea38","status":"affected","lessThan":"c3e8e9451e6f1b69f685b75e0fbf14f3d0fb2539","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/irdma/ctrl.c","drivers/infiniband/hw/irdma/hw.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/irdma/ctrl.c","drivers/infiniband/hw/irdma/hw.c"]}],"references":["https://git.kernel.org/stable/c/a57d4afc2768bd8bbc179e94d5bd97fa86ab86e9","https://git.kernel.org/stable/c/5eb28b4f552e334b6d788c5d83165769dc45d450","https://git.kernel.org/stable/c/c3e8e9451e6f1b69f685b75e0fbf14f3d0fb2539"],"weaknesses":[],"ingestedAt":"2026-11-30T13:46:04.484Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139256.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139256","state":"PUBLISHED","datePublished":"2026-11-30T13:33:03.892Z","dateUpdated":"2026-11-30T13:33:03.892Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.923Z"},"containers":{"cna":{"title":"RDMA/irdma: Bound in-flight CQP ops across deferred completions","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c7db0abe5f2bbfa99a080b344e6f70a3d6d0ea38","status":"affected","lessThan":"a57d4afc2768bd8bbc179e94d5bd97fa86ab86e9","versionType":"git"},{"version":"c7db0abe5f2bbfa99a080b344e6f70a3d6d0ea38","status":"affected","lessThan":"5eb28b4f552e334b6d788c5d83165769dc45d450","versionType":"git"},{"version":"c7db0abe5f2bbfa99a080b344e6f70a3d6d0ea38","status":"affected","lessThan":"c3e8e9451e6f1b69f685b75e0fbf14f3d0fb2539","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/irdma/ctrl.c","drivers/infiniband/hw/irdma/hw.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/irdma/ctrl.c","drivers/infiniband/hw/irdma/hw.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/a57d4afc2768bd8bbc179e94d5bd97fa86ab86e9"},{"url":"https://git.kernel.org/stable/c/5eb28b4f552e334b6d788c5d83165769dc45d450"},{"url":"https://git.kernel.org/stable/c/c3e8e9451e6f1b69f685b75e0fbf14f3d0fb2539"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:33:03.892Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}