# CVE-2026-46147: KVM: arm64: Fix pin leak and publication ordering in __pkvm_init_vcpu()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-05-28T09:36:03.892Z
- Modified: 2026-06-17T10:53:08.980Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

KVM: arm64: Fix pin leak and publication ordering in __pkvm_init_vcpu()

Two bugs exist in the vCPU initialisation path:

1. If a check fails after hyp_pin_shared_mem() succeeds, the cleanup
   path jumps to 'unlock' without calling unpin_host_vcpu() or
   unpin_host_sve_state(), permanently leaking pin references on the
   host vCPU and SVE state pages.

   Extract a register_hyp_vcpu() helper that performs the checks and
   the store. When register_hyp_vcpu() returns an error, call
   unpin_host_vcpu() and unpin_host_sve_state() inline before falling
   through to the existing 'unlock' label.

2. register_hyp_vcpu() publishes the new vCPU pointer into
   'hyp_vm->vcpus[]' with a bare store, allowing a concurrent caller
   of pkvm_load_hyp_vcpu() to observe a partially initialised vCPU
   object.

   Ensure the store uses smp_store_release() and the load uses
   smp_load_acquire(). While 'vm_table_lock' currently serialises the
   store and the load, these barriers ensure the reader sees the fully
   initialised 'hyp_vcpu' object even if there were a lockless path or
   if the lock's own ordering guarantees were insufficient for nested
   object initialization.

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 7d3c27b54253cda91dc4d2c1bfc109c490837ab9; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 6d69c0ed978f7f0efd053fc98390f25ab77c1aea; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 73b9c1e5da84cd69b1a86e374e450817cd051371; before 6.18.30; before 7.0.7 (not affected: from 6.18.30 up to 6.18.*; from 7.0.7 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: before 6.18.30; from 6.19 before 7.0.7; 7.1

## References

- <https://git.kernel.org/stable/c/7d3c27b54253cda91dc4d2c1bfc109c490837ab9> (patch)
- <https://git.kernel.org/stable/c/6d69c0ed978f7f0efd053fc98390f25ab77c1aea> (patch)
- <https://git.kernel.org/stable/c/73b9c1e5da84cd69b1a86e374e450817cd051371> (patch)

## Sources

- CVE List: [CVE-2026-46147](https://www.cve.org/CVERecord?id=CVE-2026-46147), CVE Terms of Use, modified 2026-06-14
- NVD: [CVE-2026-46147](https://nvd.nist.gov/vuln/detail/CVE-2026-46147), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-46147 · Whole record: https://cve.day/CVE-2026-46147.json · Rebuilt by cve.day 2026-11-25T22:59:22.812Z
