net/mlx5: HWS, fix modify header pool creation race
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
net/mlx5: HWS, fix modify header pool creation race
mlx5_cmd_hws_modify_header_alloc() 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.
| Product | Versions |
|---|---|
| Linux Linux | b36315ca69cb39c839c98a31cae27b266481b0ac to before 479939aca455d0d14d618fb31668b49503e3dfeb Affectedb36315ca69cb39c839c98a31cae27b266481b0ac to before d0df668d184893e596c9ce9ec55fff339949c803 Affectedb36315ca69cb39c839c98a31cae27b266481b0ac to before e4ab8ab27ab1c9f0cd1589bee471d93319e20c95 Affected |
| Linux Linux | 6.14 Affectedbefore 6.14 Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.