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

> 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, NVD) `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.22% (percentile 7, 2026-11-26)
- **Published:** 2025-10-07T15:21:22.400Z
- **Modified:** 2026-11-05T21:17:31.000Z

## Who should check

- Anyone running Linux \>= 5228eb96a4875f8cf5d61d486e3795ac14df8904, \< 6c1ecfea1daf6e75c46e295aad99dfbafd878897; \>= 5228eb96a4875f8cf5d61d486e3795ac14df8904, \< 02b24270568f65dd607c4a848512dc8055b4491b; \>= 5228eb96a4875f8cf5d61d486e3795ac14df8904, \< 7cafe9b8e22bb3d77f130c461aedf6868c4aaf58
- Anyone running Linux 5.16

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

## Affected and fixed versions

- Linux: \>= 5228eb96a4875f8cf5d61d486e3795ac14df8904, \< 6c1ecfea1daf6e75c46e295aad99dfbafd878897; \>= 5228eb96a4875f8cf5d61d486e3795ac14df8904, \< 02b24270568f65dd607c4a848512dc8055b4491b; \>= 5228eb96a4875f8cf5d61d486e3795ac14df8904, \< 7cafe9b8e22bb3d77f130c461aedf6868c4aaf58 (cvelist)
- Linux: 5.16 (cvelist)

## Mitigation

- Upgrade Linux to 7cafe9b8e22bb3d77f130c461aedf6868c4aaf58 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-53663. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53663.md
Affected: Linux >= 5228eb96a4875f8cf5d61d486e3795ac14df8904, < 6c1ecfea1daf6e75c46e295aad99dfbafd878897; >= 5228eb96a4875f8cf5d61d486e3795ac14df8904, < 02b24270568f65dd607c4a848512dc8055b4491b; >= 5228eb96a4875f8cf5d61d486e3795ac14df8904, < 7cafe9b8e22bb3d77f130c461aedf6868c4aaf58; Linux 5.16
Fixed in: Linux 6c1ecfea1daf6e75c46e295aad99dfbafd878897, Linux 02b24270568f65dd607c4a848512dc8055b4491b, Linux 7cafe9b8e22bb3d77f130c461aedf6868c4aaf58

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-53663 being exploited?

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

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

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

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

Linux \>= 5228eb96a4875f8cf5d61d486e3795ac14df8904, \< 6c1ecfea1daf6e75c46e295aad99dfbafd878897; \>= 5228eb96a4875f8cf5d61d486e3795ac14df8904, \< 02b24270568f65dd607c4a848512dc8055b4491b; \>= 5228eb96a4875f8cf5d61d486e3795ac14df8904, \< 7cafe9b8e22bb3d77f130c461aedf6868c4aaf58; Linux 5.16.

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

Yes. Fixed in Linux 6c1ecfea1daf6e75c46e295aad99dfbafd878897, Linux 02b24270568f65dd607c4a848512dc8055b4491b, Linux 7cafe9b8e22bb3d77f130c461aedf6868c4aaf58. Upgrade Linux to 7cafe9b8e22bb3d77f130c461aedf6868c4aaf58 or later.

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

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/6c1ecfea1daf6e75c46e295aad99dfbafd878897>
- patch: <https://git.kernel.org/stable/c/02b24270568f65dd607c4a848512dc8055b4491b>
- patch: <https://git.kernel.org/stable/c/7cafe9b8e22bb3d77f130c461aedf6868c4aaf58>

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

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