{"api_version":"1","generated_at":"2026-12-01T06:50:23+00:00","cve":"CVE-2026-139414","urls":{"html":"https://cve.report/CVE-2026-139414","api":"https://cve.report/api/cve/CVE-2026-139414.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139414","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139414"},"summary":{"title":"RDMA/efa: Fix race between admin command timeout and completion","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/efa: Fix race between admin command timeout and completion\n\nAn admin command that times out can race with the interrupt handler\nprocessing its completion, in two ways.\n\nThe timeout path releases the completion context without synchronizing\nagainst the handler. A handler that has already seen the command as\nsubmitted then copies the CQE into the caller's response buffer after\nthe waiter returned and that buffer went out of scope.\n\nThe waiter can also observe the command as completed before the CQE was\ncopied, since the status is published first. It decodes its own\nuninitialized response buffer, returns success with garbage contents and\nleaks stack data to the caller. Both wait paths read the status without\nthe CQ lock.\n\nAdd a timed-out state and publish it under the CQ lock in both wait\npaths before returning, so the handler, which only completes commands in\nsubmitted state, cannot act on an abandoned context. In the interrupt\nwait path test the return value of the wait instead of the status: the\nhandler signals the completion after copying the CQE, so a successful\nwait implies a valid response. Read the status in the polling wait path\ninside the critical section that drains the CQ, which also lets a\ncompletion arriving on the last iteration be honored instead of reported\nas a timeout.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:10","updated_at":"2026-12-01 06:17:45"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/ca7275755f266ef555e8cf919b2661892ccdc0f6","name":"https://git.kernel.org/stable/c/ca7275755f266ef555e8cf919b2661892ccdc0f6","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ad6eea849473c99bff4cf2efabb99de23227aacc","name":"https://git.kernel.org/stable/c/ad6eea849473c99bff4cf2efabb99de23227aacc","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1d91c20117db97b723e3364458d7cb35c1e372b2","name":"https://git.kernel.org/stable/c/1d91c20117db97b723e3364458d7cb35c1e372b2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/466612f8a8020c6b3af6377c730775a4c630f12c","name":"https://git.kernel.org/stable/c/466612f8a8020c6b3af6377c730775a4c630f12c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/de7e6e39e305c30e37bd5969ffa35682309017e9","name":"https://git.kernel.org/stable/c/de7e6e39e305c30e37bd5969ffa35682309017e9","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139414","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139414","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0420e542569b2e56df29d243d09f5974bb6594a4 ad6eea849473c99bff4cf2efabb99de23227aacc git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0420e542569b2e56df29d243d09f5974bb6594a4 ca7275755f266ef555e8cf919b2661892ccdc0f6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0420e542569b2e56df29d243d09f5974bb6594a4 1d91c20117db97b723e3364458d7cb35c1e372b2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0420e542569b2e56df29d243d09f5974bb6594a4 de7e6e39e305c30e37bd5969ffa35682309017e9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0420e542569b2e56df29d243d09f5974bb6594a4 466612f8a8020c6b3af6377c730775a4c630f12c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.2","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.2 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/infiniband/hw/efa/efa_com.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"ad6eea849473c99bff4cf2efabb99de23227aacc","status":"affected","version":"0420e542569b2e56df29d243d09f5974bb6594a4","versionType":"git"},{"lessThan":"ca7275755f266ef555e8cf919b2661892ccdc0f6","status":"affected","version":"0420e542569b2e56df29d243d09f5974bb6594a4","versionType":"git"},{"lessThan":"1d91c20117db97b723e3364458d7cb35c1e372b2","status":"affected","version":"0420e542569b2e56df29d243d09f5974bb6594a4","versionType":"git"},{"lessThan":"de7e6e39e305c30e37bd5969ffa35682309017e9","status":"affected","version":"0420e542569b2e56df29d243d09f5974bb6594a4","versionType":"git"},{"lessThan":"466612f8a8020c6b3af6377c730775a4c630f12c","status":"affected","version":"0420e542569b2e56df29d243d09f5974bb6594a4","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/infiniband/hw/efa/efa_com.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.2"},{"lessThan":"5.2","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"5.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"5.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"5.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"5.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.2","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/efa: Fix race between admin command timeout and completion\n\nAn admin command that times out can race with the interrupt handler\nprocessing its completion, in two ways.\n\nThe timeout path releases the completion context without synchronizing\nagainst the handler. A handler that has already seen the command as\nsubmitted then copies the CQE into the caller's response buffer after\nthe waiter returned and that buffer went out of scope.\n\nThe waiter can also observe the command as completed before the CQE was\ncopied, since the status is published first. It decodes its own\nuninitialized response buffer, returns success with garbage contents and\nleaks stack data to the caller. Both wait paths read the status without\nthe CQ lock.\n\nAdd a timed-out state and publish it under the CQ lock in both wait\npaths before returning, so the handler, which only completes commands in\nsubmitted state, cannot act on an abandoned context. In the interrupt\nwait path test the return value of the wait instead of the status: the\nhandler signals the completion after copying the CQE, so a successful\nwait implies a valid response. Read the status in the polling wait path\ninside the critical section that drains the CQ, which also lets a\ncompletion arriving on the last iteration be honored instead of reported\nas a timeout."}],"metrics":[{"cvssV3_1":{"baseScore":7,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:L - The racing waiter runs in efa_com_cmd_exec(), called from uverbs verbs like efa_create_qp()->efa_com_create_qp() on /dev/infiniband/uverbs*. Its only input is a completion entry posted by the local EFA device; no remote peer supplies the data that causes the bug.\nAC:H - The device must miss the admin completion timeout (ADMIN_CMD_TO or 30 s), then post the entry just as wait_for_completion_timeout() expires, and the handler must stall between setting EFA_CMD_COMPLETED and the memcpy. The user cannot cause any of this, and the first timeout disables the admin queue.\nPR:L - Any user who can open the uverbs device (0666 via rdma-core) can allocate a ucontext and issue CREATE_QP, REG_MR or CREATE_CQ admin commands. Neither efa_create_qp nor the core QP-create path checks a capability for UD or SRD (IB_QPT_DRIVER) QPs.\nUI:N - The attacker issues the verbs commands whose admin completion races from their own process; no other user or administrator has to act.\nS:U - The stack corruption and the bogus mmap entries stay within the host kernel's own authority. No guest-to-host, IOMMU or sandbox boundary is crossed.\nC:H - A timed-out waiter that sees COMPLETED early decodes uninitialized stack in efa_com_create_qp() as success. Its qp_num and sub-CQ indexes go back to userspace, and qp_mmap_entries_setup() turns its sq_db_offset and llq_descriptors_offset into mmap-able physical pages relative to the device's BARs. Pre-filled stack values could therefore expose foreign physical memory.\nI:H - The garbage offsets are mapped writable through rdma_user_mmap_io(), so a groomed value gives userspace write access to physical memory outside its own doorbell and LLQ pages. Separately, the handler's late memcpy of the completion entry writes into a returned stack frame and corrupts live kernel stack.\nA:H - The completion entry, up to 64 bytes, is copied into a dead caller frame while later calls reuse that stack. This can overwrite saved return addresses or the stack canary and cause an oops or panic. Any timeout also clears EFA_AQ_STATE_RUNNING_BIT, so every later admin command fails until the device is reprobed."}]}],"providerMetadata":{"dateUpdated":"2026-12-01T05:42:50.273Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/ad6eea849473c99bff4cf2efabb99de23227aacc"},{"url":"https://git.kernel.org/stable/c/ca7275755f266ef555e8cf919b2661892ccdc0f6"},{"url":"https://git.kernel.org/stable/c/1d91c20117db97b723e3364458d7cb35c1e372b2"},{"url":"https://git.kernel.org/stable/c/de7e6e39e305c30e37bd5969ffa35682309017e9"},{"url":"https://git.kernel.org/stable/c/466612f8a8020c6b3af6377c730775a4c630f12c"}],"title":"RDMA/efa: Fix race between admin command timeout and completion","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139414","datePublished":"2026-11-30T13:34:32.084Z","dateReserved":"2026-11-30T13:22:15.932Z","dateUpdated":"2026-12-01T05:42:50.273Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:10","lastModifiedDate":"2026-12-01 06:17:45","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139414","Ordinal":"1","Title":"RDMA/efa: Fix race between admin command timeout and completion","CVE":"CVE-2026-139414","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139414","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/efa: Fix race between admin command timeout and completion\n\nAn admin command that times out can race with the interrupt handler\nprocessing its completion, in two ways.\n\nThe timeout path releases the completion context without synchronizing\nagainst the handler. A handler that has already seen the command as\nsubmitted then copies the CQE into the caller's response buffer after\nthe waiter returned and that buffer went out of scope.\n\nThe waiter can also observe the command as completed before the CQE was\ncopied, since the status is published first. It decodes its own\nuninitialized response buffer, returns success with garbage contents and\nleaks stack data to the caller. Both wait paths read the status without\nthe CQ lock.\n\nAdd a timed-out state and publish it under the CQ lock in both wait\npaths before returning, so the handler, which only completes commands in\nsubmitted state, cannot act on an abandoned context. In the interrupt\nwait path test the return value of the wait instead of the status: the\nhandler signals the completion after copying the CQE, so a successful\nwait implies a valid response. Read the status in the polling wait path\ninside the critical section that drains the CQ, which also lets a\ncompletion arriving on the last iteration be honored instead of reported\nas a timeout.","Type":"Description","Title":"RDMA/efa: Fix race between admin command timeout and completion"}]}}}