VDB

CVE-2025-22013

CVE-2025-22013 PUBLISHED CVSS 7.3 HIGH

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.

PackageEcosystemFixed in
kernel-modules-extraAmazon Linux6.1.140-154.222.amzn2023
kernel6.12Amazon Linux6.12.22-27.96.amzn2023
kernel-libbpf-develAmazon Linux6.1.140-154.222.amzn2023
kernel-tools-develAmazon Linux6.1.140-154.222.amzn2023
kernel-libbpf-staticAmazon Linux6.1.140-154.222.amzn2023
python3-perfAmazon Linux6.1.140-154.222.amzn2023
kernel-livepatch-6.1.140-154.222Amazon Linux1.0-0.amzn2023
python3-perf6.12Amazon Linux6.12.22-27.96.amzn2023
bpftoolAmazon Linux6.1.140-154.222.amzn2023
kernel-headersAmazon Linux6.1.140-154.222.amzn2023
kernel-libbpfAmazon Linux6.1.140-154.222.amzn2023
perfAmazon Linux6.1.140-154.222.amzn2023

3 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.3
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H

Affected products

VendorProductVersions
LinuxLinuxc4ab60a86c5ed7c0d727c6dc8cec352e16bc7f90, d5f7d3833b534f9e43e548461dba1e60aa82f587, 93ae6b01bafee8fa385aa25ee7ebdb40057f6abe
LinuxLinux6.2, 0, 6.6.85
amazon:2023kernel-modules-extra0
amazon:2023kernel6.120
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-tools-devel0
linuxlinux_kernel6.2, 6.2, 6.2
amazon:2023kernel-libbpf-static0
amazon:2023python3-perf0
amazon:2023kernel-livepatch-6.1.140-154.2220
amazon:2023python3-perf6.120
amazon:2023bpftool0
amazon:2023kernel-headers0
amazon:2023kernel-libbpf0
amazon:2023perf0
amazon:2023kernel-modules-extra-common0
LinuxLinux6.14, *, 93ae6b01bafee8fa385aa25ee7ebdb40057f6abe
amazon:2023kernel0
amazon:2023kernel-devel0
amazon:2023kernel-tools0

…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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›