Description (CNA)
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)
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 4cc2a94d96caeb3c975acdae7351c2f997c32175 before 29302964ef583f3a57efc3c990bc0a71337bd3a4; affected 8092aa3ab8f7b737a34b71f91492c676a843043a before 686baa1f4ec43b33e39e3d4b4a4539a91d17e883; affected 8092aa3ab8f7b737a34b71f91492c676a843043a before 197946faa1b7968046ba475ae2f266847c6f51ed; affected 8092aa3ab8f7b737a34b71f91492c676a843043a before 7283b78ca07ce491984a63f6288f3f8de5bdcb22; affected 8092aa3ab8f7b737a34b71f91492c676a843043a before 015e72cde567d2450e282c2790773463156b2d0a; affected ea000e4b4ee5363997715531cb3d024b4e5d561c; affected d0b8b23b9c2ebec693a36fea518d8f13493ad655; affected 83c7f509ef087041604e9572938f82e18b724c9d; affected 1686675405d07f35eae7ff3d13a530034b899df2; affected 6.6.46 before 6.6.160; affected 5.10.258 before 5.11; affected 5.15.165 before 5.16; affected 6.1.105 before 6.2; affected 6.10.5 before 6.11 |
| Linux / Linux | affected 6.11; unaffected 0 before 6.11; unaffected 6.6.160 through 6.6.*; unaffected 6.12.113 through 6.12.*; unaffected 6.18.56 through 6.18.*; unaffected 7.2.10 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/29302964ef583f3a57efc3c990bc0a71337bd3a4
- https://git.kernel.org/stable/c/686baa1f4ec43b33e39e3d4b4a4539a91d17e883
- https://git.kernel.org/stable/c/197946faa1b7968046ba475ae2f266847c6f51ed
- https://git.kernel.org/stable/c/7283b78ca07ce491984a63f6288f3f8de5bdcb22
- https://git.kernel.org/stable/c/015e72cde567d2450e282c2790773463156b2d0a