Bug 2301503 (CVE-2024-42138) - CVE-2024-42138 kernel: mlxsw: core_linecards: Fix double memory deallocation in case of invalid INI file
Summary: CVE-2024-42138 kernel: mlxsw: core_linecards: Fix double memory deallocation ...
Keywords:
Status: NEW
Alias: CVE-2024-42138
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2301996
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-30 08:37 UTC by OSIDB Bzimport
Modified: 2024-09-05 16:54 UTC (History)
4 users (show)

Fixed In Version: kernel 6.1.98, kernel 6.6.39, kernel 6.9.9, kernel 6.10
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-07-30 08:37:08 UTC
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.

Comment 1 Mauro Matteo Cascella 2024-07-31 10:17:50 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024073029-CVE-2024-42138-afe8@gregkh/T

Comment 2 Mauro Matteo Cascella 2024-07-31 10:18:12 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2301996]


Note You need to log in before you can comment on or make changes to this bug.