# CVE-2023-53663: KVM: nSVM: Check instead of asserting on nested TSC scaling support

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2025-10-07T15:21:22.400Z
- Modified: 2026-11-05T21:17:31.000Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

KVM: nSVM: Check instead of asserting on nested TSC scaling support

Check for nested TSC scaling support on nested SVM VMRUN instead of
asserting that TSC scaling is exposed to L1 if L1's MSR_AMD64_TSC_RATIO
has diverged from KVM's default.  Userspace can trigger the WARN at will
by writing the MSR and then updating guest CPUID to hide the feature
(modifying guest CPUID is allowed anytime before KVM_RUN).  E.g. hacking
KVM's state_test selftest to do

		vcpu_set_msr(vcpu, MSR_AMD64_TSC_RATIO, 0);
		vcpu_clear_cpuid_feature(vcpu, X86_FEATURE_TSCRATEMSR);

after restoring state in a new VM+vCPU yields an endless supply of:

  ------------[ cut here ]------------
  WARNING: CPU: 164 PID: 62565 at arch/x86/kvm/svm/nested.c:699
           nested_vmcb02_prepare_control+0x3d6/0x3f0 [kvm_amd]
  Call Trace:
   <TASK>
   enter_svm_guest_mode+0x114/0x560 [kvm_amd]
   nested_svm_vmrun+0x260/0x330 [kvm_amd]
   vmrun_interception+0x29/0x30 [kvm_amd]
   svm_invoke_exit_handler+0x35/0x100 [kvm_amd]
   svm_handle_exit+0xe7/0x180 [kvm_amd]
   kvm_arch_vcpu_ioctl_run+0x1eab/0x2570 [kvm]
   kvm_vcpu_ioctl+0x4c9/0x5b0 [kvm]
   __se_sys_ioctl+0x7a/0xc0
   __x64_sys_ioctl+0x21/0x30
   do_syscall_64+0x41/0x90
   entry_SYSCALL_64_after_hwframe+0x63/0xcd
  RIP: 0033:0x45ca1b

Note, the nested #VMEXIT path has the same flaw, but needs a different
fix and will be handled separately.

(As written by CVE List.)

## Affected

- Linux Linux: from 5228eb96a4875f8cf5d61d486e3795ac14df8904 before 6c1ecfea1daf6e75c46e295aad99dfbafd878897; from 5228eb96a4875f8cf5d61d486e3795ac14df8904 before 02b24270568f65dd607c4a848512dc8055b4491b; from 5228eb96a4875f8cf5d61d486e3795ac14df8904 before 7cafe9b8e22bb3d77f130c461aedf6868c4aaf58; 5.16 (not affected: before 5.16; from 6.1.54 up to 6.1.*; from 6.5.4 up to 6.5.*; from 6.6 up to *)
- linux linux_kernel: from 5.16 before 6.1.54; from 6.2 before 6.5.4

## References

- <https://git.kernel.org/stable/c/6c1ecfea1daf6e75c46e295aad99dfbafd878897> (patch)
- <https://git.kernel.org/stable/c/02b24270568f65dd607c4a848512dc8055b4491b> (patch)
- <https://git.kernel.org/stable/c/7cafe9b8e22bb3d77f130c461aedf6868c4aaf58> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2023-53663 · Whole record: https://cve.day/CVE-2023-53663.json · Rebuilt by cve.day 2026-11-25T22:58:34.992Z
