Bug 2322315 (CVE-2024-50071) - CVE-2024-50071 kernel: pinctrl: nuvoton: fix a double free in ma35_pinctrl_dt_node_to_map_func()
Summary: CVE-2024-50071 kernel: pinctrl: nuvoton: fix a double free in ma35_pinctrl_dt...
Keywords:
Status: NEW
Alias: CVE-2024-50071
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2322354
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-29 01:01 UTC by OSIDB Bzimport
Modified: 2024-10-29 07:41 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-10-29 01:01:58 UTC
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().


Note You need to log in before you can comment on or make changes to this bug.