CVE-2026-63941 (GCVE-0-2026-63941)

Vulnerability from cvelistv5 – Published: 2026-07-19 14:55 – Updated: 2026-08-05 12:37
VLAI
Title
KVM: arm64: Correctly cap ZCR_EL2 provided by a guest hypervisor
Summary
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()]
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: b3d29a8230998b36afecf494b199211d26052785 , < 742a9b5ccd8c46caf983ca90c94f855466968e34 (git)
Affected: b3d29a8230998b36afecf494b199211d26052785 , < 83726330748981372bde86ed5411d7b306612991 (git)
Create a notification for this product.
Linux Linux Affected: 6.11
Unaffected: 0 , < 6.11 (semver)
Unaffected: 7.0.12 , ≤ 7.0.* (semver)
Unaffected: 7.1 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "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"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "742a9b5ccd8c46caf983ca90c94f855466968e34",
              "status": "affected",
              "version": "b3d29a8230998b36afecf494b199211d26052785",
              "versionType": "git"
            },
            {
              "lessThan": "83726330748981372bde86ed5411d7b306612991",
              "status": "affected",
              "version": "b3d29a8230998b36afecf494b199211d26052785",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "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"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.11"
            },
            {
              "lessThan": "6.11",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.0.*",
              "status": "unaffected",
              "version": "7.0.12",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.0.12",
                  "versionStartIncluding": "6.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1",
                  "versionStartIncluding": "6.11",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: arm64: Correctly cap ZCR_EL2 provided by a guest hypervisor\n\nZCR_EL2 can be updated by a VHE guest hypervisor either using ZCR_EL2\n(which traps) or ZCR_EL1 (which does not trap). KVM handles both in\ndifferent way:\n\n- on ZCR_EL2 trap, ZCR_EL2.LEN is immediately capped at the VM\u0027s own\n  VL limit. This has the potential to break existing SW that relies\n  on the full LEN field to be stateful.\n\n- on ZCR_EL1 access, we do absolutely nothing.\n\nOn restoring the SVE context for an L2 guest, we directly restore the\nguest hypervisor\u0027s view of ZCR_EL2 into the physical ZCR_EL2. If the\nguest\u0027s view of the register was updated using the ZCR_EL2 accessor,\nthe value has already been sanitised (with the caveat mentioned above).\n\nBut if the guest used ZCR_EL1, the raw value is written into the HW,\nand the L2 guest can now access VLs that it shouldn\u0027t.\n\nFix all the above by moving the VL capping to the restore points,\nensuring that:\n\n- the HW is always programmed with a capped value, irrespective of\n  the accessor being used,\n\n- the ZCR_EL2.LEN field is always completely stateful, irrespective\n  of the accessor being used.\n\nAdditionally, move ZCR_EL2 to be a sanitised register, ensuring that\nonly the LEN field is actually stateful. This requires some creative\nconstruction of the RES0 mask, as the sysreg generation script does\nnot yet generate RAZ/WI fields.\n\n[maz: rewrote commit message, tidy up access_zcr_el2()]"
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 8.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The bug is reached only through KVM nested-virtualization and SVE context-restore paths (e.g., KVM_RUN \u2192 guest entry \u2192 __hyp_sve_restore_guest / fpsimd_lazy_switch_to_guest), not via any network protocol or remote packet handler.\nAC:L - 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.\nPR:L - 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.\nUI:N - No end-user or administrator action beyond the attacker operating their own nested guest environment is required to trigger the flawed ZCR_EL2 programming.\nS:C - 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.\nC:H - Programming a ZCR_EL2 LEN above the vcpu\u0027s allocated sve_max_vl lets SVE save/restore operate beyond the kmalloc\u0027d sve_state buffer, yielding out-of-bounds access that can be leveraged for arbitrary kernel memory disclosure.\nI:H - 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.\nA:H - 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."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T12:37:28.804Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/742a9b5ccd8c46caf983ca90c94f855466968e34"
        },
        {
          "url": "https://git.kernel.org/stable/c/83726330748981372bde86ed5411d7b306612991"
        }
      ],
      "title": "KVM: arm64: Correctly cap ZCR_EL2 provided by a guest hypervisor",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-63941",
    "datePublished": "2026-07-19T14:55:37.047Z",
    "dateReserved": "2026-07-19T07:54:57.022Z",
    "dateUpdated": "2026-08-05T12:37:28.804Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-63941",
      "date": "2026-08-10",
      "epss": "0.00154",
      "percentile": "0.05059"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-63941\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-07-19T16:17:12.643\",\"lastModified\":\"2026-07-27T17:44:23.777\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nKVM: arm64: Correctly cap ZCR_EL2 provided by a guest hypervisor\\n\\nZCR_EL2 can be updated by a VHE guest hypervisor either using ZCR_EL2\\n(which traps) or ZCR_EL1 (which does not trap). KVM handles both in\\ndifferent way:\\n\\n- on ZCR_EL2 trap, ZCR_EL2.LEN is immediately capped at the VM\u0027s own\\n  VL limit. This has the potential to break existing SW that relies\\n  on the full LEN field to be stateful.\\n\\n- on ZCR_EL1 access, we do absolutely nothing.\\n\\nOn restoring the SVE context for an L2 guest, we directly restore the\\nguest hypervisor\u0027s view of ZCR_EL2 into the physical ZCR_EL2. If the\\nguest\u0027s view of the register was updated using the ZCR_EL2 accessor,\\nthe value has already been sanitised (with the caveat mentioned above).\\n\\nBut if the guest used ZCR_EL1, the raw value is written into the HW,\\nand the L2 guest can now access VLs that it shouldn\u0027t.\\n\\nFix all the above by moving the VL capping to the restore points,\\nensuring that:\\n\\n- the HW is always programmed with a capped value, irrespective of\\n  the accessor being used,\\n\\n- the ZCR_EL2.LEN field is always completely stateful, irrespective\\n  of the accessor being used.\\n\\nAdditionally, move ZCR_EL2 to be a sanitised register, ensuring that\\nonly the LEN field is actually stateful. This requires some creative\\nconstruction of the RES0 mask, as the sysreg generation script does\\nnot yet generate RAZ/WI fields.\\n\\n[maz: rewrote commit message, tidy up access_zcr_el2()]\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"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\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"b3d29a8230998b36afecf494b199211d26052785\",\"lessThan\":\"742a9b5ccd8c46caf983ca90c94f855466968e34\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"b3d29a8230998b36afecf494b199211d26052785\",\"lessThan\":\"83726330748981372bde86ed5411d7b306612991\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"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\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"6.11\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"6.11\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.0.12\",\"lessThanOrEqual\":\"7.0.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H\",\"baseScore\":8.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"CHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":2.0,\"impactScore\":6.0}]},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/742a9b5ccd8c46caf983ca90c94f855466968e34\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/83726330748981372bde86ed5411d7b306612991\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-08-05T14:20:36+00:00",
      "cve": "CVE-2026-63941",
      "id": "CVE-2026-63941",
      "initial_release_date": "2026-07-19T00:00:00+00:00",
      "product_status:known_affected": "184",
      "product_status:known_not_affected": "90",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: KVM: arm64: Correctly cap ZCR_EL2 provided by a guest hypervisor",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-63941.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-07-30T16:34:33Z",
      "cve": "CVE-2026-63941",
      "id": "CVE-2026-63941",
      "initial_release_date": "2026-07-21T13:03:05Z",
      "product_status:known_affected": "29",
      "product_status:known_not_affected": "267",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-63941",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2026-63941.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…