PT-2024-10030

CVE-2024-50071

·

Published

2024-10-11

·

Updated

2025-02-28

Description by

CVSS 3.1
7.8
High
MetricsAV: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 free vulnerability in the ma35 pinctrl dt node to map func() function within the drivers/pinctrl/nuvoton/pinctrl-ma35.c module of the Linux kernel. This vulnerability can be exploited to impact the confidentiality, integrity, and availability of protected information. The problem arises because new map is allocated using devm *, which automatically frees the allocated data on device removal. However, a call to dt free map = pinconf generic dt free map results in a double free, as pinconf generic dt free map() calls pinctrl utils free map().
Recommendations To resolve the issue, use kcalloc() instead of auto-managed devm kcalloc() for allocating new map. This change prevents the double free vulnerability by ensuring that the memory is not automatically freed by devm * when the device is removed, thus avoiding the conflict with the manual free operation performed by pinconf generic dt free map().
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Weakness enumeration
Related identifiers
OPENSUSE-SU-2024:14500-1
OPENSUSE-SU-2025:14705-1
USN-7276-1
USN-7277-1
USN-7310-1
Found an issue in the description? Have something to add? Feel free to write us 👾