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]
https://git.kernel.org/stable/c/ef3293c87a79f734d506769ff86f99bf1bad522e
https://git.kernel.org/stable/c/9de069b724f3614ed7dd55bfbb37c434db54e128
https://git.kernel.org/stable/c/3a03827bb3cda1527aa923f18160c449f2b4cf2c
https://git.kernel.org/stable/c/32bd68edbc6cbcfac0e4033b64f0bcadbf0efef5
https://git.kernel.org/stable/c/0c311d5fcfcd4e83c1aeeb4fccb04861be3357a9
https://git.kernel.org/stable/c/0aeed866cb938943908c3ba46422128e49d2d080