Description
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]
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
e7b07ceef2a650e5ed8ca37997689e086c680daf to < 0c311d5fcfcd4e83c1aeeb4fccb04861be3357a9affectede7b07ceef2a650e5ed8ca37997689e086c680daf to < ef3293c87a79f734d506769ff86f99bf1bad522eaffectede7b07ceef2a650e5ed8ca37997689e086c680daf to < 9de069b724f3614ed7dd55bfbb37c434db54e128affectede7b07ceef2a650e5ed8ca37997689e086c680daf to < 3a03827bb3cda1527aa923f18160c449f2b4cf2caffectede7b07ceef2a650e5ed8ca37997689e086c680daf to < 32bd68edbc6cbcfac0e4033b64f0bcadbf0efef5affectede7b07ceef2a650e5ed8ca37997689e086c680daf to < 0aeed866cb938943908c3ba46422128e49d2d080affected
Linux Linux
Default version status: affected
4.15affected0 to < 4.15unaffected6.1.191 to ≤ 6.1.*unaffected6.6.160 to ≤ 6.6.*unaffected6.12.114 to ≤ 6.12.*unaffected6.18.57 to ≤ 6.18.*unaffected7.2.6 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/0c311d5fcfcd4e83c1aeeb4fccb04861be3357a9 ↗
- 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/0aeed866cb938943908c3ba46422128e49d2d080 ↗