CVE-2026-139254
JSON

7.0high

net/mlx5: HWS, fix modify header pool creation race

Severity
7.0high CVSS:3.1 by Linux
Exploit likelihood
0.16% (higher than 5% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List

References

Sources

SourceRecordLicence
CVE ListCVE-2026-139254 changed 2026-12-01CVE Terms of Use
NVDCVE-2026-139254 changed 2026-12-01Public domain