# CVE-2025-38521: drm/imagination: Fix kernel crash when hard resetting the GPU

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **CWE:** CWE-668
- **Published:** 2025-08-16T10:55:08.373Z
- **Modified:** 2026-11-05T21:18:34.047Z

## Who should check

- Anyone running Linux \>= cc1aeedb98ad347c06ff59e991b2f94dfb4c565d, \< 9f852d301f642223c4798f3c13ba15e91165d078; \>= cc1aeedb98ad347c06ff59e991b2f94dfb4c565d, \< e066cc6e0f094ca2120f1928d126d56f686cd73e; \>= cc1aeedb98ad347c06ff59e991b2f94dfb4c565d, \< d38376b3ee48d073c64e75e150510d7e6b4b04f7
- Anyone running Linux 6.8

## Description

In the Linux kernel, the following vulnerability has been resolved:

drm/imagination: Fix kernel crash when hard resetting the GPU

The GPU hard reset sequence calls pm\_runtime\_force\_suspend() and
pm\_runtime\_force\_resume(), which according to their documentation should
only be used during system-wide PM transitions to sleep states.

The main issue though is that depending on some internal runtime PM
state as seen by pm\_runtime\_force\_suspend() (whether the usage count is
\<= 1), pm\_runtime\_force\_resume() might not resume the device unless
needed. If that happens, the runtime PM resume callback
pvr\_power\_device\_resume() is not called, the GPU clocks are not
re-enabled, and the kernel crashes on the next attempt to access GPU
registers as part of the power-on sequence.

Replace calls to pm\_runtime\_force\_suspend() and
pm\_runtime\_force\_resume() with direct calls to the driver's runtime PM
callbacks, pvr\_power\_device\_suspend() and pvr\_power\_device\_resume(),
to ensure clocks are re-enabled and avoid the kernel crash.

## Affected and fixed versions

- Linux: \>= cc1aeedb98ad347c06ff59e991b2f94dfb4c565d, \< 9f852d301f642223c4798f3c13ba15e91165d078; \>= cc1aeedb98ad347c06ff59e991b2f94dfb4c565d, \< e066cc6e0f094ca2120f1928d126d56f686cd73e; \>= cc1aeedb98ad347c06ff59e991b2f94dfb4c565d, \< d38376b3ee48d073c64e75e150510d7e6b4b04f7 (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38521. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38521.md
Affected: Linux >= cc1aeedb98ad347c06ff59e991b2f94dfb4c565d, < 9f852d301f642223c4798f3c13ba15e91165d078; >= cc1aeedb98ad347c06ff59e991b2f94dfb4c565d, < e066cc6e0f094ca2120f1928d126d56f686cd73e; >= cc1aeedb98ad347c06ff59e991b2f94dfb4c565d, < d38376b3ee48d073c64e75e150510d7e6b4b04f7; Linux 6.8
Fixed in: Linux 9f852d301f642223c4798f3c13ba15e91165d078

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38521 being exploited?

There is no confirmed exploitation: CVE-2025-38521 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38521?

High: CVSS 7.1 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38521?

Linux \>= cc1aeedb98ad347c06ff59e991b2f94dfb4c565d, \< 9f852d301f642223c4798f3c13ba15e91165d078; \>= cc1aeedb98ad347c06ff59e991b2f94dfb4c565d, \< e066cc6e0f094ca2120f1928d126d56f686cd73e; \>= cc1aeedb98ad347c06ff59e991b2f94dfb4c565d, \< d38376b3ee48d073c64e75e150510d7e6b4b04f7; Linux 6.8.

### Is there a fix for CVE-2025-38521?

Yes. Fixed in Linux 9f852d301f642223c4798f3c13ba15e91165d078. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38521?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/9f852d301f642223c4798f3c13ba15e91165d078>
- patch: <https://git.kernel.org/stable/c/e066cc6e0f094ca2120f1928d126d56f686cd73e>
- patch: <https://git.kernel.org/stable/c/d38376b3ee48d073c64e75e150510d7e6b4b04f7>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38521>

HTML: <https://flawdb.com/CVE-2025-38521> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38521>
