IB/mlx5: Fix transport-domain rollback and initialize lb mutex earlier
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 146d2f1af3245a10b13eef263687e54f4e253d1d · < e79389115b9d27287ff6230a9750675106ed7668| No fix yet |
| Linux Linux |
|
|
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().
From the CVE record · Linux
The Linux kernel’s IB/mlx5 transport-domain allocation can leak a transport domain if enabling loopback fails. The input does not describe how an attacker could trigger the failure or whether access or user interaction is required.
Engineers running Linux kernels with the IB/mlx5 component should check their exposure; affected versions are not specified.