data built 2026-10-19T13:16:53Z

Look up another CVE · open CVE-2026-63941 in the interactive tracker

CVE-2026-63941

KVM: arm64: Correctly cap ZCR_EL2 provided by a guest hypervisor

8.8 EPSS 0.2% AV:L

Published 2026-07-19 (3 months ago) by the Linux kernel CNA. Subsystem arch/arm64. Debian urgency: unimportant.

What to do, per Debian release

Debian's own status for CVE-2026-63941 in every release this site tracks, and what each one means in practice. Every status below is the one the Debian Security Team publishes for this CVE. source

ReleaseStatus VersionWhat this means
Debian 12bookwormnot affected6.1.190-1Nothing to do. bookworm never shipped the vulnerable code.
Debian 13trixievulnerable6.12.113-1No fix published anywhere yet, neither in Debian nor upstream for the series trixie tracks. Watch the Debian tracker page for this CVE. Advisories for trixie have historically landed a median of 11 days after publication.
Debian 14forkyfixed7.0.12-1Update the kernel and reboot. Fixed in 7.0.12-1. A running kernel keeps the old code until the machine restarts.
Debian unstablesidfixed7.0.12-1Update the kernel and reboot. Fixed in 7.0.12-1. A running kernel keeps the old code until the machine restarts.

The vulnerability

What the bug is

ZCR_EL2 can be updated by a VHE guest hypervisor either using ZCR_EL2 (which traps) or ZCR_EL1 (which does not trap). KVM handles both in different way: - on ZCR_EL2 trap, ZCR_EL2.LEN is immediately capped at the VM's own VL limit. This has the potential to break existing SW that relies on the full LEN field to be stateful. - on ZCR_EL1 access, we do absolutely nothing. On restoring the SVE context for an L2 guest, we directly restore the guest hypervisor's view of ZCR_EL2 into the physical ZCR_EL2. If the guest's view of the register was updated using the ZCR_EL2 accessor, the value has already been sanitised (with the caveat mentioned above). But if the guest used ZCR_EL1, the raw value is written into the HW, and the L2 guest can now access VLs that it shouldn't. Fix all the above by moving the VL capping to the restore points, ensuring that: - the HW is always programmed with a capped value, irrespective of the accessor being used, - the ZCR_EL2.LEN field is always completely stateful, irrespective of the accessor being used. Additionally, move ZCR_EL2 to be a sanitised register, ensuring that only the LEN field is actually stateful. This requires some creative construction of the RES0 mask, as the sysreg generation script does not yet generate RAZ/WI fields. [maz: rewrote commit message, tidy up access_zcr_el2()]

Where it lives

The fix touches these files. If the subsystem is one you do not use, the practical exposure is lower, though the package is still the vulnerable one.

arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/hyp/include/hyp/switch.h
arch/arm64/kvm/nested.c
arch/arm64/kvm/sys_regs.c

What this is
KERNEL VIRTUAL MACHINE FOR ARM64 (KVM/arm64)MAINTAINERS section matched on arch/arm64/include/asm/kvm* · linux-arm-kernel@lists.infradead.org · Maintained
Kernel module
kvm

Check it on the machine

grep -w CONFIG_KVM /boot/config-$(uname -r)

Reads the booted kernel's own configuration, on the machine and nowhere else. =y is built in, =m is a module, and an is not set line means the code is not there.

lsmod | grep -w kvm

Prints a line if that module is loaded right now, and nothing if it is not. One that is not loaded can still be loaded later by anything that needs it.

Show whether Debian builds this, per release

Debian builds this, but not on every flavour. At least one release below builds the code on some of its kernel flavours and not on others, so the answer depends on the architecture and flavour installed.

  • bookwormBnot built on arm64/rt/arm64, armhf/armmp, armhf/armmp-lpae, armhf/rt/armmp
  • trixieBnot built on armel/rpi, armhf/armmp, armhf/armmp-lpae, armhf/rt/armmp
  • forky, sidBnot built on armhf/armmp, armhf/armmp-lpae
B
built in on some, a module on others, absent on the rest
Build switch
CONFIG_KVM

From the configuration Debian publishes for every kernel flavour it builds. It covers only the architectures Debian ships a linux-config package for, and nothing about a kernel you built yourself. Debian's own status above stays authoritative about the source package.MAINTAINERS kbuild Makefiles Debian linux-config packages

Signals

Published
2026-07-19 (3 months ago)source
CVSS
8.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:Hsource recompute it
Attack vector
local (AV:L)source
EPSS
0.17%, higher than 5.5% of all CVEssource
CISA KEV
not listedthe KEV catalogue
Debian urgency
unimportantsource
Subsystem
arch/arm64

Upstream fixes

The versions the CNA records as introducing and fixing this, and the commit for each. source

IntroducedFixed inCommit
6.116.18.572090c1a23683
6.117.0.12742a9b5ccd8c
6.117.1837263307489

Why the CNA scored it this way

Quoted from the kernel CNA's own scoring file, word for word. A highlighted metric carries the most severe value CVSS v3.1 defines for it, which is what pushes the score up. source

AV:LAttack vector, local
The bug is reached only through KVM nested-virtualization and SVE context-restore paths (e.g., KVM_RUN → guest entry → __hyp_sve_restore_guest / fpsimd_lazy_switch_to_guest), not via any network protocol or remote packet handler.
AC:LAttack complexity, low
A malicious L1 guest hypervisor can reliably disable SVE traps, write ZCR_EL1 directly, and run an L2 guest that uses SVE; the attacker controls both the hypervisor configuration and the nested guest workload that triggers restore.
PR:LPrivileges required, low
Exploitation requires code execution inside a VM with nested virtualization and SVE enabled (KVM_ARM_VCPU_HAS_EL2 + SVE); it is not triggerable by an unprivileged host user or an unauthenticated remote attacker without guest access.
UI:NUser interaction, none
No end-user or administrator action beyond the attacker operating their own nested guest environment is required to trigger the flawed ZCR_EL2 programming.
S:CScope, changed
Incorrect programming of physical ZCR_EL2 for an L2 guest breaks the KVM hypervisor isolation boundary and can corrupt host kernel memory (the vcpu SVE state buffer in host heap), enabling a nested-guest-to-host escape.
C:HConfidentiality impact, high
Programming a ZCR_EL2 LEN above the vcpu's allocated sve_max_vl lets SVE save/restore operate beyond the kmalloc'd sve_state buffer, yielding out-of-bounds access that can be leveraged for arbitrary kernel memory disclosure.
I:HIntegrity impact, high
The same uncapped ZCR_EL2 value enables out-of-bounds SVE register save/restore into adjacent host kernel objects, providing a memory-corruption primitive that can be developed into arbitrary write or host code execution.
A:HAvailability impact, high
The mismatch between hardware vector length and the allocated SVE state buffer can cause kernel oops/panic during SVE context save/restore, and repeated triggering can deny service to other VMs on the host.