Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: drm/xe/dma-buf: fix UAF with retry loop Retry doesn't work here, since bo will be freed on error, leading to UAF. However, now that we do the alloc & init before the attach, we can now combine this as one unit and have the init do the alloc for us. This should make the retry safe. Reported by Sashiko. v2: Fix up the error unwind (CI) (cherry picked from commit 479669418253e0f27f8cf5db01a731352ea592e7)
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected eb289a5f6cc668853f9b2ea6aca04afe58ed11c7 before 39fdac6be02eb7c3460518c1c4085f75f935c4ce; affected eb289a5f6cc668853f9b2ea6aca04afe58ed11c7 before 827062952ed9bdf4220466c1f05ce452d04bdedf; affected eb289a5f6cc668853f9b2ea6aca04afe58ed11c7 before 155a372a1cc50fa93387c5d3cdfd614a61e1afd1 |
| Linux / Linux | affected 6.18; unaffected 0 before 6.18; unaffected 6.18.33 through 6.18.*; unaffected 7.0.10 through 7.0.*; unaffected 7.1 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/39fdac6be02eb7c3460518c1c4085f75f935c4ce
- https://git.kernel.org/stable/c/827062952ed9bdf4220466c1f05ce452d04bdedf
- https://git.kernel.org/stable/c/155a372a1cc50fa93387c5d3cdfd614a61e1afd1
ADP enrichment
A flaw was found in the Linux kernel, specifically within the drm/xe/dma-buf component. This Use-After-Free (UAF) vulnerability occurs due to an issue in a retry loop, where a buffer object is prematurely freed on error. An attacker could potentially exploit this to cause memory corruption, leading to system instability or, in some cases, arbitrary code execution.
No English description supplied.
No references supplied.