Linux: RDMA/efa: Keep admin queues alive while IRQ is registered
What fixes it
- 0a8a105978e5ace0d885964317c5aed8ab4c0a0cLinuxCVE List
- 00f7df59543cce445cfd2f109ace88c17d8aef4dLinuxCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
In the Linux kernel, the following vulnerability has been resolved:
RDMA/efa: Keep admin queues alive while IRQ is registered
The management IRQ handler accesses both the admin completion queue and the async event queue. The driver registered the IRQ before constructing these queues and destroyed them before freeing the IRQ, so the handler's lifetime was not contained by the resources it accesses.
Initialize the queues with interrupts masked, request the IRQ, and then switch to interrupt mode. On removal, reset the device and free the IRQ before destroying the queues. Also reset the device before destroying the queues if IRQ registration fails, because the device already has their DMA addresses.
Text from CVE List
Affected versions 14
- Linuxaffected: b7f5e880f3774ff1934ce272e1c3b673a3a9c414 before 0a8a105978e5ace0d885964317c5aed8ab4c0a0cCVE List
- Linuxaffected: b7f5e880f3774ff1934ce272e1c3b673a3a9c414 before 00f7df59543cce445cfd2f109ace88c17d8aef4dCVE List
- Linuxaffected: b7f5e880f3774ff1934ce272e1c3b673a3a9c414 before bc7e64bad96c23fb343f47689670d0037f1a65e7CVE List
- Linuxaffected: b7f5e880f3774ff1934ce272e1c3b673a3a9c414 before d2a1c0bf4139c17b8d7668322b78c28d8c5b2dd0CVE List
- Linuxaffected: b7f5e880f3774ff1934ce272e1c3b673a3a9c414 before cf5520d1c931a70ccce0a1a247113bcec47a42beCVE List
- Linuxaffected: b7f5e880f3774ff1934ce272e1c3b673a3a9c414 before e08aca85c02ff290f785f07acae758f0daf5f49eCVE List
- Linuxaffected: 5.2CVE List
- Linuxunaffected: all versions before 5.2CVE List
- Linuxunaffected: 6.1.189 through 6.1.*CVE List
- Linuxunaffected: 6.6.158 through 6.6.*CVE List
- Linuxunaffected: 6.12.112 through 6.12.*CVE List
- Linuxunaffected: 6.18.54 through 6.18.*CVE List
- Linuxunaffected: 7.2.8 through 7.2.*CVE List
- Linuxunaffected: 7.3CVE List
References 6
- git.kernel.org/stable/c/0a8a105978e5ace0d885964317c5aed8ab4c0a0cReferencevia CVE List
- git.kernel.org/stable/c/00f7df59543cce445cfd2f109ace88c17d8aef4dReferencevia CVE List
- git.kernel.org/stable/c/bc7e64bad96c23fb343f47689670d0037f1a65e7Referencevia CVE List
- git.kernel.org/stable/c/d2a1c0bf4139c17b8d7668322b78c28d8c5b2dd0Referencevia CVE List
- git.kernel.org/stable/c/cf5520d1c931a70ccce0a1a247113bcec47a42beReferencevia CVE List
- git.kernel.org/stable/c/e08aca85c02ff290f785f07acae758f0daf5f49eReferencevia CVE List