CVE-2023-53095

drm/ttm: Fix a NULL pointer dereference

State
Published
Severity
Not scored
Published
May 2, 2025
Updated
May 11, 2026
Reserved
May 2, 2025

Read the record on cve.org

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

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 6a9b028994025f5033f10d1da30b29dfdc713384 to before 9ba1720f6c4a0f13c3f3cb5c28132ee75555d04fAffected
  • 6a9b028994025f5033f10d1da30b29dfdc713384 to before 9d9b1f9f7a72d83ebf173534e76b246349f32374Affected
  • 6a9b028994025f5033f10d1da30b29dfdc713384 to before 9a9a8fe26751334b7739193a94eba741073b8a55Affected
LinuxLinux
  • 5.19Affected
  • before 5.19Not affected
  • 6.1.21 through 6.1.*Not affected
  • 6.2.8 through 6.2.*Not affected
  • 6.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.