CVE-2026-139595: RDMA/mlx5: Set SRQ event handler before xarray insertion
In the Linux kernel, the following vulnerability has been resolved:
RDMA/mlx5: Set SRQ event handler before xarray insertion
mlx5cmdcreatesrq() stores the SRQ into the xarray before srq->msrq.event was assigned. A firmware SRQ event arriving in that window calls through a NULL pointer.
Move the assignment before mlx5cmdcreatesrq().
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Assign the mlx5 SRQ event handler before inserting the SRQ into the xarray (before calling mlx5_cmd_create_srq()).
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems running the Linux kernel with the RDMA/mlx5 driver in use and creating shared receive queues (SRQs) are exposed to the race condition. The issue depends on mlx5 firmware delivering an SRQ event during SRQ creation.
What is required to trigger the vulnerability?
An SRQ firmware event must arrive after the SRQ has been inserted into the xarray but before its event handler is assigned. In that window, the driver can invoke a NULL event-handler pointer.
What can be done if updating is not immediately possible?
The provided information does not identify a configuration workaround. Reducing or avoiding use of mlx5 RDMA shared receive queues may reduce exposure, but applicability cannot be determined from the available data.