Linux
drm/amd/display: Fix dangling pointer in CRTC reset function
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= e7b07ceef2a650e5ed8ca37997689e086c680daf, < 0c311d5fcfcd4e83c1aeeb4fccb04861be3357a9
- >= e7b07ceef2a650e5ed8ca37997689e086c680daf, < ef3293c87a79f734d506769ff86f99bf1bad522e
- >= e7b07ceef2a650e5ed8ca37997689e086c680daf, < 9de069b724f3614ed7dd55bfbb37c434db54e128
- >= e7b07ceef2a650e5ed8ca37997689e086c680daf, < 3a03827bb3cda1527aa923f18160c449f2b4cf2c
- >= e7b07ceef2a650e5ed8ca37997689e086c680daf, < 32bd68edbc6cbcfac0e4033b64f0bcadbf0efef5
- >= e7b07ceef2a650e5ed8ca37997689e086c680daf, < 0aeed866cb938943908c3ba46422128e49d2d080
Fixed in 0c311d5fcfcd4e83c1aeeb4fccb04861be3357a9, ef3293c87a79f734d506769ff86f99bf1bad522e, 9de069b724f3614ed7dd55bfbb37c434db54e128, 3a03827bb3cda1527aa923f18160c449f2b4cf2c, 32bd68edbc6cbcfac0e4033b64f0bcadbf0efef5, 0aeed866cb938943908c3ba46422128e49d2d080
- 4.15
Fixed in 0, 6.1.191, 6.6.160, 6.12.114, 6.18.57, 7.2.6, 7.3
Mitigation
Upgrade Linux to 0c311d5fcfcd4e83c1aeeb4fccb04861be3357a9 or ef3293c87a79f734d506769ff86f99bf1bad522e or 9de069b724f3614ed7dd55bfbb37c434db54e128 or 3a03827bb3cda1527aa923f18160c449f2b4cf2c or 32bd68edbc6cbcfac0e4033b64f0bcadbf0efef5 or 0aeed866cb938943908c3ba46422128e49d2d080 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.114 or 6.18.57 or 7.2.6 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.