{"id":"CVE-2024-36940","summary":"pinctrl: core: delete incorrect free in pinctrl_enable()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\npinctrl: core: delete incorrect free in pinctrl_enable()\n\nThe \"pctldev\" struct is allocated in devm_pinctrl_register_and_init().\nIt's a devm_ managed pointer that is freed by devm_pinctrl_dev_release(),\nso freeing it in pinctrl_enable() will lead to a double free.\n\nThe devm_pinctrl_dev_release() function frees the pindescs and destroys\nthe mutex as well.","modified":"2026-04-16T04:35:23.011104072Z","published":"2024-05-30T15:29:28.101Z","related":["ALSA-2024:5102","SUSE-SU-2024:2008-1","SUSE-SU-2024:2019-1","SUSE-SU-2024:2135-1","SUSE-SU-2024:2190-1","SUSE-SU-2024:2203-1","SUSE-SU-2024:2360-1","SUSE-SU-2024:2362-1","SUSE-SU-2024:2365-1","SUSE-SU-2024:2372-1","SUSE-SU-2024:2381-1","SUSE-SU-2024:2384-1","SUSE-SU-2024:2385-1","SUSE-SU-2024:2394-1","SUSE-SU-2024:2495-1","SUSE-SU-2024:2561-1","SUSE-SU-2024:2802-1","SUSE-SU-2024:2896-1","SUSE-SU-2024:2939-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1","SUSE-SU-2025:20166-1","SUSE-SU-2025:20249-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36940.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/288bc4aa75f150d6f1ee82dd43c6da1b438b6068"},{"type":"WEB","url":"https://git.kernel.org/stable/c/41f88ef8ba387a12f4a2b8c400b6c9e8e54b2cca"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5038a66dad0199de60e5671603ea6623eb9e5c79"},{"type":"WEB","url":"https://git.kernel.org/stable/c/558c8039fdf596a584a92c171cbf3298919c448c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/735f4c6b6771eafe336404c157ca683ad72a040d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ac7d65795827dc0cf7662384ed27caf4066bd72e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cdaa171473d98962ae86f2a663d398fda2fbeefd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f9f1e321d53e4c5b666b66e5b43da29841fb55ba"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36940.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36940"},{"type":"PACKAGE","url":"https://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":"6118714275f0a313ecc296a87ed1af32d9691bed"},{"fixed":"735f4c6b6771eafe336404c157ca683ad72a040d"},{"fixed":"cdaa171473d98962ae86f2a663d398fda2fbeefd"},{"fixed":"288bc4aa75f150d6f1ee82dd43c6da1b438b6068"},{"fixed":"41f88ef8ba387a12f4a2b8c400b6c9e8e54b2cca"},{"fixed":"ac7d65795827dc0cf7662384ed27caf4066bd72e"},{"fixed":"558c8039fdf596a584a92c171cbf3298919c448c"},{"fixed":"f9f1e321d53e4c5b666b66e5b43da29841fb55ba"},{"fixed":"5038a66dad0199de60e5671603ea6623eb9e5c79"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36940.json"}}],"schema_version":"1.7.5"}