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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 8, 2026-11-26)
- **Published:** 2025-09-15T14:21:36.170Z
- **Modified:** 2026-06-17T06:44:30.507Z

## Who should check

- Anyone running Linux \>= 5228eb96a4875f8cf5d61d486e3795ac14df8904, \< 5b2b0535fa7adee7e295fed0a3095082131a8d05; \>= 5228eb96a4875f8cf5d61d486e3795ac14df8904, \< e91c07f6cf7060d2acb3aeee31a6baebe3773d3f; \>= 5228eb96a4875f8cf5d61d486e3795ac14df8904, \< 0c94e2468491cbf0754f49a5136ab51294a96b69
- Anyone running Linux 5.16

## 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.

## Affected and fixed versions

- Linux: \>= 5228eb96a4875f8cf5d61d486e3795ac14df8904, \< 5b2b0535fa7adee7e295fed0a3095082131a8d05; \>= 5228eb96a4875f8cf5d61d486e3795ac14df8904, \< e91c07f6cf7060d2acb3aeee31a6baebe3773d3f; \>= 5228eb96a4875f8cf5d61d486e3795ac14df8904, \< 0c94e2468491cbf0754f49a5136ab51294a96b69 (cvelist)
- Linux: 5.16 (cvelist)

## Mitigation

- Upgrade Linux to 0c94e2468491cbf0754f49a5136ab51294a96b69 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53208. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53208.md
Affected: Linux >= 5228eb96a4875f8cf5d61d486e3795ac14df8904, < 5b2b0535fa7adee7e295fed0a3095082131a8d05; >= 5228eb96a4875f8cf5d61d486e3795ac14df8904, < e91c07f6cf7060d2acb3aeee31a6baebe3773d3f; >= 5228eb96a4875f8cf5d61d486e3795ac14df8904, < 0c94e2468491cbf0754f49a5136ab51294a96b69; Linux 5.16
Fixed in: Linux 5b2b0535fa7adee7e295fed0a3095082131a8d05, Linux 0c94e2468491cbf0754f49a5136ab51294a96b69

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53208 being exploited?

There is no confirmed exploitation: CVE-2023-53208 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53208?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53208?

Linux \>= 5228eb96a4875f8cf5d61d486e3795ac14df8904, \< 5b2b0535fa7adee7e295fed0a3095082131a8d05; \>= 5228eb96a4875f8cf5d61d486e3795ac14df8904, \< e91c07f6cf7060d2acb3aeee31a6baebe3773d3f; \>= 5228eb96a4875f8cf5d61d486e3795ac14df8904, \< 0c94e2468491cbf0754f49a5136ab51294a96b69; Linux 5.16.

### Is there a fix for CVE-2023-53208?

Yes. Fixed in Linux 5b2b0535fa7adee7e295fed0a3095082131a8d05, Linux 0c94e2468491cbf0754f49a5136ab51294a96b69. Upgrade Linux to 0c94e2468491cbf0754f49a5136ab51294a96b69 or later.

### How do I check if I'm affected by CVE-2023-53208?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/5b2b0535fa7adee7e295fed0a3095082131a8d05>
- patch: <https://git.kernel.org/stable/c/e91c07f6cf7060d2acb3aeee31a6baebe3773d3f>
- patch: <https://git.kernel.org/stable/c/0c94e2468491cbf0754f49a5136ab51294a96b69>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53208>

HTML: <https://flawdb.com/CVE-2023-53208> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53208>
