CVE-2024-42138mlxsw: core_linecards: Fix double memory deallocation in case of invalid INI file
- 7.8HighCVSS base score
- 0.23%Exploitation in 30 daysEPSS · top 86% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By Linux
- 1 day later
· 1 day later
Published
- 22 months later
· 22 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.23% · top 86% of all CVEs (13 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.8.
Affected products
- affected b217127e5e4ee0ecfce7c5f84cfe082238123bda – < ab557f5cd993a3201b09593633d04b891263d5c0
- affected b217127e5e4ee0ecfce7c5f84cfe082238123bda – < f8b55a465b0e8a500179808166fe9420f5c091a1
- affected b217127e5e4ee0ecfce7c5f84cfe082238123bda – < 9af7437669b72f804fc4269f487528dbbed142a2
- affected b217127e5e4ee0ecfce7c5f84cfe082238123bda – < 8ce34dccbe8fa7d2ef86f2d8e7db2a9b67cabfc3
- affected 5.19
- unaffected < 5.19
- unaffected 6.1.98 – ≤ 6.1.*
- unaffected 6.6.39 – ≤ 6.6.*
- unaffected 6.9.9 – ≤ 6.9.*
- unaffected 6.10 – ≤ *
References
References5
- https://git.kernel.org/stable/c/ab557f5cd993a3201b09593633d04b891263d5c0 (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/f8b55a465b0e8a500179808166fe9420f5c091a1 (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/9af7437669b72f804fc4269f487528dbbed142a2 (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/8ce34dccbe8fa7d2ef86f2d8e7db2a9b67cabfc3 (opens in a new tab)x_transferred
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-39970 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-42138)Record last updated .