Description
In the Linux kernel, the following vulnerability has been resolved: net/mlx5: Only set num_doorbells on a fully initialized SF The validation for the num_doorbells devlink param rejects values greater than num_channels. For lightweight SFs, this ends up accessing a NULL priv->eq_table, leading to a crash. Fix that by rejecting setting num_doorbells on uninitialized SFs.
Affected products and versions
Linux Linux11bbcfb7668c6f4d97260f7caaefea22678bc31e – < 3338ecb532c27af28c7c41eaaab4b0b7795f6a0f · 11bbcfb7668c6f4d97260f7caaefea22678bc31e – < 2dbe2d06ec09a8cc06186cc052217f666f45e9d1 · 11bbcfb7668c6f4d97260f7caaefea22678bc31e – < fa503935c2d6603856dafff0a0852631ab6e9503Fixed in: 3338ecb532c27af28c7c41eaaab4b0b7795f6a0f · 2dbe2d06ec09a8cc06186cc052217f666f45e9d1 · fa503935c2d6603856dafff0a0852631ab6e9503
Linux Linux6.18Fixed in: 6.18.65 · 7.3.6 · 7.4-rc1
References
- git.kernel.org/stable/c/3338ecb532c27af28c7c41eaaab4b0b7795f6a0f
- git.kernel.org/stable/c/2dbe2d06ec09a8cc06186cc052217f666f45e9d1
- git.kernel.org/stable/c/fa503935c2d6603856dafff0a0852631ab6e9503
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.