7.8

CVE-2024-42138: mlxsw: core_linecards: Fix double memory deallocation in case of invalid INI file

Modified
AliasesUBUNTU-CVE-2024-42138DEBIAN-CVE-2024-42138
Published 30-07-2024Last modified 11-05-2026

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.

Priority
Routine

Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (NVD)
EPSS score
0.23%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 18 · Related 15

Timeline

  1. 30-07-2024
    PublishedVulnerability first disclosed.
  2. 11-05-2026
    Last 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

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

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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

References

19 links
Show all 19 references