{"id":"CVE-2026-23425","aliases":["CVE-2026-23425"],"related":[],"kind":"vulnerability","state":"published","title":"KVM: arm64: Fix ID register initialization for non-protected pKVM guests","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: arm64: Fix ID register initialization for non-protected pKVM guests\n\nIn protected mode, the hypervisor maintains a separate instance of\nthe `kvm` structure for each VM. For non-protected VMs, this structure is\ninitialized from the host's `kvm` state.\n\nCurrently, `pkvm_init_features_from_host()` copies the\n`KVM_ARCH_FLAG_ID_REGS_INITIALIZED` flag from the host without the\nunderlying `id_regs` data being initialized. This results in the\nhypervisor seeing the flag as set while the ID registers remain zeroed.\n\nConsequently, `kvm_has_feat()` checks at EL2 fail (return 0) for\nnon-protected VMs. This breaks logic that relies on feature detection,\nsuch as `ctxt_has_tcrx()` for TCR2_EL1 support. As a result, certain\nsystem registers (e.g., TCR2_EL1, PIR_EL1, POR_EL1) are not\nsaved/restored during the world switch, which could lead to state\ncorruption.\n\nFix this by explicitly copying the ID registers from the host `kvm` to\nthe hypervisor `kvm` for non-protected VMs during initialization, since\nwe trust the host with its non-protected guests' features. Also ensure\n`KVM_ARCH_FLAG_ID_REGS_INITIALIZED` is cleared initially in\n`pkvm_init_features_from_host` so that `vm_copy_id_regs` can properly\ninitialize them and set the flag once done.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: arm64: Fix ID register initialization for non-protected pKVM guests\n\nIn protected mode, the hypervisor maintains a separate instance of\nthe `kvm` structure for each VM. For non-protected VMs, this structure is\ninitialized from the host's `kvm` state.\n\nCurrently, `pkvm_init_features_from_host()` copies the\n`KVM_ARCH_FLAG_ID_REGS_INITIALIZED` flag from the host without the\nunderlying `id_regs` data being initialized. This results in the\nhypervisor seeing the flag as set while the ID registers remain zeroed.\n\nConsequently, `kvm_has_feat()` checks at EL2 fail (return 0) for\nnon-protected VMs. This breaks logic that relies on feature detection,\nsuch as `ctxt_has_tcrx()` for TCR2_EL1 support. As a result, certain\nsystem registers (e.g., TCR2_EL1, PIR_EL1, POR_EL1) are not\nsaved/restored during the world switch, which could lead to state\ncorruption.\n\nFix this by explicitly copying the ID registers from the host `kvm` to\nthe hypervisor `kvm` for non-protected VMs during initialization, since\nwe trust the host with its non-protected guests' features. Also ensure\n`KVM_ARCH_FLAG_ID_REGS_INITIALIZED` is cleared initially in\n`pkvm_init_features_from_host` so that `vm_copy_id_regs` can properly\ninitialize them and set the flag once done.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nKVM: arm64: Corrección de la inicialización de registros ID para invitados pKVM no protegidos\n\nEn modo protegido, el hipervisor mantiene una instancia separada de la estructura 'kvm' para cada VM. Para VMs no protegidas, esta estructura se inicializa a partir del estado 'kvm' del host.\n\nActualmente, 'pkvm_init_features_from_host()' copia el flag 'KVM_ARCH_FLAG_ID_REGS_INITIALIZED' del host sin que los datos subyacentes de 'id_regs' se inicialicen. Esto resulta en que el hipervisor ve el flag como establecido mientras los registros ID permanecen a cero.\n\nConsecuentemente, las comprobaciones de 'kvm_has_feat()' en EL2 fallan (devuelven 0) para VMs no protegidas. Esto rompe la lógica que depende de la detección de características, como 'ctxt_has_tcrx()' para el soporte de TCR2_EL1. Como resultado, ciertos registros del sistema (p. ej., TCR2_EL1, PIR_EL1, POR_EL1) no se guardan/restauran durante el world switch, lo que podría llevar a la corrupción del estado.\n\nEsto se soluciona copiando explícitamente los registros ID del 'kvm' del host al 'kvm' del hipervisor para VMs no protegidas durante la inicialización, ya que confiamos en el host con las características de sus invitados no protegidos. También se debe asegurar que 'KVM_ARCH_FLAG_ID_REGS_INITIALIZED' se borre inicialmente en 'pkvm_init_features_from_host' para que 'vm_copy_id_regs' pueda inicializarlos correctamente y establecer el flag una vez terminado.","source":"nvd"}],"published":"2026-04-03T13:24:33.384Z","modified":"2026-08-05T12:21:39.120Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"41d6028e28bd474298ff10409c292ec46cf43a90","fixed":"bce3847f7c51b86332bf2e554c9e80ca3820f16c","status":"affected"},{"type":"git","introduced":"41d6028e28bd474298ff10409c292ec46cf43a90","fixed":"858620655c1fbff05997e162fc7d83a3293d5142","status":"affected"},{"type":"git","introduced":"41d6028e28bd474298ff10409c292ec46cf43a90","fixed":"7e7c2cf0024d89443a7af52e09e47b1fe634ab17","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.14","status":"unaffected"},{"type":"semver","introduced":"6.18.17","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.7","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.14.1","fixed":"6.18.17"},{"status":"affected","introduced":"6.19","fixed":"6.19.7"},{"status":"affected","version":"6.14"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/bce3847f7c51b86332bf2e554c9e80ca3820f16c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/858620655c1fbff05997e162fc7d83a3293d5142","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7e7c2cf0024d89443a7af52e09e47b1fe634ab17","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-23425","url":"https://www.cve.org/CVERecord?id=CVE-2026-23425","licence":"CVE Terms of Use","modified":"2026-08-05T12:21:39.120Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-23425","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23425","licence":"Public domain","modified":"2026-07-21T19:10:00.107Z"}],"updatedAt":"2026-11-25T22:59:17.866Z","epss":{"score":0.00138,"percentile":0.03409,"date":"2026-12-01T12:00:22.000Z"}}