drm/amd/display: Fix dangling pointer in CRTC reset function
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 0aeed866cb938943908c3ba46422128e49d2d080, Kernel 0c311d5fcfcd4e83c1aeeb4fccb04861be3357a9, Kernel 32bd68edbc6cbcfac0e4033b64f0bcadbf0efef5 and 3 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =4.15, >=e7b07ceef2a650e5ed8ca37997689e086c680daf <0aeed866cb938943908c3ba46422128e49d2d080, >=e7b07ceef2a650e5ed8ca37997689e086c680daf <0c311d5fcfcd4e83c1aeeb4fccb04861be3357a9, >=e7b07ceef2a650e5ed8ca37997689e086c680daf <32bd68edbc6cbcfac0e4033b64f0bcadbf0efef5, >=e7b07ceef2a650e5ed8ca37997689e086c680daf <3a03827bb3cda1527aa923f18160c449f2b4cf2c, >=e7b07ceef2a650e5ed8ca37997689e086c680daf <9de069b724f3614ed7dd55bfbb37c434db54e128, >=e7b07ceef2a650e5ed8ca37997689e086c680daf <ef3293c87a79f734d506769ff86f99bf1bad522e | 0aeed866cb938943908c3ba46422128e49d2d080, 0c311d5fcfcd4e83c1aeeb4fccb04861be3357a9, 32bd68edbc6cbcfac0e4033b64f0bcadbf0efef5, 3a03827bb3cda1527aa923f18160c449f2b4cf2c, 9de069b724f3614ed7dd55bfbb37c434db54e128, ef3293c87a79f734d506769ff86f99bf1bad522e |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket