CVE-2024-42138
Marvell mlxsw Double Free Vulnerability
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.
INFO
Published Date :
July 30, 2024, 8:15 a.m.
Last Modified :
Dec. 11, 2024, 3:11 p.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
No
Impact Score :
5.9
Exploitability Score :
1.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-42138
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-42138
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-42138
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Dec. 11, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Added CWE NIST CWE-415 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.19 up to (excluding) 6.1.98 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.39 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.9.9 *cpe:2.3:o:linux:linux_kernel:6.10:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.10:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.10:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.10:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.10:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.10:rc6:*:*:*:*:*:* Changed Reference Type https://git.kernel.org/stable/c/8ce34dccbe8fa7d2ef86f2d8e7db2a9b67cabfc3 No Types Assigned https://git.kernel.org/stable/c/8ce34dccbe8fa7d2ef86f2d8e7db2a9b67cabfc3 Patch Changed Reference Type https://git.kernel.org/stable/c/8ce34dccbe8fa7d2ef86f2d8e7db2a9b67cabfc3 No Types Assigned https://git.kernel.org/stable/c/8ce34dccbe8fa7d2ef86f2d8e7db2a9b67cabfc3 Patch Changed Reference Type https://git.kernel.org/stable/c/9af7437669b72f804fc4269f487528dbbed142a2 No Types Assigned https://git.kernel.org/stable/c/9af7437669b72f804fc4269f487528dbbed142a2 Patch Changed Reference Type https://git.kernel.org/stable/c/9af7437669b72f804fc4269f487528dbbed142a2 No Types Assigned https://git.kernel.org/stable/c/9af7437669b72f804fc4269f487528dbbed142a2 Patch Changed Reference Type https://git.kernel.org/stable/c/ab557f5cd993a3201b09593633d04b891263d5c0 No Types Assigned https://git.kernel.org/stable/c/ab557f5cd993a3201b09593633d04b891263d5c0 Patch Changed Reference Type https://git.kernel.org/stable/c/ab557f5cd993a3201b09593633d04b891263d5c0 No Types Assigned https://git.kernel.org/stable/c/ab557f5cd993a3201b09593633d04b891263d5c0 Patch Changed Reference Type https://git.kernel.org/stable/c/f8b55a465b0e8a500179808166fe9420f5c091a1 No Types Assigned https://git.kernel.org/stable/c/f8b55a465b0e8a500179808166fe9420f5c091a1 Patch Changed Reference Type https://git.kernel.org/stable/c/f8b55a465b0e8a500179808166fe9420f5c091a1 No Types Assigned https://git.kernel.org/stable/c/f8b55a465b0e8a500179808166fe9420f5c091a1 Patch -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/8ce34dccbe8fa7d2ef86f2d8e7db2a9b67cabfc3 Added Reference https://git.kernel.org/stable/c/9af7437669b72f804fc4269f487528dbbed142a2 Added Reference https://git.kernel.org/stable/c/ab557f5cd993a3201b09593633d04b891263d5c0 Added Reference https://git.kernel.org/stable/c/f8b55a465b0e8a500179808166fe9420f5c091a1 -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jul. 30, 2024
Action Type Old Value New Value Added 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. Added Reference kernel.org https://git.kernel.org/stable/c/ab557f5cd993a3201b09593633d04b891263d5c0 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/f8b55a465b0e8a500179808166fe9420f5c091a1 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/9af7437669b72f804fc4269f487528dbbed142a2 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/8ce34dccbe8fa7d2ef86f2d8e7db2a9b67cabfc3 [No types assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-42138
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-42138
weaknesses.