# CVE-2023-53195: mlxsw: minimal: fix potential memory leak in mlxsw_m_linecards_init

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-09-15T14:06:42.224Z
- Modified: 2026-06-17T06:44:28.927Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

In 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().

(As written by CVE List.)

## Affected

- Linux Linux: from 01328e23a476a47179b07125eabac439bc1d5fd3 before d4f5b1dd816dccd4ee6bb60b2a81a3d4373636a9; from 01328e23a476a47179b07125eabac439bc1d5fd3 before cd716022c968bc6748f23708b986f845b45791b7; from 01328e23a476a47179b07125eabac439bc1d5fd3 before 08fc75735fda3be97194bfbf3c899c87abb3d0fe; 6.1 (not affected: before 6.1; from 6.1.39 up to 6.1.*; from 6.4.4 up to 6.4.*; from 6.5 up to *)
- linux linux_kernel: from 6.1 before 6.1.39; from 6.2 before 6.4.4

## References

- <https://git.kernel.org/stable/c/d4f5b1dd816dccd4ee6bb60b2a81a3d4373636a9> (patch)
- <https://git.kernel.org/stable/c/cd716022c968bc6748f23708b986f845b45791b7> (patch)
- <https://git.kernel.org/stable/c/08fc75735fda3be97194bfbf3c899c87abb3d0fe> (patch)

## Sources

- CVE List: [CVE-2023-53195](https://www.cve.org/CVERecord?id=CVE-2023-53195), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-53195](https://nvd.nist.gov/vuln/detail/CVE-2023-53195), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-53195 · Whole record: https://cve.day/CVE-2023-53195.json · Rebuilt by cve.day 2026-11-25T22:58:34.768Z
