{"id":"CVE-2024-42138","aliases":["CVE-2024-42138"],"related":[],"kind":"vulnerability","state":"published","title":"mlxsw: core_linecards: Fix double memory deallocation in case of invalid INI file","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mlxsw: core_linecards: corrige la doble desasignación de memoria en caso de un archivo INI no válido En caso de un archivo INI no válido, mlxsw_linecard_types_init() desasigna la memoria pero no restablece el puntero a NULL y devuelve 0. En caso de que se produzca algún error después de la llamada a mlxsw_linecard_types_init(), mlxsw_linecards_init() llama a mlxsw_linecard_types_fini(), que realiza la desasignación de memoria nuevamente. Agregue el reinicio del puntero a NULL. Encontrado por el Centro de verificación de Linux (linuxtesting.org) con SVACE.","source":"nvd"}],"published":"2024-07-30T07:46:32.611Z","modified":"2026-06-17T07:48:54.737Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-415"],"affected":[{"ranges":[{"type":"git","introduced":"b217127e5e4ee0ecfce7c5f84cfe082238123bda","fixed":"ab557f5cd993a3201b09593633d04b891263d5c0","status":"affected"},{"type":"git","introduced":"b217127e5e4ee0ecfce7c5f84cfe082238123bda","fixed":"f8b55a465b0e8a500179808166fe9420f5c091a1","status":"affected"},{"type":"git","introduced":"b217127e5e4ee0ecfce7c5f84cfe082238123bda","fixed":"9af7437669b72f804fc4269f487528dbbed142a2","status":"affected"},{"type":"git","introduced":"b217127e5e4ee0ecfce7c5f84cfe082238123bda","fixed":"8ce34dccbe8fa7d2ef86f2d8e7db2a9b67cabfc3","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.19","status":"unaffected"},{"type":"semver","introduced":"6.1.98","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.39","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.9.9","lastAffected":"6.9.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.10","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.19","fixed":"6.1.98"},{"status":"affected","introduced":"6.2","fixed":"6.6.39"},{"status":"affected","introduced":"6.7","fixed":"6.9.9"},{"status":"affected","version":"6.10"},{"status":"affected","version":"6.10"},{"status":"affected","version":"6.10"},{"status":"affected","version":"6.10"},{"status":"affected","version":"6.10"},{"status":"affected","version":"6.10"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/ab557f5cd993a3201b09593633d04b891263d5c0","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f8b55a465b0e8a500179808166fe9420f5c091a1","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9af7437669b72f804fc4269f487528dbbed142a2","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8ce34dccbe8fa7d2ef86f2d8e7db2a9b67cabfc3","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:16:03.260Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-42138","url":"https://www.cve.org/CVERecord?id=CVE-2024-42138","licence":"CVE Terms of Use","modified":"2026-05-11T20:27:42.899Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-42138","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42138","licence":"Public domain","modified":"2026-06-17T07:48:54.737Z"}],"updatedAt":"2026-11-25T22:58:43.413Z","epss":{"score":0.00234,"percentile":0.15339,"date":"2026-12-01T12:00:22.000Z"}}