KVM: arm64: Derive GUEST_HAS_SVE from the SVE feature bit at EL2
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.18.55, 7.2.9
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: KVM: arm64: Derive GUEST_HAS_SVE from the SVE feature bit at EL2 pkvm_init_features_from_host() takes KVM_ARCH_FLAG_GUEST_HAS_SVE and KVM_ARM_VCPU_SVE from the host separately, but pkvm_vcpu_init_sve() tests the bit while vcpu_has_sve() reads the flag. A host that sets the flag without the bit gets a vCPU with a NULL sve_state that the world switch loads the guest's SVE state from. Derive the flag from the bit, and drop the protected path's copy of the host's flag, which is dead code since protected VMs are not allowed SVE.
Timeline
- CVE published
- First seen by cve.now
Affected versions
- Linux Linux
From 41d6028e28bd474298ff10409c292ec46cf43a90 · fixed in 4efda204087145d40a84344edec7e9d3885ad3ab; From 41d6028e28bd474298ff10409c292ec46cf43a90 · fixed in 7b5e99d286747b6b5b583b8efcd06bdbdd94b229; From 41d6028e28bd474298ff10409c292ec46cf43a90 · fixed in 4f16c5fc8dc4c5596e3777ab9f449a54e3f85fd5
- Linux Linux
6.14
- KernelLinux
From 6.14.0 · fixed in 6.18.55; From 6.19.0 · fixed in 7.2.9