Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-139414

published high CVSS 3.1 · 7.0

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

Published
30 Nov 2026, 13:34:32 UTC
Updated
01 Dec 2026, 05:42:50 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux0420e542569b2e56df29d243d09f5974bb6594a4 to < ad6eea849473c99bff4cf2efabb99de23227aacc · 0420e542569b2e56df29d243d09f5974bb6594a4 to < ca7275755f266ef555e8cf919b2661892ccdc0f6 · 0420e542569b2e56df29d243d09f5974bb6594a4 to < 1d91c20117db97b723e3364458d7cb35c1e372b2 · 0420e542569b2e56df29d243d09f5974bb6594a4 to < de7e6e39e305c30e37bd5969ffa35682309017e9 · 0420e542569b2e56df29d243d09f5974bb6594a4 to < 466612f8a8020c6b3af6377c730775a4c630f12c · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.2 (affected) · 0 to < 5.2 (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated 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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.0 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: 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. AC: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. PR: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. UI:N - The attacker issues the verbs commands whose admin completion races from their own process; no other user or administrator has to act. S: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. C: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. I: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. A: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.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 0420e542569b2e56df29d243d09f5974bb6594a4 to < ad6eea849473c99bff4cf2efabb99de23227aacc (affected · git)0420e542569b2e56df29d243d09f5974bb6594a4 to < ca7275755f266ef555e8cf919b2661892ccdc0f6 (affected · git)0420e542569b2e56df29d243d09f5974bb6594a4 to < 1d91c20117db97b723e3364458d7cb35c1e372b2 (affected · git)0420e542569b2e56df29d243d09f5974bb6594a4 to < de7e6e39e305c30e37bd5969ffa35682309017e9 (affected · git)0420e542569b2e56df29d243d09f5974bb6594a4 to < 466612f8a8020c6b3af6377c730775a4c630f12c (affected · git)Default: unaffected Linux · cna
Linux Linux 5.2 (affected)0 to < 5.2 (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

5

Provider assertions

1

Linux · cna

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

Provenance

Schema
5.2
Searchable
yes
Content hash
16f904ccd604573ddd1153cb951fb7628866dd9ad2681e03e6d19dc1cbffbb8f
Ingested
01 Dec 2026, 05:47:22 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected