CVE-2026-52951
Gravedad CVSS v3.1:
ALTA
Tipo:
CWE-416
Utilización después de liberación
Fecha de publicación:
24/06/2026
Última modificación:
15/07/2026
Descripción
*** Pendiente de traducción *** In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
drm/xe/dma-buf: handle empty bo and UAF races<br />
<br />
There look to be some nasty races here when triggering the<br />
invalidate_mappings hook:<br />
<br />
1) We do xe_bo_alloc() followed by the attach, before the actual full bo<br />
init step in xe_dma_buf_init_obj(). However the bo is visible on the<br />
attachments list after the attach. This is bad since exporter driver,<br />
say amdgpu, can at any time call back into our invalidate_mappings hook,<br />
with an empty/bogus bo, leading to potential bugs/crashes.<br />
<br />
2) Similar to 1) but here we get a UAF, when the invalidate_mappings<br />
hook is triggered. For example, we get as far as xe_bo_init_locked()<br />
but this fails in some way. But here the bo will be freed on error, but<br />
we still have it attached from dma-buf pov, so if the<br />
invalidate_mappings is now triggered then the bo we access is gone and<br />
we trigger UAF and more bugs/crashes.<br />
<br />
To fix this, move the attach step until after we actually have a fully<br />
set up buffer object. Note that the bo is not published to userspace<br />
until later, so not sure what the comment "Don&#39;t publish the bo<br />
until we have a valid attachment", is referring to.<br />
<br />
We have at least two different customers reporting hitting a NULL ptr<br />
deref in evict_flags when importing something from amdgpu, followed by<br />
triggering the evict flow. Hit rate is also pretty low, which would<br />
hint at some kind of race, so something like 1) or 2) might explain<br />
this.<br />
<br />
v2:<br />
- Shuffle the order of the ops slightly (no functional change)<br />
- Improve the comment to better explain the ordering (Matt B)<br />
<br />
(cherry picked from commit af1f2ad0c59fe4e2f924c526f66e968289d77971)
Impacto
Puntuación base 3.x
7.80
Gravedad 3.x
ALTA
Productos y versiones vulnerables
| CPE | Desde | Hasta |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.8 (incluyendo) | 6.12.91 (excluyendo) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.13 (incluyendo) | 6.18.33 (excluyendo) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.19 (incluyendo) | 7.0.10 (excluyendo) |
| cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:* |
Para consultar la lista completa de nombres de CPE con productos y versiones, ver esta página
Referencias a soluciones, herramientas e información
- https://git.kernel.org/stable/c/20a99ea1e2fd720856d6ba497ff26b82c604751f
- https://git.kernel.org/stable/c/981bedbbe61364fcc3a3b87ebaf648a66cd07108
- https://git.kernel.org/stable/c/9894731e513019df22a29e5c52f1c98890355ff1
- https://git.kernel.org/stable/c/c473ae25421fddc3dde247ba7b85225b10641d09
- https://access.redhat.com/security/cve/CVE-2026-52951
- https://bugzilla.redhat.com/show_bug.cgi?id=2492353
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-52951.json



