{"id":"CVE-2026-90340","aliases":["CVE-2026-90340"],"related":[],"kind":"vulnerability","state":"published","title":"pinctrl: generic: free maps on pinctrl_generic_to_map() failure","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\npinctrl: generic: free maps on pinctrl_generic_to_map() failure\n\npinctrl_generic_to_map() parses DT configuration and allocates pinctrl\nmaps via pinctrl_utils_reserve_map().\n\nIf subsequent steps (such as pinctrl_utils_add_map_mux(),\npinctrl_generic_add_group(), pinconf_generic_parse_dt_config(), or\npinctrl_utils_add_map_configs()) return an error, *maps may contain\npartially allocated map entries. Returning the error directly without\nfreeing *maps leaks the allocated mapping memory across all drivers\nthat rely on pinctrl_generic_to_map().\n\nFix this by calling pinctrl_utils_free_map() and resetting *maps,\n*num_maps, and *num_reserved_maps in the error path of\npinctrl_generic_to_map().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\npinctrl: generic: free maps on pinctrl_generic_to_map() failure\n\npinctrl_generic_to_map() parses DT configuration and allocates pinctrl\nmaps via pinctrl_utils_reserve_map().\n\nIf subsequent steps (such as pinctrl_utils_add_map_mux(),\npinctrl_generic_add_group(), pinconf_generic_parse_dt_config(), or\npinctrl_utils_add_map_configs()) return an error, *maps may contain\npartially allocated map entries. Returning the error directly without\nfreeing *maps leaks the allocated mapping memory across all drivers\nthat rely on pinctrl_generic_to_map().\n\nFix this by calling pinctrl_utils_free_map() and resetting *maps,\n*num_maps, and *num_reserved_maps in the error path of\npinctrl_generic_to_map().","source":"cvelist"}],"published":"2026-09-17T16:08:51.635Z","modified":"2026-10-19T09:19:28.033Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"aaaf31be04260316036f50a05b7d015c0d36b55a","fixed":"09f47abc95ee9e819e7e93cd68c1c23abe11c842","status":"affected"},{"type":"git","introduced":"aaaf31be04260316036f50a05b7d015c0d36b55a","fixed":"17007cd700601777d9ee203a13d97e64ece3a10f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.2","status":"unaffected"},{"type":"semver","introduced":"7.2.6","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/09f47abc95ee9e819e7e93cd68c1c23abe11c842","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/17007cd700601777d9ee203a13d97e64ece3a10f","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-90340","url":"https://www.cve.org/CVERecord?id=CVE-2026-90340","licence":"CVE Terms of Use","modified":"2026-10-19T09:01:57.296Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-90340","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90340","licence":"Public domain","modified":"2026-10-19T09:19:28.033Z"}],"updatedAt":"2026-11-25T22:59:39.387Z","epss":{"score":0.00189,"percentile":0.08995,"date":"2026-12-01T12:00:22.000Z"}}