CVE-2023-53095 drm/ttm: Fix a NULL pointer dereference
A NULL pointer dereference in the Linux kernel's TTM subsystem allows local attackers to cause a system crash via race conditions during buffer object swapping.
- 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-2023-53095?
CVE-2023-53095 is a medium-severity vulnerability in Linux kernel, published on 2 May 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/ttm: Fix a NULL pointer dereference
The LRU mechanism may look up a resource in the process of being removed from an object. The locking rules here are a bit unclear but it looks currently like res->bo assignment is protected by the LRU lock, whereas bo->resource is protected by the object lock, while *clearing* of bo->resource is also protected by the LRU lock. This means that if we check that bo->resource points to the LRU resource under the LRU lock we should be safe. So perform that check before deciding to swap out a bo. That avoids dereferencing a NULL bo->resource in ttm_bo_swapout().
Weakness: CWE-476
Which versions are affected by CVE-2023-53095?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-53095?
Apply the vendor's patch.
Is CVE-2023-53095 being exploited?
There is no known exploitation of CVE-2023-53095 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-53095, DEBIAN-CVE-2023-53095, GHSA-qq4h-f4qp-wr7q, UBUNTU-CVE-2023-53095.