PT-2024-10030 · Linux+2 · Linux Kernel+2

Christophe Jaillet

·

Published

2024-10-11

·

Updated

2025-02-28

·

CVE-2024-50071

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 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().

Exploit

Fix

Double Free

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

Weakness Enumeration

Related Identifiers

BDU:2025-00166
CVE-2024-50071
OPENSUSE-SU-2024:14500-1
OPENSUSE-SU-2025:14705-1
USN-7276-1
USN-7277-1
USN-7310-1

Affected Products

Linuxmint
Linux Kernel
Ubuntu