# CVE-2026-23114: arm64/fpsimd: ptrace: Fix SVE writes on !SME systems

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.12%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-02-14T15:09:47.048Z
- Modified: 2026-06-17T10:20:55.370Z
- Assigned by: Linux

## Description

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

arm64/fpsimd: ptrace: Fix SVE writes on !SME systems

When SVE is supported but SME is not supported, a ptrace write to the
NT_ARM_SVE regset can place the tracee into an invalid state where
(non-streaming) SVE register data is stored in FP_STATE_SVE format but
TIF_SVE is clear. This can result in a later warning from
fpsimd_restore_current_state(), e.g.

  WARNING: CPU: 0 PID: 7214 at arch/arm64/kernel/fpsimd.c:383 fpsimd_restore_current_state+0x50c/0x748

When this happens, fpsimd_restore_current_state() will set TIF_SVE,
placing the task into the correct state. This occurs before any other
check of TIF_SVE can possibly occur, as other checks of TIF_SVE only
happen while the FPSIMD/SVE/SME state is live. Thus, aside from the
warning, there is no functional issue.

This bug was introduced during rework to error handling in commit:

  9f8bf718f2923 ("arm64/fpsimd: ptrace: Gracefully handle errors")

... where the setting of TIF_SVE was moved into a block which is only
executed when system_supports_sme() is true.

Fix this by removing the system_supports_sme() check. This ensures that
TIF_SVE is set for (SVE-formatted) writes to NT_ARM_SVE, at the cost of
unconditionally manipulating the tracee's saved svcr value. The
manipulation of svcr is benign and inexpensive, and we already do
similar elsewhere (e.g. during signal handling), so I don't think it's
worth guarding this with system_supports_sme() checks.

Aside from the above, there is no functional change. The 'type' argument
to sve_set_common() is only set to ARM64_VEC_SME (in ssve_set())) when
system_supports_sme(), so the ARM64_VEC_SME case in the switch statement
is still unreachable when !system_supports_sme(). When
CONFIG_ARM64_SME=n, the only caller of sve_set_common() is sve_set(),
and the compiler can constant-fold for the case where type is
ARM64_VEC_SVE, removing the logic for other cases.

(As written by CVE List.)

## Affected

- Linux Linux: from 9f8bf718f29230e38a048d08fc3063e316cd60c1 before 4f39984176e7edcaba3432b6c649c6fe93bf2f80; from 9f8bf718f29230e38a048d08fc3063e316cd60c1 before 128a7494a9f15aad60cc6b7e3546bf481ac54a13; 6.16 (not affected: before 6.16; from 6.18.8 up to 6.18.*; from 6.19 up to *)
- linux linux_kernel: from 6.16 before 6.18.8; 6.19

## References

- <https://git.kernel.org/stable/c/4f39984176e7edcaba3432b6c649c6fe93bf2f80> (patch)
- <https://git.kernel.org/stable/c/128a7494a9f15aad60cc6b7e3546bf481ac54a13> (patch)

## Sources

- CVE List: [CVE-2026-23114](https://www.cve.org/CVERecord?id=CVE-2026-23114), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2026-23114](https://nvd.nist.gov/vuln/detail/CVE-2026-23114), Public domain, modified 2026-06-17

---

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