# CVE-2026-139414: RDMA/efa: Fix race between admin command timeout and completion

- Severity: High 7.0 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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.17%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-11-30T13:34:32.084Z
- Modified: 2026-12-01T06:17:45.957Z
- Assigned by: Linux

## Description

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

RDMA/efa: Fix race between admin command timeout and completion

An admin command that times out can race with the interrupt handler
processing its completion, in two ways.

The timeout path releases the completion context without synchronizing
against the handler. A handler that has already seen the command as
submitted then copies the CQE into the caller's response buffer after
the waiter returned and that buffer went out of scope.

The waiter can also observe the command as completed before the CQE was
copied, since the status is published first. It decodes its own
uninitialized response buffer, returns success with garbage contents and
leaks stack data to the caller. Both wait paths read the status without
the CQ lock.

Add a timed-out state and publish it under the CQ lock in both wait
paths before returning, so the handler, which only completes commands in
submitted state, cannot act on an abandoned context. In the interrupt
wait path test the return value of the wait instead of the status: the
handler signals the completion after copying the CQE, so a successful
wait implies a valid response. Read the status in the polling wait path
inside the critical section that drains the CQ, which also lets a
completion arriving on the last iteration be honored instead of reported
as a timeout.

(As written by CVE List.)

## Affected

- Linux Linux: from 0420e542569b2e56df29d243d09f5974bb6594a4 before ad6eea849473c99bff4cf2efabb99de23227aacc; from 0420e542569b2e56df29d243d09f5974bb6594a4 before ca7275755f266ef555e8cf919b2661892ccdc0f6; from 0420e542569b2e56df29d243d09f5974bb6594a4 before 1d91c20117db97b723e3364458d7cb35c1e372b2; from 0420e542569b2e56df29d243d09f5974bb6594a4 before de7e6e39e305c30e37bd5969ffa35682309017e9; from 0420e542569b2e56df29d243d09f5974bb6594a4 before 466612f8a8020c6b3af6377c730775a4c630f12c; 5.2 (not affected: before 5.2; from 6.6.163 up to 6.6.*; from 6.12.119 up to 6.12.*; 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/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>

## Sources

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

---

Page: https://cve.day/CVE-2026-139414 · Whole record: https://cve.day/CVE-2026-139414.json · Rebuilt by cve.day 2026-12-01T06:32:23.869Z
