In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: check dc_state_create_copy() for NULL in dm_suspend dc_state_create_copy() can return NULL on allocation failure. dm_suspend() only conditionally skips dm_gpureset_toggle_interrupts() and continues execution, returning success. dm_resume() then dereferences the NULL cached_dc_state in link_enc_cfg_copy() and the following dc_state->stream_count loop, crashing during GPU reset recovery. Return -ENOMEM immediately if the copy fails, so the caller aborts suspend instead of leaving a NULL cached state for resume. (cherry picked from commit 84b6d7932fdd2857795a257f9f258562a3cddcab)
https://git.kernel.org/stable/c/7283b78ca07ce491984a63f6288f3f8de5bdcb22
https://git.kernel.org/stable/c/686baa1f4ec43b33e39e3d4b4a4539a91d17e883
https://git.kernel.org/stable/c/197946faa1b7968046ba475ae2f266847c6f51ed
https://git.kernel.org/stable/c/015e72cde567d2450e282c2790773463156b2d0a