CVE-2025-39767
BaseFortify
Publication date: 2025-09-11
Last updated on: 2025-11-25
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | From 5.15.160 (inc) to 5.16 (inc) |
| linux | linux_kernel | 6.17 |
| linux | linux_kernel | 6.17 |
| linux | linux_kernel | From 5.15.160 (inc) to 5.16 (inc) |
| linux | linux_kernel | From 5.15.160 (inc) to 5.16 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-667 | The product does not properly acquire or release a lock on a resource, leading to unexpected resource state changes and behaviors. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability occurs in the Linux kernel when enabling CONFIG_KASAN, CONFIG_PREEMPT_VOLUNTARY_BUILD, and CONFIG_PREEMPT_VOLUNTARY simultaneously, causing a soft deadlock due to slow module loading, particularly with the amdgpu module. The slow loading is caused by an inefficient O(n^2) algorithm used to count PLTs/GOTs during module loading. The issue was fixed by optimizing the counting algorithm to O(n log n) by sorting the relocation list, which significantly reduces module load time and prevents the soft deadlock.
How can this vulnerability impact me? :
This vulnerability can cause a soft deadlock in the Linux kernel, leading to the system becoming unresponsive or stalled during module loading, especially for large modules like amdgpu. This can affect system stability and availability until the module loading completes or the system is restarted.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by observing soft deadlock symptoms in the Linux kernel logs when loading modules with specific kernel configurations enabled (CONFIG_KASAN, CONFIG_PREEMPT_VOLUNTARY_BUILD, and CONFIG_PREEMPT_VOLUNTARY). Relevant logs include messages like 'rcu: INFO: rcu_sched self-detected stall on CPU' followed by a call trace. To detect this, you can check the kernel logs using commands such as 'dmesg | grep rcu' or 'journalctl -k | grep rcu' to look for these stall messages and call traces during module loading.
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, apply the patch that optimizes the module load time by sorting the relocation list and reducing the complexity of the counting algorithm from O(n^2) to O(n log n). This patch resolves the soft deadlock issue by significantly reducing module load time, especially for large modules like amdgpu. Until the patch is applied, avoid loading large modules that trigger the deadlock or disable the combination of CONFIG_KASAN, CONFIG_PREEMPT_VOLUNTARY_BUILD, and CONFIG_PREEMPT_VOLUNTARY kernel options if possible.