CVE-2026-139596: RDMA/mlx5: Set WQ event handler before firmware RQ insertion
In the Linux kernel, the following vulnerability has been resolved:
RDMA/mlx5: Set WQ event handler before firmware RQ insertion
createrq() inserts the RQ into dev->qptable.tree, making it visible to rsceventnotifier() before rwq->coreqp.event was assigned. A firmware WQCATASERROR event in that window finds a NULL event pointer.
Move the assignment before createrq().
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this race condition?
Linux kernel deployments using the RDMA/mlx5 driver and creating receive queues are in the affected code path. The failure requires a firmware WQ_CATAS_ERROR event to occur during the interval after the RQ is inserted into the device QP table but before its event handler is assigned.
What is the observable failure condition?
A firmware WQ_CATAS_ERROR notification can locate the newly visible RQ while its event callback pointer is still NULL. The fix closes this window by assigning the callback before the RQ is made visible to the firmware-related notification path.
How can the fix be identified without relying on a kernel version number?
The supplied stable kernel references identify the fix by commits f90c9f79c4363a1b6ca40bc8903e655d033bdd40, b8612992507418f0a4fed6b3049006c1eb53c9eb, and 3422e2d07396b19b22b1682dcde8b2df9dc4e470. Check whether the kernel source or vendor patch set contains the change that assigns rwq->core_qp.event before create_rq().