# CVE-2026-139254: net/mlx5: HWS, fix modify header pool creation race

- Severity: High 7.0 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-11-30T13:33:02.805Z
- Modified: 2026-12-01T06:17:40.390Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from b36315ca69cb39c839c98a31cae27b266481b0ac before 479939aca455d0d14d618fb31668b49503e3dfeb; from b36315ca69cb39c839c98a31cae27b266481b0ac before d0df668d184893e596c9ce9ec55fff339949c803; from b36315ca69cb39c839c98a31cae27b266481b0ac before e4ab8ab27ab1c9f0cd1589bee471d93319e20c95; 6.14 (not affected: before 6.14; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/479939aca455d0d14d618fb31668b49503e3dfeb>
- <https://git.kernel.org/stable/c/d0df668d184893e596c9ce9ec55fff339949c803>
- <https://git.kernel.org/stable/c/e4ab8ab27ab1c9f0cd1589bee471d93319e20c95>

## Sources

- CVE List: [CVE-2026-139254](https://www.cve.org/CVERecord?id=CVE-2026-139254), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-139254](https://nvd.nist.gov/vuln/detail/CVE-2026-139254), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-139254 · Whole record: https://cve.day/CVE-2026-139254.json · Rebuilt by cve.day 2026-12-01T06:32:20.705Z
