# CVE-2025-38354: drm/msm/gpu: Fix crash when throttling GPU immediately during boot

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; 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.27% (percentile 12, 2026-11-28)
- **Published:** 2025-07-25T12:47:26.087Z
- **Modified:** 2026-06-17T09:16:41.537Z

## Who should check

- Anyone running Linux \>= 6694482a70e9536efbf2ac233cbf0c302d6e2dae, \< ae2015b0dbc0eea7aaf022194371f451f784d994; \>= 6694482a70e9536efbf2ac233cbf0c302d6e2dae, \< 7946a10f8da75abc494e4bb80243e153e93e459a; \>= 6694482a70e9536efbf2ac233cbf0c302d6e2dae, \< 1847ea44e3bdf7da8ff4158bc01b43a2e46394bd; \>= 6694482a70e9536efbf2ac233cbf0c302d6e2dae, \< a6f673cc9488fd722c601fe020601dba14db21b2; \>= 6694482a70e9536efbf2ac233cbf0c302d6e2dae, \< b71717735be48d7743a34897e9e44a0b53e30c0e; 1f6c087dd6a915f1c3471f0f0f696847fc8c592f; 9c8b3f05fb18fba12f3fca80a378c9b8f3d04cd6; \>= 5.18.18, \< 5.19; \>= 5.19.2, \< 5.20
- Anyone running Linux 6.0

## Description

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

drm/msm/gpu: Fix crash when throttling GPU immediately during boot

There is a small chance that the GPU is already hot during boot. In that
case, the call to of\_devfreq\_cooling\_register() will immediately try to
apply devfreq cooling, as seen in the following crash:

  Unable to handle kernel paging request at virtual address 0000000000014110
  pc : a6xx\_gpu\_busy+0x1c/0x58 \[msm\]
  lr : msm\_devfreq\_get\_dev\_status+0xbc/0x140 \[msm\]
  Call trace:
   a6xx\_gpu\_busy+0x1c/0x58 \[msm\] (P)
   devfreq\_simple\_ondemand\_func+0x3c/0x150
   devfreq\_update\_target+0x44/0xd8
   qos\_max\_notifier\_call+0x30/0x84
   blocking\_notifier\_call\_chain+0x6c/0xa0
   pm\_qos\_update\_target+0xd0/0x110
   freq\_qos\_apply+0x3c/0x74
   apply\_constraint+0x88/0x148
   \_\_dev\_pm\_qos\_update\_request+0x7c/0xcc
   dev\_pm\_qos\_update\_request+0x38/0x5c
   devfreq\_cooling\_set\_cur\_state+0x98/0xf0
   \_\_thermal\_cdev\_update+0x64/0xb4
   thermal\_cdev\_update+0x4c/0x58
   step\_wise\_manage+0x1f0/0x318
   \_\_thermal\_zone\_device\_update+0x278/0x424
   \_\_thermal\_cooling\_device\_register+0x2bc/0x308
   thermal\_of\_cooling\_device\_register+0x10/0x1c
   of\_devfreq\_cooling\_register\_power+0x240/0x2bc
   of\_devfreq\_cooling\_register+0x14/0x20
   msm\_devfreq\_init+0xc4/0x1a0 \[msm\]
   msm\_gpu\_init+0x304/0x574 \[msm\]
   adreno\_gpu\_init+0x1c4/0x2e0 \[msm\]
   a6xx\_gpu\_init+0x5c8/0x9c8 \[msm\]
   adreno\_bind+0x2a8/0x33c \[msm\]
   ...

At this point we haven't initialized the GMU at all yet, so we cannot read
the GMU registers inside a6xx\_gpu\_busy(). A similar issue was fixed before
in commit 6694482a70e9 ("drm/msm: Avoid unclocked GMU register access in
6xx gpu\_busy"): msm\_devfreq\_init() does call devfreq\_suspend\_device(), but
unlike msm\_devfreq\_suspend(), it doesn't set the df-\>suspended flag
accordingly. This means the df-\>suspended flag does not match the actual
devfreq state after initialization and msm\_devfreq\_get\_dev\_status() will
end up accessing GMU registers, causing the crash.

Fix this by setting df-\>suspended correctly during initialization.

Patchwork: https://patchwork.freedesktop.org/patch/650772/

## Affected and fixed versions

- Linux: \>= 6694482a70e9536efbf2ac233cbf0c302d6e2dae, \< ae2015b0dbc0eea7aaf022194371f451f784d994; \>= 6694482a70e9536efbf2ac233cbf0c302d6e2dae, \< 7946a10f8da75abc494e4bb80243e153e93e459a; \>= 6694482a70e9536efbf2ac233cbf0c302d6e2dae, \< 1847ea44e3bdf7da8ff4158bc01b43a2e46394bd; \>= 6694482a70e9536efbf2ac233cbf0c302d6e2dae, \< a6f673cc9488fd722c601fe020601dba14db21b2; \>= 6694482a70e9536efbf2ac233cbf0c302d6e2dae, \< b71717735be48d7743a34897e9e44a0b53e30c0e; 1f6c087dd6a915f1c3471f0f0f696847fc8c592f; 9c8b3f05fb18fba12f3fca80a378c9b8f3d04cd6; \>= 5.18.18, \< 5.19; \>= 5.19.2, \< 5.20 (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

- Upgrade Linux to 5.20 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-38354.md
Affected: Linux >= 6694482a70e9536efbf2ac233cbf0c302d6e2dae, < ae2015b0dbc0eea7aaf022194371f451f784d994; >= 6694482a70e9536efbf2ac233cbf0c302d6e2dae, < 7946a10f8da75abc494e4bb80243e153e93e459a; >= 6694482a70e9536efbf2ac233cbf0c302d6e2dae, < 1847ea44e3bdf7da8ff4158bc01b43a2e46394bd; >= 6694482a70e9536efbf2ac2…
Fixed in: Linux 7946a10f8da75abc494e4bb80243e153e93e459a, Linux 1847ea44e3bdf7da8ff4158bc01b43a2e46394bd, Linux 5.19, Linux 5.20

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-38354 being exploited?

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

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

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

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

Linux \>= 6694482a70e9536efbf2ac233cbf0c302d6e2dae, \< ae2015b0dbc0eea7aaf022194371f451f784d994; \>= 6694482a70e9536efbf2ac233cbf0c302d6e2dae, \< 7946a10f8da75abc494e4bb80243e153e93e459a; \>= 6694482a70e9536efbf2ac233cbf0c302d6e2dae, \< 1847ea44e3bdf7da8ff4158bc01b43a2e46394bd; \>= 6694482a70e9536efbf2ac233cbf0c302d6e2dae, \< a6f673cc9488fd722c601fe020601dba14db21b2; \>= 6694482a70e9536efbf2ac233cbf0c302d6e2dae, \< b71717735be48d7743a34897e9e44a0b53e30c0e; 1f6c087dd6a915f1c3471f0f0f696847fc8c592f; 9c8b3f05fb18fba12f3fca80a378c9b8f3d04cd6; \>= 5.18.18, \< 5.19; \>= 5.19.2, \< 5.20; Linux 6.0.

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

Yes. Fixed in Linux 7946a10f8da75abc494e4bb80243e153e93e459a, Linux 1847ea44e3bdf7da8ff4158bc01b43a2e46394bd, Linux 5.19, Linux 5.20. Upgrade Linux to 5.20 or later.

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

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/ae2015b0dbc0eea7aaf022194371f451f784d994>
- patch: <https://git.kernel.org/stable/c/7946a10f8da75abc494e4bb80243e153e93e459a>
- patch: <https://git.kernel.org/stable/c/1847ea44e3bdf7da8ff4158bc01b43a2e46394bd>
- patch: <https://git.kernel.org/stable/c/a6f673cc9488fd722c601fe020601dba14db21b2>
- patch: <https://git.kernel.org/stable/c/b71717735be48d7743a34897e9e44a0b53e30c0e>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>

## 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-38354>

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