CVE-2024-50071
JSON

7.8high

pinctrl: nuvoton: fix a double free in ma35_pinctrl_dt_node_to_map_func()

Severity
7.8high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.30% (higher than 15% of CVEs)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: pinctrl: nuvoton: fix a double free in ma35_pinctrl_dt_node_to_map_func() 'new_map' is allocated using devm_* which takes care of freeing the allocated data on device removal, call to .dt_free_map = pinconf_generic_dt_free_map double frees the map as pinconf_generic_dt_free_map() calls pinctrl_utils_free_map(). Fix this by using kcalloc() instead of auto-managed devm_kcalloc().

Affected

Product or packageVersionsReported by
Linux Linuxfrom f805e356313bbcafef48808c14eb9ce7f4ff2560 before 6441d9c3d71b59c8fd27d4e381c7471a32ac1a68, from f805e356313bbcafef48808c14eb9ce7f4ff2560 before 3fd976afe9743110f20a23f93b7ff9693f2be4bf, 6.11
Not affected: before 6.11, from 6.11.5 up to 6.11.*, from 6.12 up to *
CVE List
linux linux_kernelfrom 6.11 before 6.11.5, 6.12NVD

All scores

CISA-ADP7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-415

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: pinctrl: nuvoton: fix a double free in ma35_pinctrl_dt_node_to_map_func() 'new_map' is allocated using devm_* which takes care of freeing the allocated data on device removal, call to .dt_free_map = pinconf_generic_dt_free_map double frees the map as pinconf_generic_dt_free_map() calls pinctrl_utils_free_map(). Fix this by using kcalloc() instead of auto-managed devm_kcalloc().

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: pinctrl: nuvoton: corrige una liberación doble en ma35_pinctrl_dt_node_to_map_func() 'new_map' se asigna utilizando devm_* que se encarga de liberar los datos asignados al quitar el dispositivo, llamar a .dt_free_map = pinconf_generic_dt_free_map libera el mapa dos veces mientras pinconf_generic_dt_free_map() llama a pinctrl_utils_free_map(). Corrija esto utilizando kcalloc() en lugar de devm_kcalloc() administrado automáticamente.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-50071 changed 2026-05-11CVE Terms of Use
NVDCVE-2024-50071 changed 2026-06-17Public domain