{"id":"CVE-2024-42138","published":"2024-07-30T07:46:32Z","modified":"2026-05-11T20:27:42Z","title":"mlxsw: core_linecards: Fix double memory deallocation in case of invalid INI file","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmlxsw: core_linecards: Fix double memory deallocation in case of invalid INI file\n\nIn case of invalid INI file mlxsw_linecard_types_init() deallocates memory\nbut doesn't reset pointer to NULL and returns 0. In case of any error\noccurred after mlxsw_linecard_types_init() call, mlxsw_linecards_init()\ncalls mlxsw_linecard_types_fini() which performs memory deallocation again.\n\nAdd pointer reset to NULL.\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00326,"percentile":0.18128,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/ab557f5cd993a3201b09593633d04b891263d5c0","tags":[]},{"url":"https://git.kernel.org/stable/c/f8b55a465b0e8a500179808166fe9420f5c091a1","tags":[]},{"url":"https://git.kernel.org/stable/c/9af7437669b72f804fc4269f487528dbbed142a2","tags":[]},{"url":"https://git.kernel.org/stable/c/8ce34dccbe8fa7d2ef86f2d8e7db2a9b67cabfc3","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[]}],"priority":{"score":3.6,"factors":[{"name":"EPSS percentile","points":3.63}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= b217127e5e4ee0ecfce7c5f84cfe082238123bda, < ab557f5cd993a3201b09593633d04b891263d5c0",">= b217127e5e4ee0ecfce7c5f84cfe082238123bda, < f8b55a465b0e8a500179808166fe9420f5c091a1",">= b217127e5e4ee0ecfce7c5f84cfe082238123bda, < 9af7437669b72f804fc4269f487528dbbed142a2",">= b217127e5e4ee0ecfce7c5f84cfe082238123bda, < 8ce34dccbe8fa7d2ef86f2d8e7db2a9b67cabfc3"]},{"vendor":"Linux","product":"Linux","versions":["5.19"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T16:16:03.260282Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-39970","exploited":false,"provenance":"source"}}