Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-139254

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

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 products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • b36315ca69cb39c839c98a31cae27b266481b0ac to < 479939aca455d0d14d618fb31668b49503e3dfebaffected
  • b36315ca69cb39c839c98a31cae27b266481b0ac to < d0df668d184893e596c9ce9ec55fff339949c803affected
  • b36315ca69cb39c839c98a31cae27b266481b0ac to < e4ab8ab27ab1c9f0cd1589bee471d93319e20c95affected

Linux Linux

Default version status: affected

  • 6.14affected
  • 0 to < 6.14unaffected
  • 6.18.65 to ≤ 6.18.*unaffected
  • 7.3.6 to ≤ 7.3.*unaffected
  • 7.4-rc1 to ≤ *unaffected

References