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

CVE-2026-23137 of: unittest: Fix memory leak in unittest_data_add()

설명

In the Linux kernel, the following vulnerability has been resolved: of: unittest: Fix memory leak in unittest_data_add() In unittest_data_add(), if of_resolve_phandles() fails, the allocated unittest_data is not freed, leading to a memory leak. Fix this by using scope-based cleanup helper __free(kfree) for automatic resource cleanup. This ensures unittest_data is automatically freed when it goes out of scope in error paths. For the success path, use retain_and_null_ptr() to transfer ownership of the memory to the device tree and prevent double freeing.

영향 받는 제품 제품 1개

  • Linux

    Linux

    해결 버전 있음

    영향 받는 버전

    • 3.18

    해결 버전

    • 3.18 미만
    • 6.1.191 이상
    • 6.6.160 이상
    • 6.12.110 이상
    • 6.18.6 이상

참고 자료 5건

‹ 목록

점검 지원 범위 문의

도입 문의