CVE-2026-98637: KVM: arm64: Do not clear VM-wide SVE feature on vCPU init failure
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
KVM: arm64: Do not clear VM-wide SVE feature on vCPU init failure
pkvm_vcpu_init_sve() clears KVM_ARM_VCPU_SVE in kvm->arch.vcpu_features when it fails, but vcpu_has_sve() tests KVM_ARCH_FLAG_GUEST_HAS_SVE, which is left set. Later vCPUs on that VM then skip the SVE setup and register with a NULL sve_state, which the guest's first FP access hands to sve_load_state().
Return the error without touching vcpu_features.
The Linux kernel CVE team has assigned CVE-2026-98637 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.16 with commit 5db1bef933427aa467ad89c7b695a84a6b4afe16 and fixed in 6.18.55 with commit bd46b41f412fb81c50bac1a0929ec31320f3a807 Issue introduced in 6.16 with commit 5db1bef933427aa467ad89c7b695a84a6b4afe16 and fixed in 7.2.9 with commit f0cd8ffae092cc1b9d7cfa9188ed5a88a374adcb Issue introduced in 6.16 with commit 5db1bef933427aa467ad89c7b695a84a6b4afe16 and fixed in 7.3-rc5 with commit a1b3c788ad31837e348075e93dbba3f447492776
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98637
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
arch/arm64/kvm/hyp/nvhe/pkvm.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/bd46b41f412fb81c50bac1a0929ec31320f3a807 https://git.kernel.org/stable/c/f0cd8ffae092cc1b9d7cfa9188ed5a88a374adcb https://git.kernel.org/stable/c/a1b3c788ad31837e348075e93dbba3f447492776