{"id":"CVE-2026-74519","aliases":["CVE-2026-74519"],"related":[],"kind":"vulnerability","state":"published","title":"pinctrl: devicetree: don't free uninitialized dev_name on error path","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\npinctrl: devicetree: don't free uninitialized dev_name on error path\n\ndt_remember_or_free_map() duplicates dev_name for each map entry. If\nkstrdup_const() fails, dt_free_map() frees dev_name in all num_maps\nentries, including entries that have not been initialized.\n\nSome pinctrl drivers, including pinctrl-imx, allocate the map with\nkmalloc() and leave dev_name for the core to initialize. The untouched\nentries therefore contain uninitialized data which is passed to\nkfree_const().\n\nReproduced on qemu's mcimx6ul-evk (pinctrl-imx) with failslab injection\nwhile binding the pinctrl-consuming device, under KASAN:\n\n  BUG: KASAN: double-free in dt_free_map+0x34/0xa4\n  Free of addr c425a900 by task init/1\n   kfree from dt_free_map+0x34/0xa4\n   dt_free_map from dt_remember_or_free_map+0x184/0x198\n   dt_remember_or_free_map from pinctrl_dt_to_map+0x33c/0x4c8\n   pinctrl_dt_to_map from create_pinctrl+0x9c/0x5c0\n\nInitialize all dev_name fields to NULL before duplicating the device\nname, making the full-map cleanup safe after a partial failure.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\npinctrl: devicetree: don't free uninitialized dev_name on error path\n\ndt_remember_or_free_map() duplicates dev_name for each map entry. If\nkstrdup_const() fails, dt_free_map() frees dev_name in all num_maps\nentries, including entries that have not been initialized.\n\nSome pinctrl drivers, including pinctrl-imx, allocate the map with\nkmalloc() and leave dev_name for the core to initialize. The untouched\nentries therefore contain uninitialized data which is passed to\nkfree_const().\n\nReproduced on qemu's mcimx6ul-evk (pinctrl-imx) with failslab injection\nwhile binding the pinctrl-consuming device, under KASAN:\n\n  BUG: KASAN: double-free in dt_free_map+0x34/0xa4\n  Free of addr c425a900 by task init/1\n   kfree from dt_free_map+0x34/0xa4\n   dt_free_map from dt_remember_or_free_map+0x184/0x198\n   dt_remember_or_free_map from pinctrl_dt_to_map+0x33c/0x4c8\n   pinctrl_dt_to_map from create_pinctrl+0x9c/0x5c0\n\nInitialize all dev_name fields to NULL before duplicating the device\nname, making the full-map cleanup safe after a partial failure.","source":"cvelist"}],"published":"2026-08-15T12:27:38.101Z","modified":"2026-10-16T20:17:34.613Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"be4c60b563edee3712d392aaeb0943a768df7023","fixed":"e3cfb22bad363bebcfd55d909e12d499cb8c5490","status":"affected"},{"type":"git","introduced":"be4c60b563edee3712d392aaeb0943a768df7023","fixed":"1586423da2739a80871ef6240016fcb9c7339bfb","status":"affected"},{"type":"git","introduced":"be4c60b563edee3712d392aaeb0943a768df7023","fixed":"dec5f0a8080502908dec5e35597c7ae07d533a3b","status":"affected"},{"type":"git","introduced":"be4c60b563edee3712d392aaeb0943a768df7023","fixed":"929f6396baade89999ec8a1281232c101cbc727d","status":"affected"},{"type":"git","introduced":"be4c60b563edee3712d392aaeb0943a768df7023","fixed":"321fe3584a8298386938130d138191aa35040b75","status":"affected"},{"type":"git","introduced":"be4c60b563edee3712d392aaeb0943a768df7023","fixed":"ad0ad3c228b6f76fde10f32047e0ec5fbc109dc8","status":"affected"},{"type":"git","introduced":"be4c60b563edee3712d392aaeb0943a768df7023","fixed":"9d00a5ac7cd3d32ae61140f4b8a62f136de84e7d","status":"affected"},{"type":"git","introduced":"be4c60b563edee3712d392aaeb0943a768df7023","fixed":"015b5bcbcb622b32317642be91a7f79aa5413649","status":"affected"},{"type":"git","version":"03f69244302d7954f42f528ea2d45903ebbf59f3","status":"affected"},{"type":"git","version":"77440c3a37203e3f4667d06e37f76ef3968d2d8c","status":"affected"},{"type":"git","version":"679c4f27b8958b65bb51d1c3dfdbf3befe4a33a3","status":"affected"},{"type":"git","version":"f88ac1330779c5bfdd79f7d7f7d4d3343c782f92","status":"affected"},{"type":"git","version":"f739a699db7d5a5cf39ca3ce2c84e4fe4a8f4c5d","status":"affected"},{"type":"semver","introduced":"4.4.244","fixed":"4.5","status":"affected"},{"type":"semver","introduced":"4.9.244","fixed":"4.10","status":"affected"},{"type":"semver","introduced":"4.14.161","fixed":"4.15","status":"affected"},{"type":"semver","introduced":"4.19.92","fixed":"4.20","status":"affected"},{"type":"semver","introduced":"5.4.7","fixed":"5.5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.5","status":"unaffected"},{"type":"semver","introduced":"5.10.265","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.216","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.183","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.151","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.103","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.44","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.8","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","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/e3cfb22bad363bebcfd55d909e12d499cb8c5490","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1586423da2739a80871ef6240016fcb9c7339bfb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dec5f0a8080502908dec5e35597c7ae07d533a3b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/929f6396baade89999ec8a1281232c101cbc727d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/321fe3584a8298386938130d138191aa35040b75","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ad0ad3c228b6f76fde10f32047e0ec5fbc109dc8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9d00a5ac7cd3d32ae61140f4b8a62f136de84e7d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/015b5bcbcb622b32317642be91a7f79aa5413649","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T18:58:57.723Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74519","url":"https://www.cve.org/CVERecord?id=CVE-2026-74519","licence":"CVE Terms of Use","modified":"2026-10-16T19:05:52.543Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74519","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74519","licence":"Public domain","modified":"2026-10-16T20:17:34.613Z"}],"updatedAt":"2026-11-25T22:59:33.243Z","epss":{"score":0.00146,"percentile":0.04023,"date":"2026-12-01T12:00:22.000Z"}}