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

CVE-2024-50156 drm/msm: Avoid NULL dereference in msm_disp_state_print_regs()

설명

In the Linux kernel, the following vulnerability has been resolved: drm/msm: Avoid NULL dereference in msm_disp_state_print_regs() If the allocation in msm_disp_state_dump_regs() failed then `block->state` can be NULL. The msm_disp_state_print_regs() function _does_ have code to try to handle it with: if (*reg) dump_addr = *reg; ...but since "dump_addr" is initialized to NULL the above is actually a noop. The code then goes on to dereference `dump_addr`. Make the function print "Registers not stored" when it sees a NULL to solve this. Since we're touching the code, fix msm_disp_state_print_regs() not to pointlessly take a double-pointer and properly mark the pointer as `const`. Patchwork: https://patchwork.freedesktop.org/patch/619657/

영향 받는 제품 제품 1개

  • Linux

    Linux

    해결 버전 있음

    영향 받는 버전

    • 5.14

    해결 버전

    • 5.14 미만
    • 5.15.170 이상
    • 6.1.115 이상
    • 6.6.59 이상
    • 6.11.6 이상

참고 자료 5건

‹ 목록

점검 지원 범위 문의

도입 문의