CVE-2025-38170
BaseFortify
Publication date: 2025-07-03
Last updated on: 2025-12-18
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.19 (inc) to 6.1.142 (exc) |
| linux | linux_kernel | From 6.2 (inc) to 6.6.94 (exc) |
| linux | linux_kernel | From 6.7 (inc) to 6.12.34 (exc) |
| linux | linux_kernel | From 6.13 (inc) to 6.15.3 (exc) |
| debian | debian_linux | 11.0 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-NVD-CWE-noinfo |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability occurs in the Linux kernel's arm64/fpsimd code that handles SME (Scalable Matrix Extension) traps. Due to a race condition with preemption, the system can incorrectly handle the saved CPU state related to FPSIMD/SVE/SME, causing a task to have the TIF_SME flag set while the CPU state is stale and TIF_FOREIGN_FPSTATE is clear. This leads to unexpected SME traps and warnings, as the system mistakenly believes the CPU state is current when it is not. The fix involves ensuring that stale CPU state is discarded properly to prevent reuse of invalid state during context switches.
How can this vulnerability impact me? :
This vulnerability can cause the Linux kernel to reuse stale CPU state when handling SME traps, potentially leading to unexpected warnings and incorrect CPU state handling. This could affect system stability or correctness in applications relying on SME features, possibly causing unpredictable behavior or performance issues on affected arm64 systems.
What immediate steps should I take to mitigate this vulnerability?
The vulnerability is resolved by a fix in the Linux kernel that discards stale CPU state when handling SME traps by calling fpsimd_flush_task_state() to detach from the saved CPU state. Immediate mitigation involves updating the Linux kernel to a version that includes this fix to prevent reuse of stale CPU state and avoid the race condition.