drm/xe/dma-buf: fix UAF with retry loop
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.337.0.107.1In 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)
From the CVE record · Linux
The Linux kernel’s drm/xe/dma-buf code has a use-after-free flaw: an error can free a buffer object that the retry loop then uses. The input does not specify how an attacker could trigger the error or whether authentication, local access, or user interaction is required.
Anyone running a Linux kernel with the affected drm/xe/dma-buf code should check their version; affected versions are not specified.