What’s Vulnerable › Vulnerabilities

CVE-2020-36788: drm/nouveau: avoid a use-after-free when BO init fails

Description

In the Linux kernel, the following vulnerability has been resolved: drm/nouveau: avoid a use-after-free when BO init fails nouveau_bo_init() is backed by ttm_bo_init() and ferries its return code back to the caller. On failures, ttm_bo_init() invokes the provided destructor which should de-initialize and free the memory. Thus, when nouveau_bo_init() returns an error the gem object has already been released and the memory freed by nouveau_bo_del_ttm().

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.10.73, 5.14.12. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2020-36788 or the next vulnerability affects your stack