Linux
IB/mlx5: Fix transport-domain rollback and initialize lb mutex earlier
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 146d2f1af3245a10b13eef263687e54f4e253d1d, < 6da717ed8a0703a331295fdd5ad8b7eacec216ad
- >= 146d2f1af3245a10b13eef263687e54f4e253d1d, < 2c3b2667dad69d56774b79db763acb3a1bee0fc0
- >= 146d2f1af3245a10b13eef263687e54f4e253d1d, < 37fc3cc0f924fd8d0f0cf87b92672dec75a32e57
- >= 146d2f1af3245a10b13eef263687e54f4e253d1d, < 65e344925fa30abf50c8de8c150b397715fa2066
- >= 146d2f1af3245a10b13eef263687e54f4e253d1d, < f88e12c95fc19f719e06ca1e9eb20fdad68ef61a
- >= 146d2f1af3245a10b13eef263687e54f4e253d1d, < e79389115b9d27287ff6230a9750675106ed7668
Fixed in 6da717ed8a0703a331295fdd5ad8b7eacec216ad, 2c3b2667dad69d56774b79db763acb3a1bee0fc0, 37fc3cc0f924fd8d0f0cf87b92672dec75a32e57, 65e344925fa30abf50c8de8c150b397715fa2066, f88e12c95fc19f719e06ca1e9eb20fdad68ef61a, e79389115b9d27287ff6230a9750675106ed7668
- 4.5
Fixed in 0, 6.1.191, 6.6.145, 6.12.97, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to 6da717ed8a0703a331295fdd5ad8b7eacec216ad or 2c3b2667dad69d56774b79db763acb3a1bee0fc0 or 37fc3cc0f924fd8d0f0cf87b92672dec75a32e57 or 65e344925fa30abf50c8de8c150b397715fa2066 or f88e12c95fc19f719e06ca1e9eb20fdad68ef61a or e79389115b9d27287ff6230a9750675106ed7668 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.145 or 6.12.97 or 6.18.40 or 7.1.5 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.