2084AI Security Observatory

CVE

CVE-2024-42138

CVE-2024-42138HIGH 7.8EPSS 14%

CNA 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 versions

All Linux kernel vulnerabilities →

  • 6.10-rc6This version only
  • 6.10-rc5This version only
  • 6.10-rc4This version only
  • 6.10-rc3This version only
  • 6.10-rc2This version only
  • 6.10-rc1This version only
  • ≥ 6.7, < 6.9.9Fixed in 6.9.9
  • ≥ 6.2, < 6.6.39Fixed in 6.6.39
  • ≥ 5.19, < 6.1.98Fixed in 6.1.98

Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.

Advisories and patches

Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.