5.5medium
drm/vmwgfx: Fix a deadlock in dma buf fence polling
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.17% (higher than 6% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: drm/vmwgfx: Fix a deadlock in dma buf fence polling Introduce a version of the fence ops that on release doesn't remove the fence from the pending list, and thus doesn't require a lock to fix poll->fence wait->fence unref deadlocks. vmwgfx overwrites the wait callback to iterate over the list of all fences and update their status, to do that it holds a lock to prevent the list modifcations from other threads. The fence destroy callback both deletes the fence and removes it from the list of pending fences, for which it holds a lock. dma buf polling cb unrefs a fence after it's been signaled: so the poll calls the wait, which signals the fences, which are being destroyed. The destruction tries to acquire the lock on the pending fences list which it can never get because it's held by the wait from which it was called. Old bug, but not a lot of userspace apps were using dma-buf polling interfaces. Fix those, in particular this fixes KDE stalls/deadlock.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 2298e804e96eb3635c39519c8287befd92460303 before 9908dc0d2ef0e4aec8a242c098455729c0e2f017, from 2298e804e96eb3635c39519c8287befd92460303 before 9e20d028d8d1deb1e7fed18f22ffc01669cf3237, from 2298e804e96eb3635c39519c8287befd92460303 before 3b933b16c996af8adb6bc1b5748a63dfb41a82bc, from 2298e804e96eb3635c39519c8287befd92460303 before a8943969f9ead2fd3044fc826140a21622ef830e, from 2298e804e96eb3635c39519c8287befd92460303 before c98ab18b9f315ff977c2c65d7c71298ef98be8e3, from 2298e804e96eb3635c39519c8287befd92460303 before e58337100721f3cc0c7424a18730e4f39844934f, 3.18 Not affected: before 3.18, from 5.10.238 up to 5.10.*, from 5.15.165 up to 5.15.*, from 6.1.104 up to 6.1.*, from 6.6.45 up to 6.6.*, from 6.10.4 up to 6.10.* | CVE List |
| linux linux_kernel | from 3.18 before 5.15.165, from 5.16 before 6.1.104, from 6.2 before 6.6.45, from 6.7 before 6.10.4, 6.11 | NVD |
Classification
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/vmwgfx: Fix a deadlock in dma buf fence polling Introduce a version of the fence ops that on release doesn't remove the fence from the pending list, and thus doesn't require a lock to fix poll->fence wait->fence unref deadlocks. vmwgfx overwrites the wait callback to iterate over the list of all fences and update their status, to do that it holds a lock to prevent the list modifcations from other threads. The fence destroy callback both deletes the fence and removes it from the list of pending fences, for which it holds a lock. dma buf polling cb unrefs a fence after it's been signaled: so the poll calls the wait, which signals the fences, which are being destroyed. The destruction tries to acquire the lock on the pending fences list which it can never get because it's held by the wait from which it was called. Old bug, but not a lot of userspace apps were using dma-buf polling interfaces. Fix those, in particular this fixes KDE stalls/deadlock.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/vmwgfx: soluciona un punto muerto en el sondeo de valla de dma buf. Introduce una versión de las operaciones de valla que, al lanzarse, no elimina la valla de la lista de pendientes y, por tanto, no requiere un bloqueo para arreglar los puntos muertos de encuesta->espera de valla->cerca sin referencia. vmwgfx sobrescribe la devolución de llamada de espera para iterar sobre la lista de todas las barreras y actualizar su estado; para ello, mantiene un bloqueo para evitar que otros subprocesos modifiquen la lista. La devolución de llamada de destrucción de valla elimina la valla y la elimina de la lista de vallas pendientes, para las cuales mantiene un bloqueo. dma buf polling cb desrefs una valla después de haber sido señalada: entonces la encuesta llama a la espera, lo que señala las vallas que están siendo destruidas. La destrucción intenta adquirir el bloqueo en la lista de vallas pendientes que nunca puede conseguir porque está retenido por la espera desde la que fue llamado. Error antiguo, pero no muchas aplicaciones de espacio de usuario usaban interfaces de sondeo dma-buf. Solucionarlos, en particular esto soluciona los bloqueos/bloqueos de KDE.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-43863 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2024-43863 changed 2026-06-17 | Public domain |