CVE-2024-50071

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-50071
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-50071.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-50071
Downstream
Related
Published
2024-10-29T00:50:12.470Z
Modified
2025-11-28T02:35:02.482700Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
pinctrl: nuvoton: fix a double free in ma35_pinctrl_dt_node_to_map_func()
Details

In the Linux kernel, the following vulnerability has been resolved:

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

'newmap' 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 pinconfgenericdtfreemap() calls pinctrlutilsfree_map().

Fix this by using kcalloc() instead of auto-managed devm_kcalloc().

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50071.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f805e356313bbcafef48808c14eb9ce7f4ff2560
Fixed
6441d9c3d71b59c8fd27d4e381c7471a32ac1a68
Fixed
3fd976afe9743110f20a23f93b7ff9693f2be4bf

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.11.0
Fixed
6.11.5