RDMA/efa: Fix use of completion ctx after free
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
RDMA/efa: Fix use of completion ctx after free
On admin queue completion handling, if the admin command completed with error we print data from the completion context. The issue is that we already freed the completion context in polling/interrupts handler which means we print data from context in an unknown state (it might be already used again). Change the admin submission flow so alloc/dealloc of the context will be symmetric and dealloc will be called after any potential use of the context.
From the CVE record · Linux
The Linux kernel’s RDMA/efa admin queue can read a completion context after it has been freed when an admin command completes with an error. This can cause the kernel to use data whose state is unknown. The input does not specify how an attacker could trigger the error or whether access or user interaction is required.
Engineers running Linux kernels with the RDMA/efa driver should check their versions against the vendor advisory; affected versions are not specified.