# CVE-2025-38169: arm64/fpsimd: Avoid clobbering kernel FPSIMD state with SMSTOP

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2025-07-03T08:36:08.393Z
- Modified: 2026-10-15T22:18:32.380Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from e92bee9f861b466c676f0200be3e46af7bc4ac6b before 55d52af498daea75aa03ba9b7e444c8ae495ac20; from e92bee9f861b466c676f0200be3e46af7bc4ac6b before a305821f597ec943849d3e53924adb88c61ed682; from e92bee9f861b466c676f0200be3e46af7bc4ac6b before 01098d893fa8a6edb2b56e178b798e3e6b674f02; e003c485ac82a9f8de4204912ed059ac6dd4257c; 25b90cd122d546823da90b916f7c3289dfe83a99; from 6.8.12 before 6.9; from 6.9.3 before 6.10; 6.10 (not affected: before 6.10; from 6.12.34 up to 6.12.*; from 6.15.3 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 6.8.12 before 6.9; from 6.9.3 before 6.12.34; from 6.13 before 6.15.3

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/55d52af498daea75aa03ba9b7e444c8ae495ac20> (patch)
- <https://git.kernel.org/stable/c/a305821f597ec943849d3e53924adb88c61ed682> (patch)
- <https://git.kernel.org/stable/c/01098d893fa8a6edb2b56e178b798e3e6b674f02> (patch)

## Sources

- CVE List: [CVE-2025-38169](https://www.cve.org/CVERecord?id=CVE-2025-38169), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-38169](https://nvd.nist.gov/vuln/detail/CVE-2025-38169), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2025-38169 · Whole record: https://cve.day/CVE-2025-38169.json · Rebuilt by cve.day 2026-11-25T22:59:00.554Z
