# CVE-2026-23425: KVM: arm64: Fix ID register initialization for non-protected pKVM guests

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/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.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-04-03T13:24:33.384Z
- Modified: 2026-08-05T12:21:39.120Z
- Assigned by: Linux

## Description

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

KVM: arm64: Fix ID register initialization for non-protected pKVM guests

In protected mode, the hypervisor maintains a separate instance of
the `kvm` structure for each VM. For non-protected VMs, this structure is
initialized from the host's `kvm` state.

Currently, `pkvm_init_features_from_host()` copies the
`KVM_ARCH_FLAG_ID_REGS_INITIALIZED` flag from the host without the
underlying `id_regs` data being initialized. This results in the
hypervisor seeing the flag as set while the ID registers remain zeroed.

Consequently, `kvm_has_feat()` checks at EL2 fail (return 0) for
non-protected VMs. This breaks logic that relies on feature detection,
such as `ctxt_has_tcrx()` for TCR2_EL1 support. As a result, certain
system registers (e.g., TCR2_EL1, PIR_EL1, POR_EL1) are not
saved/restored during the world switch, which could lead to state
corruption.

Fix this by explicitly copying the ID registers from the host `kvm` to
the hypervisor `kvm` for non-protected VMs during initialization, since
we trust the host with its non-protected guests' features. Also ensure
`KVM_ARCH_FLAG_ID_REGS_INITIALIZED` is cleared initially in
`pkvm_init_features_from_host` so that `vm_copy_id_regs` can properly
initialize them and set the flag once done.

(As written by CVE List.)

## Affected

- Linux Linux: from 41d6028e28bd474298ff10409c292ec46cf43a90 before bce3847f7c51b86332bf2e554c9e80ca3820f16c; from 41d6028e28bd474298ff10409c292ec46cf43a90 before 858620655c1fbff05997e162fc7d83a3293d5142; from 41d6028e28bd474298ff10409c292ec46cf43a90 before 7e7c2cf0024d89443a7af52e09e47b1fe634ab17; 6.14 (not affected: before 6.14; from 6.18.17 up to 6.18.*; from 6.19.7 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.14.1 before 6.18.17; from 6.19 before 6.19.7; 6.14; 7.0

## Every score

- Linux: CVSS:3.1 8.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/bce3847f7c51b86332bf2e554c9e80ca3820f16c> (patch)
- <https://git.kernel.org/stable/c/858620655c1fbff05997e162fc7d83a3293d5142> (patch)
- <https://git.kernel.org/stable/c/7e7c2cf0024d89443a7af52e09e47b1fe634ab17> (patch)

## Sources

- CVE List: [CVE-2026-23425](https://www.cve.org/CVERecord?id=CVE-2026-23425), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2026-23425](https://nvd.nist.gov/vuln/detail/CVE-2026-23425), Public domain, modified 2026-07-21

---

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