CVE-2025-38354 drm/msm/gpu: Fix crash when throttling GPU immediately during boot
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- Linux KernelUbuntuDebian
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.
Upgrade path
8 packages: 7 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux kernel(Azure Linux 3.0) | < 6.6.96.1-1 | 6.6.96.1-1 | Fixed |
| debian/linux(Debian 12) | < 6.1.147-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +38 more | 6.1.147-1 | Fixed |
| debian/linux(Debian 13) | < 6.12.37-1 | 6.12.37-1 | Fixed |
| debian/linux(Debian 14) | < 6.12.37-1 | 6.12.37-1 | Fixed |
| Linux kernel | < 6.1.143; < 6.6.96; < 6.12.36; < 6.15.5 +15 more | 5.19, 5.20, 6.1.143, 6.6.96, 6.12.36, 6.15.5, 6.16, 1847ea44e3bdf7da8ff4158bc01b43a2e46394bd, 7946a10f8da75abc494e4bb80243e153e93e459a, a6f673cc9488fd722c601fe020601dba14db21b2, ae2015b0dbc0eea7aaf022194371f451f784d994, b71717735be48d7743a34897e9e44a0b53e30c0e | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-100.100 | 6.8.0-100.100 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1047.51 | 6.8.0-1047.51 | Fixed |
| debian linux | = 11.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| azure linux kernel(Azure Linux:3.0) | < 6.6.96.1-1 | 6.6.96.1-1 |
| debian/linux(Debian:12) | < 6.1.147-1 | 6.1.147-1 |
| debian/linux(Debian:12) | = 6.1.106-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.112-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.115-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.119-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.123-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.124-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.128-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.129-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.133-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.135-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.137-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.139-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.140-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.27-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.37-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4~bpo11+1 | No fix listed |
Show 42 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | = 6.1.52-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.64-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.66-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.67-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.82-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.85-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.98-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.99-1 | No fix listed |
| debian/linux(Debian:13) | < 6.12.37-1 | 6.12.37-1 |
| debian/linux(Debian:14) | < 6.12.37-1 | 6.12.37-1 |
| Linux kernel | >= 6694482a70e9536efbf2ac233cbf0c302d6e2dae, < ae2015b0dbc0eea7aaf022194371f451f784d994 | ae2015b0dbc0eea7aaf022194371f451f784d994 |
| Linux kernel | >= 6694482a70e9536efbf2ac233cbf0c302d6e2dae, < 7946a10f8da75abc494e4bb80243e153e93e459a | 7946a10f8da75abc494e4bb80243e153e93e459a |
| Linux kernel | >= 6694482a70e9536efbf2ac233cbf0c302d6e2dae, < 1847ea44e3bdf7da8ff4158bc01b43a2e46394bd | 1847ea44e3bdf7da8ff4158bc01b43a2e46394bd |
| Linux kernel | >= 6694482a70e9536efbf2ac233cbf0c302d6e2dae, < a6f673cc9488fd722c601fe020601dba14db21b2 | a6f673cc9488fd722c601fe020601dba14db21b2 |
| Linux kernel | >= 6694482a70e9536efbf2ac233cbf0c302d6e2dae, < b71717735be48d7743a34897e9e44a0b53e30c0e | b71717735be48d7743a34897e9e44a0b53e30c0e |
| Linux kernel | = 1f6c087dd6a915f1c3471f0f0f696847fc8c592f | No fix listed |
| Linux kernel | = 9c8b3f05fb18fba12f3fca80a378c9b8f3d04cd6 | No fix listed |
| Linux kernel | >= 5.18.18, < 5.19 | 5.19 |
| Linux kernel | >= 5.19.2, < 5.20 | 5.20 |
| Linux kernel | = 6.0 | No fix listed |
| Linux kernel | < 6.1.143 | 6.1.143 |
| Linux kernel | < 6.6.96 | 6.6.96 |
| Linux kernel | < 6.12.36 | 6.12.36 |
| Linux kernel | < 6.15.5 | 6.15.5 |
| Linux kernel | < 6.16 | 6.16 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-100.100 | 6.8.0-100.100 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1047.51 | 6.8.0-1047.51 |
| Linux kernel | >= 5.19.2, < 6.1.143 | 6.1.143 |
| Linux kernel | >= 6.2, < 6.6.96 | 6.6.96 |
| Linux kernel | >= 6.7, < 6.12.36 | 6.12.36 |
| Linux kernel | >= 6.13, < 6.15.5 | 6.15.5 |
| debian linux | = 11.0 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2025-38354 vendor-advisory
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- lists.debian.org third-party-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7833-1 vendor-advisory
- USN-7834-1 vendor-advisory
- USN-7833-2 vendor-advisory
- USN-7833-3 vendor-advisory
- USN-7833-4 vendor-advisory
- USN-7856-1 vendor-advisory
- USN-8028-1 vendor-advisory
- USN-8028-2 vendor-advisory
- USN-8031-1 vendor-advisory
- USN-8028-3 vendor-advisory
- USN-8028-4 vendor-advisory
- USN-8028-5 vendor-advisory
- USN-8031-2 vendor-advisory
- USN-8028-6 vendor-advisory
- USN-8031-3 vendor-advisory
- USN-8052-1 vendor-advisory
- USN-8028-7 vendor-advisory
- USN-8028-8 vendor-advisory
- USN-8052-2 vendor-advisory
- USN-8074-1 vendor-advisory
- USN-8074-2 vendor-advisory
- USN-8126-1 vendor-advisory
- www.cve.org