{"id":"CVE-2026-45987","summary":"KVM: nSVM: Sync interrupt shadow to cached vmcb12 after VMRUN of L2","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: nSVM: Sync interrupt shadow to cached vmcb12 after VMRUN of L2\n\nAfter VMRUN in guest mode, nested_sync_control_from_vmcb02() syncs\nfields written by the CPU from vmcb02 to the cached vmcb12. This is\nbecause the cached vmcb12 is used as the authoritative copy of some of\nthe controls, and is the payload when saving/restoring nested state.\n\nint_state is also written by the CPU, specifically bit 0 (i.e.\nSVM_INTERRUPT_SHADOW_MASK) for nested VMs, but it is not sync'd to\ncached vmcb12. This does not cause a problem if KVM_SET_NESTED_STATE\npreceeds KVM_SET_VCPU_EVENTS in the restore path, as an interrupt shadow\nwould be correctly restored to vmcb02 (KVM_SET_VCPU_EVENTS overwrites\nwhat KVM_SET_NESTED_STATE restored in int_state).\n\nHowever, if KVM_SET_VCPU_EVENTS preceeds KVM_SET_NESTED_STATE, an\ninterrupt shadow would be restored into vmcb01 instead of vmcb02. This\nwould mostly be benign for L1 (delays an interrupt), but not for L2. For\nL2, the vCPU could hang (e.g. if a wakeup interrupt is delivered before\na HLT that should have been in an interrupt shadow).\n\nSync int_state to the cached vmcb12 in nested_sync_control_from_vmcb02()\nto avoid this problem. With that, KVM_SET_NESTED_STATE restores the\ncorrect interrupt shadow state, and if KVM_SET_VCPU_EVENTS follows it\nwould overwrite it with the same value.","modified":"2026-06-05T18:29:37.539294207Z","published":"2026-05-27T12:55:38.653Z","related":["openSUSE-SU-2026:10954-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45987.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/03bee264f8ebfd39e0254c98e112d033a7aa9055"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0c1f74d8b74d8a31751fb6ea5417e48e02c93b58"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1709418535a8df95532999d61b03d59975280258"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2f950eeb27af6885416232761700b8820cae0a61"},{"type":"WEB","url":"https://git.kernel.org/stable/c/497f6af9679fc9c6ce2f438e11ed5d51b1aa8297"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4b44aa1a134e499c4517597118378b308602a16c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e0377e52f3c10ee572732d11b04625b7f517a862"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e39a77a9b1e17d2d831c304eafac4c41a784a0be"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45987.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45987"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"cc440cdad5b7a4c1de12dace725209eb3e0cf663"},{"fixed":"0c1f74d8b74d8a31751fb6ea5417e48e02c93b58"},{"fixed":"4b44aa1a134e499c4517597118378b308602a16c"},{"fixed":"e39a77a9b1e17d2d831c304eafac4c41a784a0be"},{"fixed":"1709418535a8df95532999d61b03d59975280258"},{"fixed":"2f950eeb27af6885416232761700b8820cae0a61"},{"fixed":"497f6af9679fc9c6ce2f438e11ed5d51b1aa8297"},{"fixed":"e0377e52f3c10ee572732d11b04625b7f517a862"},{"fixed":"03bee264f8ebfd39e0254c98e112d033a7aa9055"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-45987.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.8.0"},{"fixed":"5.10.258"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.209"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.175"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.140"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.86"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.27"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.0.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-45987.json"}}],"schema_version":"1.7.5"}