CVE-2026-139254: net/mlx5: HWS, fix modify header pool creation race
In the Linux kernel, the following vulnerability has been resolved:
net/mlx5: HWS, fix modify header pool creation race
mlx5cmdhwsmodifyheaderalloc() creates a pool at the index after the last one if no pool matches the pattern. TC and CT allocate modify headers concurrently, meaning two callers can take the same index and the second call fails with -EBUSY.
Its error path also destroys the pool it just created although another caller may already use it. Keep such a pool since cleanup releases it.
Pools now live until cleanup so the lookup needs no lock. A miss looks again under a mutex before creating the pool.
Tested for regressions on ConnectX-7 with firmware 28.48.1000.
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.18.65 - 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
Event History
Frequently Asked Questions
Which workloads are exposed to the race condition?
Systems using mlx5 HWS where TC and CT can allocate modify headers concurrently are exposed. The race occurs when both callers fail to find a matching pool and attempt to create a pool at the same index.
What symptoms can this issue produce?
One concurrent allocation can fail with -EBUSY after two callers select the same pool index. The failing path can also destroy a pool that another caller has already begun using.