CVE-2026-139267: RDMA/mlx5: Validate priority in STEERING_ANCHOR_CREATE handler
In the Linux kernel, the following vulnerability has been resolved:
RDMA/mlx5: Validate priority in STEERINGANCHORCREATE handler
In MLX5IBMETHODSTEERINGANCHORCREATE, the user-supplied u16 priority is passed directly to getflowtable() without an upper bound check. This can lead to out-of-bounds array accesses on dev->flowdb priority tables.
Check that priority does not exceed MLX5IBFLOWLASTPRIO before calling getflowtable(), matching the existing validation in rawfsruleadd() and mlx5ibcreateflow().
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
In the MLX5_IB_METHOD_STEERING_ANCHOR_CREATE handler, validate that the user-supplied priority does not exceed MLX5_IB_FLOW_LAST_PRIO before passing it to _get_flow_table().
Event History
Frequently Asked Questions
Who is exposed to this issue?
Systems running the Linux kernel with the RDMA/mlx5 steering-anchor creation handler available are exposed when an actor can supply a priority value to MLX5_IB_METHOD_STEERING_ANCHOR_CREATE.
What does an attacker need to trigger the vulnerability?
The attacker needs to submit a steering-anchor create request with a user-controlled u16 priority greater than MLX5_IB_FLOW_LAST_PRIO. The unchecked value can then reach _get_flow_table() and index flow-db priority tables out of bounds.
How can the issue be mitigated before applying a fix?
Restrict access to the RDMA/mlx5 steering-anchor creation interface so untrusted users cannot submit MLX5_IB_METHOD_STEERING_ANCHOR_CREATE requests. Requests should reject priorities above MLX5_IB_FLOW_LAST_PRIO.