drm/amd/display: Fix dangling pointer in plane reset function
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.6.160, 6.12.114, 6.18.57, 7.2.6
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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]
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 5d945cbcd4b16a29d6470a80dfb19738f9a4319f · fixed in cda8af27b787d79eadc4eb8109d9f2e856dadac2; From 5d945cbcd4b16a29d6470a80dfb19738f9a4319f · fixed in 0999a267bdc13648b6b0db893e7eabe30bc13e7c; From 5d945cbcd4b16a29d6470a80dfb19738f9a4319f · fixed in 3d8391d3149a1aeb93505a4f9fb9ed8364882c42; From 5d945cbcd4b16a29d6470a80dfb19738f9a4319f · fixed in 80c0f51aced43d6eaf72f95a2833b0a77cf7880d; From 5d945cbcd4b16a29d6470a80dfb19738f9a4319f · fixed in 98cad4bd1443975d972f4c7f705980da03722a22
- Linux Linux
6.0
- KernelLinux
From 6.0.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.114; From 6.13.0 · fixed in 6.18.57; From 6.19.0 · fixed in 7.2.6