Linux
drm/amd/display: Fix dangling pointer in plane reset function
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Fix dangling pointer in plane reset function amdgpu_dm_plane_drm_plane_reset() 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
- >= 5d945cbcd4b16a29d6470a80dfb19738f9a4319f, < 154883749cae674fb38e83c1b3a096ce71122229
- >= 5d945cbcd4b16a29d6470a80dfb19738f9a4319f, < cda8af27b787d79eadc4eb8109d9f2e856dadac2
- >= 5d945cbcd4b16a29d6470a80dfb19738f9a4319f, < 0999a267bdc13648b6b0db893e7eabe30bc13e7c
- >= 5d945cbcd4b16a29d6470a80dfb19738f9a4319f, < 3d8391d3149a1aeb93505a4f9fb9ed8364882c42
- >= 5d945cbcd4b16a29d6470a80dfb19738f9a4319f, < 80c0f51aced43d6eaf72f95a2833b0a77cf7880d
- >= 5d945cbcd4b16a29d6470a80dfb19738f9a4319f, < 98cad4bd1443975d972f4c7f705980da03722a22
Fixed in 154883749cae674fb38e83c1b3a096ce71122229, cda8af27b787d79eadc4eb8109d9f2e856dadac2, 0999a267bdc13648b6b0db893e7eabe30bc13e7c, 3d8391d3149a1aeb93505a4f9fb9ed8364882c42, 80c0f51aced43d6eaf72f95a2833b0a77cf7880d, 98cad4bd1443975d972f4c7f705980da03722a22
- 6.0
Fixed in 0, 6.1.191, 6.6.160, 6.12.114, 6.18.57, 7.2.6, 7.3
Mitigation
Upgrade Linux to 154883749cae674fb38e83c1b3a096ce71122229 or cda8af27b787d79eadc4eb8109d9f2e856dadac2 or 0999a267bdc13648b6b0db893e7eabe30bc13e7c or 3d8391d3149a1aeb93505a4f9fb9ed8364882c42 or 80c0f51aced43d6eaf72f95a2833b0a77cf7880d or 98cad4bd1443975d972f4c7f705980da03722a22 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.