CVE-2026-46147: KVM: arm64: Fix pin leak and publication ordering in __pkvm_init_vcpu()
In the Linux kernel, the following vulnerability has been resolved:
KVM: arm64: Fix pin leak and publication ordering in pkvminitvcpu()
Two bugs exist in the vCPU initialisation path:
1. If a check fails after hyppinsharedmem() succeeds, the cleanup path jumps to 'unlock' without calling unpinhostvcpu() or unpinhostsvestate(), permanently leaking pin references on the host vCPU and SVE state pages.
Extract a registerhypvcpu() helper that performs the checks and the store. When registerhypvcpu() returns an error, call unpinhostvcpu() and unpinhostsvestate() inline before falling through to the existing 'unlock' label.
2. registerhypvcpu() publishes the new vCPU pointer into 'hypvm->vcpus[]' with a bare store, allowing a concurrent caller of pkvmloadhypvcpu() to observe a partially initialised vCPU object.
Ensure the store uses smpstorerelease() and the load uses smploadacquire(). While 'vmtablelock' currently serialises the store and the load, these barriers ensure the reader sees the fully initialised 'hypvcpu' object even if there were a lockless path or if the lock's own ordering guarantees were insufficient for nested object initialization.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/linux-azure-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1014.14~24.04.1 - Upgrade
Upgrade
ubuntu/linux-azure-fde-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1013.13~24.04.1 - Upgrade
Upgrade
ubuntu/linux-gcp-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1011.11~24.04.1 - Upgrade
Upgrade
ubuntu/linux-hwe-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-28.28~24.04.1 - Upgrade
Upgrade
ubuntu/linux-nvidia-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1016.16~24.04.1 - Upgrade
Upgrade
ubuntu/linux-oracle-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1011.11~24.04.1 - Upgrade
Upgrade
ubuntu/linux-riscv-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-28.28.1~24.04.3 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 7.0.0-28.28 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 7.0.0-1009.9 - Upgrade
Upgrade
ubuntu/linux-azureto a version that resolves this vulnerability.Fixed in 7.0.0-1010.10 - Upgrade
Upgrade
ubuntu/linux-azure-fdeto a version that resolves this vulnerability.Fixed in 7.0.0-1009.9 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 7.0.0-1008.8 - Upgrade
Upgrade
ubuntu/linux-gketo a version that resolves this vulnerability.Fixed in 7.0.0-1003.4 - Upgrade
Upgrade
ubuntu/linux-ibmto a version that resolves this vulnerability.Fixed in 7.0.0-1010.10 - Upgrade
Upgrade
ubuntu/linux-nvidiato a version that resolves this vulnerability.Fixed in 7.0.0-1016.16 - Upgrade
Upgrade
ubuntu/linux-nvidia-bosto a version that resolves this vulnerability.Fixed in 7.0.0-2016.16 - Upgrade
Upgrade
ubuntu/linux-oem-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1009.9 - Upgrade
Upgrade
ubuntu/linux-oracleto a version that resolves this vulnerability.Fixed in 7.0.0-1008.8 - Upgrade
Upgrade
ubuntu/linux-raspito a version that resolves this vulnerability.Fixed in 7.0.0-1015.15 - Upgrade
Upgrade
ubuntu/linux-realtimeto a version that resolves this vulnerability.Fixed in 7.0.0-28.28.1 - Upgrade
Upgrade
ubuntu/linux-riscvto a version that resolves this vulnerability.Fixed in 7.0.0-28.28.1 - Compensating control
In register_hyp_vcpu(), publish the new vCPU pointer into hyp_vm->vcpus[] with smp_store_release(), and have pkvm_load_hyp_vcpu() read it with smp_load_acquire() so readers cannot observe a partially initialized hyp_vcpu object.
- Compensating control
When register_hyp_vcpu() returns an error after hyp_pin_shared_mem() succeeds, call unpin_host_vcpu() and unpin_host_sve_state() inline before falling through to the existing unlock cleanup path.
Event History
Frequently Asked Questions
What access does an attacker need to exploit this issue?
The CVSS vector indicates local access with low privileges is required, and no user interaction is needed. The affected code is in the KVM arm64 protected-KVM vCPU initialization path.
What is the expected impact if the vulnerable path is triggered?
Failed initialization after shared-memory pinning can permanently leak pin references for host vCPU and SVE-state pages. A concurrent vCPU load can also observe a partially initialized vCPU object; the CVSS assessment rates availability impact as high, with no confidentiality or integrity impact.