# CVE-2023-53095: drm/ttm: Fix a NULL pointer dereference

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2025-05-02T15:55:39.661Z
- Modified: 2026-11-05T21:17:12.713Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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().

(As written by CVE List.)

## Affected

- Linux Linux: from 6a9b028994025f5033f10d1da30b29dfdc713384 before 9ba1720f6c4a0f13c3f3cb5c28132ee75555d04f; from 6a9b028994025f5033f10d1da30b29dfdc713384 before 9d9b1f9f7a72d83ebf173534e76b246349f32374; from 6a9b028994025f5033f10d1da30b29dfdc713384 before 9a9a8fe26751334b7739193a94eba741073b8a55; 5.19 (not affected: before 5.19; from 6.1.21 up to 6.1.*; from 6.2.8 up to 6.2.*; from 6.3 up to *)
- linux linux_kernel: from 5.19 before 6.1.21; from 6.2 before 6.2.8; 6.3

## References

- <https://git.kernel.org/stable/c/9ba1720f6c4a0f13c3f3cb5c28132ee75555d04f> (patch)
- <https://git.kernel.org/stable/c/9d9b1f9f7a72d83ebf173534e76b246349f32374> (patch)
- <https://git.kernel.org/stable/c/9a9a8fe26751334b7739193a94eba741073b8a55> (patch)

## Sources

- CVE List: [CVE-2023-53095](https://www.cve.org/CVERecord?id=CVE-2023-53095), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2023-53095](https://nvd.nist.gov/vuln/detail/CVE-2023-53095), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2023-53095 · Whole record: https://cve.day/CVE-2023-53095.json · Rebuilt by cve.day 2026-11-25T22:58:34.664Z
