net/mlx5: HWS, fix matcher leak on resize target setup failure
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel bb09d0e64ecaa0aa0f7d1133a1696ed74dead295, Kernel 1dce4f4bb3c1c02080b1a45bdd2abb2913a6642a, Kernel a751ccdc6ea9bde154f25a5ba66926f462f96c19 and 4 more.
In the Linux kernel, the following vulnerability has been resolved: net/mlx5: HWS, fix matcher leak on resize target setup failure hws_bwc_matcher_move() allocates a replacement matcher before setting it as the resize target. If mlx5hws_matcher_resize_set_target() fails, the replacement matcher is not attached anywhere and is leaked. Fix the leak by destroying the replacement matcher before returning from the resize-target failure path. The bug was first flagged by an experimental analysis tool we are developing for kernel memory-management bugs while analyzing v6.13-rc1. The tool is still under development and is not yet publicly available. Manual inspection confirms that the bug is still present in v7.1.1. An x86_64 allyesconfig build showed no new warnings. As we do not have a mlx5 HWS-capable device to test with, no runtime testing was able to be performed.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=2111bb970c787b16b002dc726c1d296ce87a00fb <bb09d0e64ecaa0aa0f7d1133a1696ed74dead295, >=2111bb970c787b16b002dc726c1d296ce87a00fb <1dce4f4bb3c1c02080b1a45bdd2abb2913a6642a, >=2111bb970c787b16b002dc726c1d296ce87a00fb <a751ccdc6ea9bde154f25a5ba66926f462f96c19, >=2111bb970c787b16b002dc726c1d296ce87a00fb <ae0265f0a95aaacef59d560a3e1ea36db8be9a52, =6.12 | bb09d0e64ecaa0aa0f7d1133a1696ed74dead295, 1dce4f4bb3c1c02080b1a45bdd2abb2913a6642a, a751ccdc6ea9bde154f25a5ba66926f462f96c19, ae0265f0a95aaacef59d560a3e1ea36db8be9a52 |
| linux-kernel: Kernel | >=6.13.0 <6.18.40, >=6.19.0 <7.1.5, >=6.12.0 <6.12.101 | 6.18.40, 7.1.5, 6.12.101 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket