{"id":"CVE-2023-53195","state":"PUBLISHED","title":"mlxsw: minimal: fix potential memory leak in mlxsw_m_linecards_init","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmlxsw: minimal: fix potential memory leak in mlxsw_m_linecards_init\n\nThe line cards array is not freed in the error path of\nmlxsw_m_linecards_init(), which can lead to a memory leak. Fix by\nfreeing the array in the error path, thereby making the error path\nidentical to mlxsw_m_linecards_fini().","publishedAt":"2025-09-15T14:06:42.224Z","updatedAt":"2026-05-11T19:40:06.831Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"01328e23a476a47179b07125eabac439bc1d5fd3","status":"affected","lessThan":"d4f5b1dd816dccd4ee6bb60b2a81a3d4373636a9","versionType":"git"},{"version":"01328e23a476a47179b07125eabac439bc1d5fd3","status":"affected","lessThan":"cd716022c968bc6748f23708b986f845b45791b7","versionType":"git"},{"version":"01328e23a476a47179b07125eabac439bc1d5fd3","status":"affected","lessThan":"08fc75735fda3be97194bfbf3c899c87abb3d0fe","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlxsw/minimal.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.1","versionType":"semver"},{"version":"6.1.39","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.4.4","status":"unaffected","lessThanOrEqual":"6.4.*","versionType":"semver"},{"version":"6.5","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlxsw/minimal.c"]}],"references":["https://git.kernel.org/stable/c/d4f5b1dd816dccd4ee6bb60b2a81a3d4373636a9","https://git.kernel.org/stable/c/cd716022c968bc6748f23708b986f845b45791b7","https://git.kernel.org/stable/c/08fc75735fda3be97194bfbf3c899c87abb3d0fe"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/53xxx/CVE-2023-53195.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-53195","state":"PUBLISHED","datePublished":"2025-09-15T14:06:42.224Z","dateUpdated":"2026-05-11T19:40:06.831Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-09-15T13:59:19.067Z"},"containers":{"cna":{"title":"mlxsw: minimal: fix potential memory leak in mlxsw_m_linecards_init","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmlxsw: minimal: fix potential memory leak in mlxsw_m_linecards_init\n\nThe line cards array is not freed in the error path of\nmlxsw_m_linecards_init(), which can lead to a memory leak. Fix by\nfreeing the array in the error path, thereby making the error path\nidentical to mlxsw_m_linecards_fini()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"01328e23a476a47179b07125eabac439bc1d5fd3","status":"affected","lessThan":"d4f5b1dd816dccd4ee6bb60b2a81a3d4373636a9","versionType":"git"},{"version":"01328e23a476a47179b07125eabac439bc1d5fd3","status":"affected","lessThan":"cd716022c968bc6748f23708b986f845b45791b7","versionType":"git"},{"version":"01328e23a476a47179b07125eabac439bc1d5fd3","status":"affected","lessThan":"08fc75735fda3be97194bfbf3c899c87abb3d0fe","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlxsw/minimal.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.1","versionType":"semver"},{"version":"6.1.39","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.4.4","status":"unaffected","lessThanOrEqual":"6.4.*","versionType":"semver"},{"version":"6.5","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlxsw/minimal.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/d4f5b1dd816dccd4ee6bb60b2a81a3d4373636a9"},{"url":"https://git.kernel.org/stable/c/cd716022c968bc6748f23708b986f845b45791b7"},{"url":"https://git.kernel.org/stable/c/08fc75735fda3be97194bfbf3c899c87abb3d0fe"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:40:06.831Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1","versionEndExcluding":"6.1.39"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1","versionEndExcluding":"6.4.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1","versionEndExcluding":"6.5"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}