| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2024-50144: drm/xe: fix unbalanced rpm put() with fence_fini() |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| drm/xe: fix unbalanced rpm put() with fence_fini() |
| |
| Currently we can call fence_fini() twice if something goes wrong when |
| sending the GuC CT for the tlb request, since we signal the fence and |
| return an error, leading to the caller also calling fini() on the error |
| path in the case of stack version of the flow, which leads to an extra |
| rpm put() which might later cause device to enter suspend when it |
| shouldn't. It looks like we can just drop the fini() call since the |
| fence signaller side will already call this for us. |
| |
| There are known mysterious splats with device going to sleep even with |
| an rpm ref, and this could be one candidate. |
| |
| v2 (Matt B): |
| - Prefer warning if we detect double fini() |
| |
| (cherry picked from commit cfcbc0520d5055825f0647ab922b655688605183) |
| |
| The Linux kernel CVE team has assigned CVE-2024-50144 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 6.11 with commit f002702290fccbd473f5bb94e52f25c96917fff2 and fixed in 6.11.6 with commit 046bd018c0123b1a49c22abed5f9ea31d1454c78 |
| Issue introduced in 6.11 with commit f002702290fccbd473f5bb94e52f25c96917fff2 and fixed in 6.12 with commit 03a86c24aea0920a1ca20a0d7771d5e176db538d |
| |
| 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-2024-50144 |
| 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_gt_tlb_invalidation.c |
| drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h |
| drivers/gpu/drm/xe/xe_vm.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/046bd018c0123b1a49c22abed5f9ea31d1454c78 |
| https://git.kernel.org/stable/c/03a86c24aea0920a1ca20a0d7771d5e176db538d |