IB/mlx5: Fix transport-domain rollback and initialize lb mutex earlier
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel f88e12c95fc19f719e06ca1e9eb20fdad68ef61a, Kernel 2c3b2667dad69d56774b79db763acb3a1bee0fc0, Kernel 37fc3cc0f924fd8d0f0cf87b92672dec75a32e57 and 8 more.
In the Linux kernel, the following vulnerability has been resolved: IB/mlx5: Fix transport-domain rollback and initialize lb mutex earlier mlx5_ib_alloc_transport_domain() allocates a transport domain and then may fail in mlx5_ib_enable_lb(). In that case, the allocated TD is leaked. Fix this by deallocating the TD when mlx5_ib_enable_lb() returns an error. Also return 0 explicitly in the no-loopback-capability success branch, and move dev->lb.mutex initialization to mlx5_ib_stage_init_init().
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=146d2f1af3245a10b13eef263687e54f4e253d1d <f88e12c95fc19f719e06ca1e9eb20fdad68ef61a, >=146d2f1af3245a10b13eef263687e54f4e253d1d <2c3b2667dad69d56774b79db763acb3a1bee0fc0, >=146d2f1af3245a10b13eef263687e54f4e253d1d <37fc3cc0f924fd8d0f0cf87b92672dec75a32e57, >=146d2f1af3245a10b13eef263687e54f4e253d1d <65e344925fa30abf50c8de8c150b397715fa2066, >=146d2f1af3245a10b13eef263687e54f4e253d1d <6da717ed8a0703a331295fdd5ad8b7eacec216ad, >=146d2f1af3245a10b13eef263687e54f4e253d1d <e79389115b9d27287ff6230a9750675106ed7668, =4.5 | f88e12c95fc19f719e06ca1e9eb20fdad68ef61a, 2c3b2667dad69d56774b79db763acb3a1bee0fc0, 37fc3cc0f924fd8d0f0cf87b92672dec75a32e57, 65e344925fa30abf50c8de8c150b397715fa2066, 6da717ed8a0703a331295fdd5ad8b7eacec216ad, e79389115b9d27287ff6230a9750675106ed7668 |
| linux-kernel: Kernel | >=6.13.0 <6.18.40, >=6.19.0 <7.1.5, >=6.2.0 <6.6.145, >=6.7.0 <6.12.97, >=4.5.0 <6.1.191 | 6.18.40, 7.1.5, 6.6.145, 6.12.97, 6.1.191 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket