CVE-2022-50454 drm/nouveau: fix a use-after-free in nouveau_gem_prime_import_sg_table()
A use-after-free in the Linux kernel's nouveau driver allows attackers to potentially execute code or escalate privileges via crafted GPU operations.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-50454?
CVE-2022-50454 is a high-severity use after free vulnerability in Linux kernel, published on 1 Oct 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
drm/nouveau: fix a use-after-free in nouveau_gem_prime_import_sg_table()
nouveau_bo_init() is backed by ttm_bo_init() and ferries its return code back to the caller. On failures, ttm will call nouveau_bo_del_ttm() and free the memory.Thus, when nouveau_bo_init() returns an error, the gem object has already been released. Then the call to nouveau_bo_ref() will use the freed "nvbo->bo" and lead to a use-after-free bug.
We should delete the call to nouveau_bo_ref() to avoid the use-after-free.
Weakness: CWE-416
Which versions are affected by CVE-2022-50454?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-50454?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2022-50454 being exploited?
There is no known exploitation of CVE-2022-50454 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-50454, GHSA-w7xv-cpcr-3q3h, UBUNTU-CVE-2022-50454.