In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu/vkms: fix a possible null pointer dereference
In amdgpuvkmsconngetmodes(), the return value of drmcvtmode() is assigned to mode, which will lead to a NULL pointer dereference on failure of drmcvtmode(). Add a check to avoid null pointer dereference.