CVE-2024-50071

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-50071
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50071.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-50071
Downstream
Related
Published
2024-10-29T00:50:12Z
Modified
2025-10-22T04:22:57.400938Z
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().

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
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f805e356313bbcafef48808c14eb9ce7f4ff2560
Fixed
3fd976afe9743110f20a23f93b7ff9693f2be4bf

Affected versions

v6.*

v6.10
v6.10-rc2
v6.10-rc3
v6.10-rc4
v6.10-rc5
v6.10-rc6
v6.10-rc7
v6.11
v6.11-rc1
v6.11-rc2
v6.11-rc3
v6.11-rc4
v6.11-rc5
v6.11-rc6
v6.11-rc7
v6.11.1
v6.11.2
v6.11.3
v6.11.4
v6.12-rc1

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.11.0
Fixed
6.11.5