{"id":"CVE-2026-139414","state":"PUBLISHED","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.","publishedAt":"2026-11-30T13:34:32.084Z","updatedAt":"2026-11-30T13:34:32.084Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0420e542569b2e56df29d243d09f5974bb6594a4","status":"affected","lessThan":"ad6eea849473c99bff4cf2efabb99de23227aacc","versionType":"git"},{"version":"0420e542569b2e56df29d243d09f5974bb6594a4","status":"affected","lessThan":"ca7275755f266ef555e8cf919b2661892ccdc0f6","versionType":"git"},{"version":"0420e542569b2e56df29d243d09f5974bb6594a4","status":"affected","lessThan":"1d91c20117db97b723e3364458d7cb35c1e372b2","versionType":"git"},{"version":"0420e542569b2e56df29d243d09f5974bb6594a4","status":"affected","lessThan":"de7e6e39e305c30e37bd5969ffa35682309017e9","versionType":"git"},{"version":"0420e542569b2e56df29d243d09f5974bb6594a4","status":"affected","lessThan":"466612f8a8020c6b3af6377c730775a4c630f12c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/efa/efa_com.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.2","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","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/efa/efa_com.c"]}],"references":["https://git.kernel.org/stable/c/ad6eea849473c99bff4cf2efabb99de23227aacc","https://git.kernel.org/stable/c/ca7275755f266ef555e8cf919b2661892ccdc0f6","https://git.kernel.org/stable/c/1d91c20117db97b723e3364458d7cb35c1e372b2","https://git.kernel.org/stable/c/de7e6e39e305c30e37bd5969ffa35682309017e9","https://git.kernel.org/stable/c/466612f8a8020c6b3af6377c730775a4c630f12c"],"weaknesses":[],"ingestedAt":"2026-11-30T13:48:04.491Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139414.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139414","state":"PUBLISHED","datePublished":"2026-11-30T13:34:32.084Z","dateUpdated":"2026-11-30T13:34:32.084Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.932Z"},"containers":{"cna":{"title":"RDMA/efa: Fix race between admin command timeout and completion","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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0420e542569b2e56df29d243d09f5974bb6594a4","status":"affected","lessThan":"ad6eea849473c99bff4cf2efabb99de23227aacc","versionType":"git"},{"version":"0420e542569b2e56df29d243d09f5974bb6594a4","status":"affected","lessThan":"ca7275755f266ef555e8cf919b2661892ccdc0f6","versionType":"git"},{"version":"0420e542569b2e56df29d243d09f5974bb6594a4","status":"affected","lessThan":"1d91c20117db97b723e3364458d7cb35c1e372b2","versionType":"git"},{"version":"0420e542569b2e56df29d243d09f5974bb6594a4","status":"affected","lessThan":"de7e6e39e305c30e37bd5969ffa35682309017e9","versionType":"git"},{"version":"0420e542569b2e56df29d243d09f5974bb6594a4","status":"affected","lessThan":"466612f8a8020c6b3af6377c730775a4c630f12c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/efa/efa_com.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.2","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","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/efa/efa_com.c"]}],"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"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:34:32.084Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}