drm/amd/display: check dc_state_create_copy() for NULL in dm_suspend
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.15.224, 6.1.191, 6.6.160, 5.11, 6.11, and 3 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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)
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 5.15.165 · fixed in 5.15.224; From 6.1.105 · fixed in 6.1.191; From 6.6.46 · fixed in 6.6.160; From 5.10.258 · fixed in 5.11; From 6.10.5 · fixed in 6.11
- Linux Linux
6.11
- KernelLinux
fixed in 6.6.160; From 6.7.0 · fixed in 6.12.113; From 6.11.0 · fixed in 6.18.56; From 6.13.0 · fixed in 7.2.10
References 7
git.kernel.org
- stable/c/ed65678bb23a5f5040932960851ac39bdeafb765
- stable/c/0b24f9d4e6e8ab64da8f2ae85bd1790d0f6a596f
- stable/c/29302964ef583f3a57efc3c990bc0a71337bd3a4
- stable/c/686baa1f4ec43b33e39e3d4b4a4539a91d17e883
- stable/c/197946faa1b7968046ba475ae2f266847c6f51ed
- stable/c/7283b78ca07ce491984a63f6288f3f8de5bdcb22
- stable/c/015e72cde567d2450e282c2790773463156b2d0a