# CVE-2023-53208: KVM: nSVM: Load L1's TSC multiplier based on L1 state, not L2 state

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `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.23%, higher than 8% of CVEs (2026-11-30)
- Published: 2025-09-15T14:21:36.170Z
- Modified: 2026-06-17T06:44:30.507Z
- 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: Load L1's TSC multiplier based on L1 state, not L2 state

When emulating nested VM-Exit, load L1's TSC multiplier if L1's desired
ratio doesn't match the current ratio, not if the ratio L1 is using for
L2 diverges from the default.  Functionally, the end result is the same
as KVM will run L2 with L1's multiplier if L2's multiplier is the default,
i.e. checking that L1's multiplier is loaded is equivalent to checking if
L2 has a non-default multiplier.

However, the assertion that TSC scaling is exposed to L1 is flawed, as
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: 10 PID: 206939 at arch/x86/kvm/svm/nested.c:1105
           nested_svm_vmexit+0x6af/0x720 [kvm_amd]
  Call Trace:
   nested_svm_exit_handled+0x102/0x1f0 [kvm_amd]
   svm_handle_exit+0xb9/0x180 [kvm_amd]
   kvm_arch_vcpu_ioctl_run+0x1eab/0x2570 [kvm]
   kvm_vcpu_ioctl+0x4c9/0x5b0 [kvm]
   ? trace_hardirqs_off+0x4d/0xa0
   __se_sys_ioctl+0x7a/0xc0
   __x64_sys_ioctl+0x21/0x30
   do_syscall_64+0x41/0x90
   entry_SYSCALL_64_after_hwframe+0x63/0xcd

Unlike the nested VMRUN path, hoisting the svm->tsc_scaling_enabled check
into the if-statement is wrong as KVM needs to ensure L1's multiplier is
loaded in the above scenario.   Alternatively, the WARN_ON() could simply
be deleted, but that would make KVM's behavior even more subtle, e.g. it's
not immediately obvious why it's safe to write MSR_AMD64_TSC_RATIO when
checking only tsc_ratio_msr.

(As written by CVE List.)

## Affected

- Linux Linux: from 5228eb96a4875f8cf5d61d486e3795ac14df8904 before 5b2b0535fa7adee7e295fed0a3095082131a8d05; from 5228eb96a4875f8cf5d61d486e3795ac14df8904 before e91c07f6cf7060d2acb3aeee31a6baebe3773d3f; from 5228eb96a4875f8cf5d61d486e3795ac14df8904 before 0c94e2468491cbf0754f49a5136ab51294a96b69; 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

## Every score

- CISA-ADP: 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`
- 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/5b2b0535fa7adee7e295fed0a3095082131a8d05> (patch)
- <https://git.kernel.org/stable/c/e91c07f6cf7060d2acb3aeee31a6baebe3773d3f> (patch)
- <https://git.kernel.org/stable/c/0c94e2468491cbf0754f49a5136ab51294a96b69> (patch)

## Sources

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

---

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