CVE-2025-22013
KVM: arm64: Unconditionally save+flush host FPSIMD/SVE/SME state
Reported by linux · Published April 8, 2025
In the Linux kernel, the following vulnerability has been resolved: KVM: arm64: Unconditionally save+flush host FPSIMD/SVE/SME state There are several problems with the way hyp code lazily saves the host's FPSIMD/SVE state, including: * Host SVE being discarded unexpectedly due to inconsistent configuration of TIF_SVE and CPACR_ELx.ZEN. This has been seen to result in QEMU crashes where SVE is used by memmove(), as reported by Eric Auger: https://issues.redhat.com/browse/RHEL-68997 * Host SVE state is discarded *after* modification by ptrace, which was an unintentional ptrace ABI change introduced with lazy discarding of SVE state. * The host FPMR value can be discarded when running a non-protected VM, where FPMR support is not exposed to a VM, and that VM uses FPSIMD/SVE. In these cases the hyp code does not save the host's FPMR before unbinding the host's FPSIMD/SVE/SME state, leaving a stale value in memory. Avoid these by eagerly saving and "flushing" the host's FPSIMD/SVE/SME state when loading a vCPU such that KVM does not need to save any of the host's FPSIMD/SVE/SME state. For clarity, fpsimd_kvm_prepare() is removed and the necessary call to fpsimd_save_and_flush_cpu_state() is placed in kvm_arch_vcpu_load_fp(). As 'fpsimd_state' and 'fpmr_ptr' should not be used, they are set to NULL; all uses of these will be removed in subsequent patches. Historical problems go back at least as far as v5.17, e.g. erroneous assumptions about TIF_SVE being clear in commit: 8383741ab2e773a9 ("KVM: arm64: Get rid of host SVE tracking/saving") ... and so this eager save+flush probably needs to be backported to ALL stable trees.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-modules-extra | Amazon Linux | 6.1.140-154.222.amzn2023 |
| kernel6.12 | Amazon Linux | 6.12.22-27.96.amzn2023 |
| kernel-libbpf-devel | Amazon Linux | 6.1.140-154.222.amzn2023 |
| kernel-tools-devel | Amazon Linux | 6.1.140-154.222.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 6.1.140-154.222.amzn2023 |
| python3-perf | Amazon Linux | 6.1.140-154.222.amzn2023 |
| kernel-livepatch-6.1.140-154.222 | Amazon Linux | 1.0-0.amzn2023 |
| python3-perf6.12 | Amazon Linux | 6.12.22-27.96.amzn2023 |
| bpftool | Amazon Linux | 6.1.140-154.222.amzn2023 |
| kernel-headers | Amazon Linux | 6.1.140-154.222.amzn2023 |
| kernel-libbpf | Amazon Linux | 6.1.140-154.222.amzn2023 |
| perf | Amazon Linux | 6.1.140-154.222.amzn2023 |
3 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | c4ab60a86c5ed7c0d727c6dc8cec352e16bc7f90, d5f7d3833b534f9e43e548461dba1e60aa82f587, 93ae6b01bafee8fa385aa25ee7ebdb40057f6abe |
| Linux | Linux | 6.2, 0, 6.6.85 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| linux | linux_kernel | 6.2, 6.2, 6.2 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-livepatch-6.1.140-154.222 | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| Linux | Linux | 6.14, *, 93ae6b01bafee8fa385aa25ee7ebdb40057f6abe |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-tools | 0 |
…and 3 more
Timeline
- Apr 7, 2025 CVE Published
- Apr 8, 2025 EPSS Score (30 in total, the first dated here)
- Apr 24, 2025 Coalition ESS Score (10 in total, the first dated here)
- Dec 21, 2025 Security Advisory (107 in total, the first dated here)
- Apr 29, 2026 Distribution Patch (104 in total, the first dated here)
- Jul 30, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-22013
vulnetix vdb fixes CVE-2025-22013
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-22013/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart