CVE-2026-31547: drm/xe: Fix missing runtime PM reference in ccs_mode_store
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/xe: Fix missing runtime PM reference in ccs_mode_store
ccs_mode_store() calls xe_gt_reset() which internally invokes xe_pm_runtime_get_noresume(). That function requires the caller to already hold an outer runtime PM reference and warns if none is held:
[46.891177] xe 0000:03:00.0: [drm] Missing outer runtime PM protection [46.891178] WARNING: drivers/gpu/drm/xe/xe_pm.c:885 at xe_pm_runtime_get_noresume+0x8b/0xc0
Fix this by protecting xe_gt_reset() with the scope-based guard(xe_pm_runtime)(xe), which is the preferred form when the reference lifetime matches a single scope.
v2:
- Use scope-based guard(xe_pm_runtime)(xe) (Shuicheng)
- Update commit message accordingly
(cherry picked from commit 7937ea733f79b3f25e802a0c8360bf7423856f36)
The Linux kernel CVE team has assigned CVE-2026-31547 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.19 with commit 480b358e7d8ef69fd8f1b0cad6e07c7d70a36ee4 and fixed in 6.19.10 with commit c409ecce9adcf815e86bc2f68834982e5a9c4e76 Issue introduced in 6.19 with commit 480b358e7d8ef69fd8f1b0cad6e07c7d70a36ee4 and fixed in 7.0 with commit 65d046b2d8e0d6d855379a981869005fd6b6a41b
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-2026-31547
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_ccs_mode.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/c409ecce9adcf815e86bc2f68834982e5a9c4e76 https://git.kernel.org/stable/c/65d046b2d8e0d6d855379a981869005fd6b6a41b