HIGH Introduced in 5.16
efa EventQueue UAF
CVE-2026-98429
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
In the Linux kernel, the following vulnerability has been resolved: RDMA/efa: Keep EQ resources alive while IRQ is registered The completion IRQ handler accesses the EQ state and DMA buffer. Its IRQ was registered before that state was initialized, while teardown released the buffer before free_irq() synchronized the handler. Initialize the EQ without arming it, register the IRQ, and then arm it. Reverse the resource order during teardown by freeing the IRQ before destroying the EQ.
02KernelScan AI Analysis
Risk summary
A use-after-free in the AWS EFA RDMA driver allows a local attacker with access to the RDMA device to corrupt kernel memory during event queue teardown, potentially leading to privilege escalation or denial of service. The vulnerability affects systems with EFA hardware (common in AWS EC2 instances) where untrusted code can trigger RDMA completion queue operations.
Vulnerability analysis
The EFA driver's event queue (EQ) initialization registered the IRQ handler before the EQ state and DMA buffer were fully initialized, while teardown freed the DMA buffer before synchronizing the IRQ handler with free_irq(). This created two race windows: during initialization the handler could access uninitialized state, and during teardown the handler could fire after the buffer was freed. The fix splits EQ initialization into a non-arming setup phase and a separate arm step, reordering operations so the EQ is fully initialized before the IRQ is registered, and the IRQ is freed before the EQ is destroyed. An attacker needs local access to the EFA device (typically via /dev/infiniband/uverbs* with appropriate permissions) and can trigger the race by repeatedly creating and destroying completion queues with completion channels, making this exploitable in multi-tenant environments where untrusted workloads have RDMA device access.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.1 | 5.16 | 6.1.189 | 3cd652dfcd82 |
| 6.12 | 5.16 | 6.12.112 | 795eb34bfd8b |
| 6.18 | 5.16 | 6.18.54 | 38871ff47e2a |
| 6.6 | 5.16 | 6.6.158 | c767e2812cac |
| 7.2 | 5.16 | 7.2.8 | 9ecd3dcbdf1f |
| mainline | 5.16 | 7.3 | e22a3627b715 |
| cip/6.1 | 5.16 | 6.1.189-cip61 | 3cd652dfcd82 |
| cip/6.1-rt | 5.16 | 6.1.189-cip61-rt32 | 3cd652dfcd82 |
| cip/6.12 | 5.16 | 6.12.112-cip33 | 795eb34bfd8b |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.112-cip33 |
| cip/6.1 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |