# CVE-2024-50071: pinctrl: nuvoton: fix a double free in ma35_pinctrl_dt_node_to_map_func()

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 15% of CVEs (2026-11-30)
- Published: 2024-10-29T00:50:12.470Z
- Modified: 2026-06-17T08:03:30.597Z
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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().

(As written by CVE List.)

## Affected

- Linux Linux: from 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 *)
- linux linux_kernel: from 6.11 before 6.11.5; 6.12

## Every score

- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/6441d9c3d71b59c8fd27d4e381c7471a32ac1a68> (patch)
- <https://git.kernel.org/stable/c/3fd976afe9743110f20a23f93b7ff9693f2be4bf> (patch)

## Sources

- CVE List: [CVE-2024-50071](https://www.cve.org/CVERecord?id=CVE-2024-50071), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-50071](https://nvd.nist.gov/vuln/detail/CVE-2024-50071), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-50071 · Whole record: https://cve.day/CVE-2024-50071.json · Rebuilt by cve.day 2026-11-25T22:58:47.441Z
