CVE-2025-40166: drm/xe/guc: Check GuC running state before deregistering exec queue
In the Linux kernel, the following vulnerability has been resolved:
drm/xe/guc: Check GuC running state before deregistering exec queue
In normal operation, a registered exec queue is disabled and deregistered through the GuC, and freed only after the GuC confirms completion. However, if the driver is forced to unbind while the exec queue is still running, the user may call execdestroy() after the GuC has already been stopped and CT communication disabled.
In this case, the driver cannot receive a response from the GuC, preventing proper cleanup of exec queue resources. Fix this by directly releasing the resources when GuC is not running.
Here is the failure dmesg log: " [ 468.089581] ---[ end trace 0000000000000000 ]--- [ 468.089608] pci 0000:03:00.0: [drm] ERROR GT0: GUC ID manager unclean (1/65535) [ 468.090558] pci 0000:03:00.0: [drm] GT0: total 65535 [ 468.090562] pci 0000:03:00.0: [drm] GT0: used 1 [ 468.090564] pci 0000:03:00.0: [drm] GT0: range 1..1 (1) [ 468.092716] ------------[ cut here ]------------ [ 468.092719] WARNING: CPU: 14 PID: 4775 at drivers/gpu/drm/xe/xettmvrammgr.c:298 ttmvrammgrfini+0xf8/0x130 [xe] "
v2: use xeucfwisrunning() instead of xegucctenabled(). As CT may go down and come back during VF migration.
(cherry picked from commit 9b42321a02c50a12b2beb6ae9469606257fbecea)
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-40166?
The severity of CVE-2025-40166 is categorized as medium, indicating potential risk but not an immediate threat.
How do I fix CVE-2025-40166?
To mitigate CVE-2025-40166, update to the latest version of the Linux kernel where the vulnerability has been resolved.
Which versions of the Linux kernel are affected by CVE-2025-40166?
CVE-2025-40166 affects specific versions of the Linux kernel, so users should consult the official release notes for details.
What are the potential impacts of CVE-2025-40166 on system security?
CVE-2025-40166 could allow unauthorized access or control over resources managed by the GuC, potentially compromising system integrity.
Is CVE-2025-40166 exploitable remotely?
CVE-2025-40166 is not considered remotely exploitable as it requires local access to the affected system.