CVE-2026-139599: RDMA/irdma: Free IRQ when CEQ vector mapping fails
In the Linux kernel, the following vulnerability has been resolved:
RDMA/irdma: Free IRQ when CEQ vector mapping fails
irdmacfgceqvector() registers an IRQ handler before requesting the CEQ-to-vector mapping through the virtual channel. If the mapping fails, the function returns without releasing the IRQ resources. The caller destroys the CEQ, leaving the IRQ handler registered and potentially referencing freed memory.
Call irdmadestroyirq() on mapping failure to release the IRQ resources and drain the associated tasklet before the caller destroys the CEQ. Use the same devid passed to requestirq(), accounting for CEQ0 sharing its interrupt vector with the AEQ.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
On CEQ-to-vector mapping failure, call irdma_destroy_irq() before the caller destroys the CEQ to release IRQ resources and drain the associated tasklet; use the same dev_id passed to request_irq(), accounting for CEQ0 sharing.
Event History
Frequently Asked Questions
What condition is required to trigger the unsafe cleanup path?
The CEQ-to-vector mapping request through the virtual channel must fail after irdma_cfg_ceq_vector() has already registered the IRQ handler. The subsequent CEQ destruction can then leave a registered handler potentially referencing freed memory.
What does the fix do to prevent the stale IRQ handler?
It calls irdma_destroy_irq() when CEQ vector mapping fails, releasing IRQ resources and draining the associated tasklet before the CEQ is destroyed. It also uses the same dev_id supplied to request_irq(), including for CEQ0, which shares its interrupt vector with the AEQ.