PT-2024-10466 · Linux+5 · Linux Kernel+5

Published

2024-07-30

·

Updated

2025-02-03

·

CVE-2024-42138

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description The issue is related to a double memory deallocation in the Linux kernel's mlxsw component when an invalid INI file is encountered. Specifically, the mlxsw linecard types init() function deallocates memory but does not reset the pointer to NULL, returning 0. If an error occurs after this function call, mlxsw linecards init() calls mlxsw linecard types fini(), which performs memory deallocation again, leading to a potential issue. The problem is resolved by adding a pointer reset to NULL. This issue was found by the Linux Verification Center with SVACE.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

NULL Pointer Dereference

Double Free

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2025-01006
CVE-2024-42138
DLA-4008-1
MGASA-2024-0277
MGASA-2024-0278
OESA-2024-2076
SUSE-SU-2024:3194-1
SUSE-SU-2024:3195-1
SUSE-SU-2024:3383-1
SUSE-SU-2025:20044-1
SUSE-SU-2025:20047-1
USN-7089-1
USN-7089-2
USN-7089-3
USN-7089-4
USN-7089-5
USN-7089-6
USN-7089-7
USN-7090-1
USN-7095-1
USN-7156-1

Affected Products

Astra Linux
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu