drm/amd/display: Fix handling of plane refcount
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Fix handling of plane refcount
[Why] The mechanism to backup and restore plane states doesn't maintain refcount, which can cause issues if the refcount of the plane changes in between backup and restore operations, such as memory leaks if the refcount was supposed to go down, or double frees / invalid memory accesses if the refcount was supposed to go up.
[How] Cache and re-apply current refcount when restoring plane states.
From the CVE record · Linux
The Linux kernel’s AMD display code can mishandle plane reference counts when backing up and restoring plane states. If a plane’s reference count changes between those operations, this can cause memory leaks, double frees, or invalid memory accesses. The input does not specify an attack path, authentication requirements, or user interaction.
Engineers running Linux kernels with AMD display support should check their affected versions; no version range was provided.