CVE-2026-98429: RDMA/efa: Keep EQ resources alive while IRQ is registered
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-98429 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.16 with commit 2a152512a155aaf27c3e67834ffafaed9525a7b5 and fixed in 6.1.189 with commit 3cd652dfcd822af26ba75d6d2d245ea7f73b499e Issue introduced in 5.16 with commit 2a152512a155aaf27c3e67834ffafaed9525a7b5 and fixed in 6.6.158 with commit c767e2812cac83fef70fb8932c3f0fe97dff9388 Issue introduced in 5.16 with commit 2a152512a155aaf27c3e67834ffafaed9525a7b5 and fixed in 6.12.112 with commit 795eb34bfd8b1ab347adc41a11e4bb97c3ac0ce6 Issue introduced in 5.16 with commit 2a152512a155aaf27c3e67834ffafaed9525a7b5 and fixed in 6.18.54 with commit 38871ff47e2a02f8d9a333a65f358d987247b5b0 Issue introduced in 5.16 with commit 2a152512a155aaf27c3e67834ffafaed9525a7b5 and fixed in 7.2.8 with commit 9ecd3dcbdf1f315aadc049b291f59c79dc478062 Issue introduced in 5.16 with commit 2a152512a155aaf27c3e67834ffafaed9525a7b5 and fixed in 7.3-rc4 with commit e22a3627b7151754f07f90ea3d1ab6e85f5d93f4
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98429
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/infiniband/hw/efa/efa_com.c
drivers/infiniband/hw/efa/efa_com.h
drivers/infiniband/hw/efa/efa_main.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/3cd652dfcd822af26ba75d6d2d245ea7f73b499e https://git.kernel.org/stable/c/c767e2812cac83fef70fb8932c3f0fe97dff9388 https://git.kernel.org/stable/c/795eb34bfd8b1ab347adc41a11e4bb97c3ac0ce6 https://git.kernel.org/stable/c/38871ff47e2a02f8d9a333a65f358d987247b5b0 https://git.kernel.org/stable/c/9ecd3dcbdf1f315aadc049b291f59c79dc478062 https://git.kernel.org/stable/c/e22a3627b7151754f07f90ea3d1ab6e85f5d93f4