CVE-2024-42138: mlxsw: core_linecards: Fix double memory deallocation in case of invalid INI file
Vulnerability summary
CVE-2024-42138 is a high (CVSS 7.8) Double Free vulnerability in linux. EPSS estimates a 0.23% chance of exploitation in the next 30 days, higher than 14.3% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 18 · Related 15Timeline
- 30-07-2024PublishedVulnerability first disclosed.
- 11-05-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.23%
Chance of exploitation in the next 30 days
Percentile
14%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.23% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu93 products
- linux< 6.8.0-48.48
- linux-allwinner-5.19All versions (No fix recorded)
- linux-aws< 6.8.0-1018.20
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ b217127e5e4ee0ecfce7c5f84cfe082238123bda, < ab557f5cd993a3201b09593633d04b891263d5c0 | ≥ b217127e5e4ee0ecfce7c5f84cfe082238123bda, < f8b55a465b0e8a500179808166fe9420f5c091a1 | ≥ b217127e5e4ee0ecfce7c5f84cfe082238123bda, < 9af7437669b72f804fc4269f487528dbbed142a2 | ≥ b217127e5e4ee0ecfce7c5f84cfe082238123bda, < 8ce34dccbe8fa7d2ef86f2d8e7db2a9b67cabfc3 | 5.19
- linux_kernel≥ 5.19, < 6.1.98 | ≥ 6.2, < 6.6.39 | ≥ 6.7, < 6.9.9 | 6.10:rc1 | 6.10:rc2 | 6.10:rc3 | 6.10:rc4 | 6.10:rc5 | 6.10:rc6
Debian1 product
- linux< 6.1.98-1 | < 6.9.9-1
3 vendors · 96 products