CVE-2023-53095
JSON

5.5medium

drm/ttm: Fix a NULL pointer dereference

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.20% (higher than 10% of CVEs; EPSS, by FIRST)
Published
Last changed
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().

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 5.19 before 6.1.21, from 6.2 before 6.2.8, 6.3NVD

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/ttm: Corregir una desreferencia de puntero NULL. El mecanismo LRU puede buscar un recurso en proceso de ser eliminado de un objeto. Las reglas de bloqueo aquí son un poco confusas, pero actualmente parece que la asignación res->bo está protegida por el bloqueo LRU, mientras que bo->resource está protegida por el bloqueo de objeto, mientras que la *limpieza* de bo->resource también está protegida por el bloqueo LRU. Esto significa que si comprobamos que bo->resource apunta al recurso LRU bajo el bloqueo LRU, deberíamos estar seguros. Así que realice esa comprobación antes de decidir intercambiar un bo. Esto evita la desreferencia de un bo->resource NULL en ttm_bo_swapout().

References

Sources

SourceRecordLicence
CVE ListCVE-2023-53095 changed 2026-11-05CVE Terms of Use
NVDCVE-2023-53095 changed 2026-11-05Public domain