| From bippy-1.2.0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@kernel.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2025-37869: drm/xe: Use local fence in error path of xe_migrate_clear |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| drm/xe: Use local fence in error path of xe_migrate_clear |
| |
| The intent of the error path in xe_migrate_clear is to wait on locally |
| generated fence and then return. The code is waiting on m->fence which |
| could be the local fence but this is only stable under the job mutex |
| leading to a possible UAF. Fix code to wait on local fence. |
| |
| (cherry picked from commit 762b7e95362170b3e13a8704f38d5e47eca4ba74) |
| |
| The Linux kernel CVE team has assigned CVE-2025-37869 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 6.8 with commit dd08ebf6c3525a7ea2186e636df064ea47281987 and fixed in 6.12.25 with commit 2ac5f466f62892a7d1ac2d1a3eb6cd14efbe2f2d |
| Issue introduced in 6.8 with commit dd08ebf6c3525a7ea2186e636df064ea47281987 and fixed in 6.14.4 with commit dc712938aa26b001f448d5e93f59d57fa80f2dbd |
| Issue introduced in 6.8 with commit dd08ebf6c3525a7ea2186e636df064ea47281987 and fixed in 6.15 with commit 20659d3150f1a2a258a173fe011013178ff2a197 |
| |
| Please see https://www.kernel.org for a full list of currently supported |
| kernel versions by the kernel community. |
| |
| Unaffected versions might change over time as fixes are backported to |
| older supported kernel versions. The official CVE entry at |
| https://cve.org/CVERecord/?id=CVE-2025-37869 |
| will be updated if fixes are backported, please check that for the most |
| up to date information about this issue. |
| |
| |
| Affected files |
| ============== |
| |
| The file(s) affected by this issue are: |
| drivers/gpu/drm/xe/xe_migrate.c |
| |
| |
| Mitigation |
| ========== |
| |
| The Linux kernel CVE team recommends that you update to the latest |
| stable kernel version for this, and many other bugfixes. Individual |
| changes are never tested alone, but rather are part of a larger kernel |
| release. Cherry-picking individual commits is not recommended or |
| supported by the Linux kernel community at all. If however, updating to |
| the latest release is impossible, the individual changes to resolve this |
| issue can be found at these commits: |
| https://git.kernel.org/stable/c/2ac5f466f62892a7d1ac2d1a3eb6cd14efbe2f2d |
| https://git.kernel.org/stable/c/dc712938aa26b001f448d5e93f59d57fa80f2dbd |
| https://git.kernel.org/stable/c/20659d3150f1a2a258a173fe011013178ff2a197 |