7.8high
mlxsw: core_linecards: Fix double memory deallocation in case of invalid INI file
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 0.23% (higher than 15% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: mlxsw: core_linecards: Fix double memory deallocation in case of invalid INI file In case of invalid INI file mlxsw_linecard_types_init() deallocates memory but doesn't reset pointer to NULL and returns 0. In case of any error occurred after mlxsw_linecard_types_init() call, mlxsw_linecards_init() calls mlxsw_linecard_types_fini() which performs memory deallocation again. Add pointer reset to NULL. Found by Linux Verification Center (linuxtesting.org) with SVACE.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from b217127e5e4ee0ecfce7c5f84cfe082238123bda before ab557f5cd993a3201b09593633d04b891263d5c0, from b217127e5e4ee0ecfce7c5f84cfe082238123bda before f8b55a465b0e8a500179808166fe9420f5c091a1, from b217127e5e4ee0ecfce7c5f84cfe082238123bda before 9af7437669b72f804fc4269f487528dbbed142a2, from b217127e5e4ee0ecfce7c5f84cfe082238123bda before 8ce34dccbe8fa7d2ef86f2d8e7db2a9b67cabfc3, 5.19 Not affected: before 5.19, from 6.1.98 up to 6.1.*, from 6.6.39 up to 6.6.*, from 6.9.9 up to 6.9.*, from 6.10 up to * | CVE List |
| linux linux_kernel | from 5.19 before 6.1.98, from 6.2 before 6.6.39, from 6.7 before 6.9.9, 6.10 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: mlxsw: core_linecards: Fix double memory deallocation in case of invalid INI file In case of invalid INI file mlxsw_linecard_types_init() deallocates memory but doesn't reset pointer to NULL and returns 0. In case of any error occurred after mlxsw_linecard_types_init() call, mlxsw_linecards_init() calls mlxsw_linecard_types_fini() which performs memory deallocation again. Add pointer reset to NULL. Found by Linux Verification Center (linuxtesting.org) with SVACE.
NVD (es)
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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-42138 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2024-42138 changed 2026-06-17 | Public domain |