Description
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 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
5d945cbcd4b16a29d6470a80dfb19738f9a4319f to < cda8af27b787d79eadc4eb8109d9f2e856dadac2affected5d945cbcd4b16a29d6470a80dfb19738f9a4319f to < 0999a267bdc13648b6b0db893e7eabe30bc13e7caffected5d945cbcd4b16a29d6470a80dfb19738f9a4319f to < 3d8391d3149a1aeb93505a4f9fb9ed8364882c42affected5d945cbcd4b16a29d6470a80dfb19738f9a4319f to < 80c0f51aced43d6eaf72f95a2833b0a77cf7880daffected5d945cbcd4b16a29d6470a80dfb19738f9a4319f to < 98cad4bd1443975d972f4c7f705980da03722a22affected
Linux Linux
Default version status: affected
6.0affected0 to < 6.0unaffected6.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/cda8af27b787d79eadc4eb8109d9f2e856dadac2 ↗
- https://git.kernel.org/stable/c/0999a267bdc13648b6b0db893e7eabe30bc13e7c ↗
- https://git.kernel.org/stable/c/3d8391d3149a1aeb93505a4f9fb9ed8364882c42 ↗
- https://git.kernel.org/stable/c/80c0f51aced43d6eaf72f95a2833b0a77cf7880d ↗
- https://git.kernel.org/stable/c/98cad4bd1443975d972f4c7f705980da03722a22 ↗