CVE-2026-74519
JSON

7.8high

pinctrl: devicetree: don't free uninitialized dev_name on error path

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.15% (higher than 4% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: pinctrl: devicetree: don't free uninitialized dev_name on error path dt_remember_or_free_map() duplicates dev_name for each map entry. If kstrdup_const() fails, dt_free_map() frees dev_name in all num_maps entries, including entries that have not been initialized. Some pinctrl drivers, including pinctrl-imx, allocate the map with kmalloc() and leave dev_name for the core to initialize. The untouched entries therefore contain uninitialized data which is passed to kfree_const(). Reproduced on qemu's mcimx6ul-evk (pinctrl-imx) with failslab injection while binding the pinctrl-consuming device, under KASAN: BUG: KASAN: double-free in dt_free_map+0x34/0xa4 Free of addr c425a900 by task init/1 kfree from dt_free_map+0x34/0xa4 dt_free_map from dt_remember_or_free_map+0x184/0x198 dt_remember_or_free_map from pinctrl_dt_to_map+0x33c/0x4c8 pinctrl_dt_to_map from create_pinctrl+0x9c/0x5c0 Initialize all dev_name fields to NULL before duplicating the device name, making the full-map cleanup safe after a partial failure.

Affected

Product or packageVersionsReported by
Linux Linuxfrom be4c60b563edee3712d392aaeb0943a768df7023 before e3cfb22bad363bebcfd55d909e12d499cb8c5490, from be4c60b563edee3712d392aaeb0943a768df7023 before 1586423da2739a80871ef6240016fcb9c7339bfb, from be4c60b563edee3712d392aaeb0943a768df7023 before dec5f0a8080502908dec5e35597c7ae07d533a3b, from be4c60b563edee3712d392aaeb0943a768df7023 before 929f6396baade89999ec8a1281232c101cbc727d, from be4c60b563edee3712d392aaeb0943a768df7023 before 321fe3584a8298386938130d138191aa35040b75, from be4c60b563edee3712d392aaeb0943a768df7023 before ad0ad3c228b6f76fde10f32047e0ec5fbc109dc8, from be4c60b563edee3712d392aaeb0943a768df7023 before 9d00a5ac7cd3d32ae61140f4b8a62f136de84e7d, from be4c60b563edee3712d392aaeb0943a768df7023 before 015b5bcbcb622b32317642be91a7f79aa5413649 and 11 more
Not affected: before 5.5, from 5.10.265 up to 5.10.*, from 5.15.216 up to 5.15.*, from 6.1.183 up to 6.1.*, from 6.6.151 up to 6.6.*, from 6.12.103 up to 6.12.*
CVE List

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-74519 changed 2026-10-16CVE Terms of Use
NVDCVE-2026-74519 changed 2026-10-16Public domain