CVE-2025-40166
Last modified
CVE-2025-40166 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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 exec_destroy() 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. EPSS estimates a 0.18% chance of exploitation in the next 30 days.
Description
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 exec_destroy() 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/xe_ttm_vram_mgr.c:298 ttm_vram_mgr_fini+0xf8/0x130 [xe] " v2: use xe_uc_fw_is_running() instead of xe_guc_ct_enabled(). As CT may go down and come back during VF migration. (cherry picked from commit 9b42321a02c50a12b2beb6ae9469606257fbecea)
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= dd08ebf6c3525a7ea2186e636df064ea47281987, < 2c6e5904c5bdbac8e0eadee40f70c42bb83f6dc6; >= dd08ebf6c3525a7ea2186e636df064ea47281987, < fa708415566bbe5361c935645107319f8edc8dc1; >= dd08ebf6c3525a7ea2186e636df064ea47281987, < 9f64b3cd051b825de0a2a9f145c8e003200cedd5 |
| Linux | Linux | 6.8 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-40166?
How severe is CVE-2025-40166?
How do I fix CVE-2025-40166?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-40160In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40161In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40162In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40163In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40164In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-40165In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40167In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40168In the Linux kernel, the following vulnerability has been re…8.1
- CVE-2025-40169In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-4017A vulnerability classified as problematic was found in 20120…6.5
- CVE-2025-40170In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40171In the Linux kernel, the following vulnerability has been re…7.5
Are you affected by CVE-2025-40166?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
