Vulnerability record
drm/exec: don't immediately add prelocked obj to array of locked objs
In the Linux kernel, the following vulnerability has been resolved:
drm/exec: don't immediately add prelocked obj to array of locked objs
When a contention is detected the drm_exec object grabs a reference to the contended object, unlocks all other objects and pre-locks the contended one before anything else.
The problem is that it is possible that this pre-locked object was about to be destroyed and drm_exec is now holding the last reference to it.
So we never actually see this pre-locked object again to be explicitly locked and so also never reserve a slot for a dma_fence object on it.…
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources