CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's AMD display driver, specifically in the amdgpu_dm_crtc_reset_state() function, where a dangling pointer can occur due to improper memory management during state reset operations. If memory allocation fails, the function can return a pointer to already freed memory, potentially leading to undefined behavior or system crashes. Organizations using affected Linux distributions with AMD graphics hardware should prioritize addressing this vulnerability to maintain system stability and security.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Fix dangling pointer in CRTC reset function amdgpu_dm_crtc_reset_state() frees the old state before allocating a new one. If kzalloc() fails, the function returns without updating the state pointer, leaving a dangling pointer to already freed memory. Fix this by allocating the new state first. On allocation failure, the old state remains untouched and the function safely returns. Found by Linux Verification Center (linuxtesting.org) with SVACE. [adjust for movement around current amd-staging-drm-next]