kcve.ai취약점 정보 · 내 자산 확인

CVE-2026-74519 pinctrl: devicetree: don't free uninitialized dev_name on error path

설명

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.

영향 받는 제품 제품 1개

  • Linux

    Linux

    해결 버전 있음

    영향 받는 버전

    • 4.4.244 이상 4.5 미만
    • 4.9.244 이상 4.10 미만
    • 4.14.161 이상 4.15 미만
    • 4.19.92 이상 4.20 미만
    • 5.4.7 이상 5.5 미만
    • 5.5

    해결 버전

    • 4.5 이상
    • 4.10 이상
    • 4.15 이상
    • 4.20 이상
    • 5.5 이상
    • 5.5 미만
    • 5.10.265 이상
    • 5.15.216 이상
    외 5개 구간 펼치기
    • 6.1.183 이상
    • 6.6.151 이상
    • 6.12.103 이상
    • 6.18.44 이상
    • 7.1.8 이상

참고 자료 8건

‹ 목록

점검 지원 범위 문의

도입 문의