What’s Vulnerable › Vulnerabilities
CVE-2020-36788: drm/nouveau: avoid a use-after-free when BO init fails
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-05-21 · updated 2026-08-04
- Weakness: CWE-416
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
- Linux kernel: from 5.4 before 5.10.73; from 5.11 before 5.14.12; 5.15-rc1, 5.15-rc2, 5.15-rc3, 5.15-rc4 — fixed in 5.10.73, 5.14.12
How to fix
Upgrade to a fixed version: Linux kernel 5.10.73, 5.14.12. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/548f2ff8ea5e0ce767ae3418d1ec5308990be87d
- https://git.kernel.org/stable/c/bcf34aa5082ee2343574bc3f4d1c126030913e54
- https://git.kernel.org/stable/c/f86e19d918a85492ad1a01fcdc0ad5ecbdac6f96
- https://git.kernel.org/stable/c/548f2ff8ea5e0ce767ae3418d1ec5308990be87d
- https://git.kernel.org/stable/c/bcf34aa5082ee2343574bc3f4d1c126030913e54
- https://git.kernel.org/stable/c/f86e19d918a85492ad1a01fcdc0ad5ecbdac6f96
Get alerted when CVE-2020-36788 or the next vulnerability affects your stack