Skip to content
Heist/ feed
High

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

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: KVM: arm64: Correctly cap ZCR_EL2 provided by a guest hypervisor 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()]

Announced Source revision 1
Original source ↗

CVE-2026-63941

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-63941

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "b3d29a8230998b36afecf494b199211d26052785",
        "lessThan": "2090c1a2368339eab0e14dcde12fdf6a5ea6359d",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b3d29a8230998b36afecf494b199211d26052785",
        "lessThan": "742a9b5ccd8c46caf983ca90c94f855466968e34",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b3d29a8230998b36afecf494b199211d26052785",
        "lessThan": "83726330748981372bde86ed5411d7b306612991",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "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"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.11"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.11",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.18.57",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.0.12",
        "versionType": "semver",
        "lessThanOrEqual": "7.0.*"
      },
      {
        "status": "unaffected",
        "version": "7.1",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "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"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-63941

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#40906 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement