CVE-2026-143256: net/mlx5e: IPoIB, Fix QPN lookup race
In the Linux kernel, the following vulnerability has been resolved:
net/mlx5e: IPoIB, Fix QPN lookup race
The parent RX completion path can load a QPN hash entry before mlx5ipkeydelqpn() unlinks and frees it, then dereference freed memory.
Use RCU hlist operations and defer freeing with kfreercu(). The existing RCU read-side section in mlx5enapipoll() covers the lookup. Keep htlock for writers and acquire it before looking up the entry to delete.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.276 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.227 - 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.7 - Compensating control
In the mlx5e IPoIB QPN lookup path, keep ht_lock for writers and acquire it before looking up an entry to delete; use RCU hlist operations and defer freeing entries with kfree_rcu().
Event History
Frequently Asked Questions
Which systems are exposed to this race?
Systems using the Linux kernel mlx5e IPoIB path are exposed when the parent RX completion path can look up a QPN entry while mlx5i_pkey_del_qpn() is unlinking and freeing that entry.
What must occur for the issue to be triggered?
A parent RX completion must load a QPN hash entry before the concurrent deletion path unlinks and frees it. The RX path can then dereference the freed entry.
How can I verify that a fix is present?
Check whether the QPN hash handling uses RCU hlist operations and defers entry freeing with kfree_rcu(), while retaining ht_lock for writers and taking it before deletion lookup. The referenced stable commits contain the fixes.