CVE-2024-50156 is a medium severity vulnerability in the Linux kernel's drm/msm driver where a NULL pointer dereference can occur in the msm_disp_state_print_regs() function. This happens if memory allocation fails in msm_disp_state_dump_regs(), leading to a NULL pointer dereference and potential kernel crash. The issue is fixed by modifying the function to handle NULL pointers gracefully and improving code correctness.