CVE-2025-38169

CVE-2025-38169

High · published July 3, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
6.4
In the wild
Unconfirmed
What it is

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

arm64/fpsimd: Avoid clobbering kernel FPSIMD state with SMSTOP

On system with SME, a thread's kernel FPSIMD state may be erroneously

clobbered during a context switch immediately after that state is

restored. Systems without SME are unaffected.

If the CPU happens to be in streaming SVE mode before a context switch

to a thread with kernel FPSIMD state, fpsimd_thread_switch() will

restore the kernel FPSIMD state using fpsimd_load_kernel_state() while

the CPU is still in streaming SVE mode. When fpsimd_thread_switch()

subsequently calls fpsimd_flush_cpu_state(), this will execute an

SMSTOP, causing an exit from streaming SVE mode. The exit from

streaming SVE mode will cause the hardware to reset a number of

FPSIMD/SVE/SME registers, clobbering the FPSIMD state.

Fix this by calling fpsimd_flush_cpu_state() before restoring the kernel

FPSIMD state.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00173 · 6.4th percentile
Published
2025-07-03T13:15Z
Affected products (3)
ProductVersionsFixed in
linux/linux_kernel≥ 6.8.12, < 6.96.9
linux/linux_kernel≥ 6.9.3, < 6.12.346.12.34
linux/linux_kernel≥ 6.13, < 6.15.36.15.3
References (3)
EPSS history
Timeline
  • 03 JUL 08:36Z
    arm64/fpsimd: Avoid clobbering kernel FPSIMD state with SMSTOP
    cvelistv5