mlxsw: minimal: fix potential memory leak in mlxsw_m_linecards_init
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.1.396.4.46.5In the Linux kernel, the following vulnerability has been resolved:
mlxsw: minimal: fix potential memory leak in mlxsw_m_linecards_init
The line cards array is not freed in the error path of mlxsw_m_linecards_init(), which can lead to a memory leak. Fix by freeing the array in the error path, thereby making the error path identical to mlxsw_m_linecards_fini().
From the CVE record · Linux
The Linux kernel's mlxsw minimal driver does not free the line cards array when mlxsw_m_linecards_init() takes an error path, potentially leaking memory. The input does not describe how an attacker could trigger the error or specify access or interaction requirements.
Engineers running Linux kernels with the mlxsw minimal driver should check their versions; affected versions are not specified.