Linux
drm/xe/dma-buf: fix UAF with retry loop
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= eb289a5f6cc668853f9b2ea6aca04afe58ed11c7, < 39fdac6be02eb7c3460518c1c4085f75f935c4ce
- >= eb289a5f6cc668853f9b2ea6aca04afe58ed11c7, < 827062952ed9bdf4220466c1f05ce452d04bdedf
- >= eb289a5f6cc668853f9b2ea6aca04afe58ed11c7, < 155a372a1cc50fa93387c5d3cdfd614a61e1afd1
Fixed in 39fdac6be02eb7c3460518c1c4085f75f935c4ce, 827062952ed9bdf4220466c1f05ce452d04bdedf, 155a372a1cc50fa93387c5d3cdfd614a61e1afd1
- 6.18
Fixed in 0, 6.18.33, 7.0.10, 7.1
Mitigation
Upgrade Linux to 39fdac6be02eb7c3460518c1c4085f75f935c4ce or 827062952ed9bdf4220466c1f05ce452d04bdedf or 155a372a1cc50fa93387c5d3cdfd614a61e1afd1 or later.
Upgrade Linux to 0 or 6.18.33 or 7.0.10 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.