Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
CVE Vulnerability Details :
CVE-2024-42138
PUBLISHED
More InfoOfficial Page
Assigner-Linux
Assigner Org ID-416baaa9-dc9f-4396-8d5f-8c081fb06d67
View Known Exploited Vulnerability (KEV) details
Published At-30 Jul, 2024 | 07:46
Updated At-04 May, 2025 | 09:23
Rejected At-
▼CVE Numbering Authority (CNA)
mlxsw: core_linecards: Fix double memory deallocation in case of invalid INI file

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 Products
Vendor
Linux Kernel Organization, IncLinux
Product
Linux
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Program Files
  • drivers/net/ethernet/mellanox/mlxsw/core_linecards.c
Default Status
unaffected
Versions
Affected
  • From b217127e5e4ee0ecfce7c5f84cfe082238123bda before ab557f5cd993a3201b09593633d04b891263d5c0 (git)
  • From b217127e5e4ee0ecfce7c5f84cfe082238123bda before f8b55a465b0e8a500179808166fe9420f5c091a1 (git)
  • From b217127e5e4ee0ecfce7c5f84cfe082238123bda before 9af7437669b72f804fc4269f487528dbbed142a2 (git)
  • From b217127e5e4ee0ecfce7c5f84cfe082238123bda before 8ce34dccbe8fa7d2ef86f2d8e7db2a9b67cabfc3 (git)
Vendor
Linux Kernel Organization, IncLinux
Product
Linux
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Program Files
  • drivers/net/ethernet/mellanox/mlxsw/core_linecards.c
Default Status
affected
Versions
Affected
  • 5.19
Unaffected
  • From 0 before 5.19 (semver)
  • From 6.1.98 through 6.1.* (semver)
  • From 6.6.39 through 6.6.* (semver)
  • From 6.9.9 through 6.9.* (semver)
  • From 6.10 through * (original_commit_for_fix)
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://git.kernel.org/stable/c/ab557f5cd993a3201b09593633d04b891263d5c0
N/A
https://git.kernel.org/stable/c/f8b55a465b0e8a500179808166fe9420f5c091a1
N/A
https://git.kernel.org/stable/c/9af7437669b72f804fc4269f487528dbbed142a2
N/A
https://git.kernel.org/stable/c/8ce34dccbe8fa7d2ef86f2d8e7db2a9b67cabfc3
N/A
▼Authorized Data Publishers (ADP)
1. CVE Program Container
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://git.kernel.org/stable/c/ab557f5cd993a3201b09593633d04b891263d5c0
x_transferred
https://git.kernel.org/stable/c/f8b55a465b0e8a500179808166fe9420f5c091a1
x_transferred
https://git.kernel.org/stable/c/9af7437669b72f804fc4269f487528dbbed142a2
x_transferred
https://git.kernel.org/stable/c/8ce34dccbe8fa7d2ef86f2d8e7db2a9b67cabfc3
x_transferred
2. CISA ADP Vulnrichment
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
Details not found