Cloudanix VulnDB

CVE-2026-63940

Critical · 9.3

CVSS

9.3

EPSS

0.2%

Published

Jul 19, 2026

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A flaw in some Linux virtualization hosts could let a malicious virtual machine crash or potentially break out of its isolation if the host is not updated.

Exploitation
Local Privilege
Attacker needs
Local User
Complexity
Low
Impact
Privilege Gain
Component
OS kernel
Class
Improper Input Validation
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

This is an improper input validation flaw in the Linux kernel KVM AMD SEV handling path. A Port I/O request with a zero length or zero count was not explicitly rejected or ignored, allowing internal length calculations used for scratch-area setup to underflow. In vulnerable kernels, a maliciously crafted KVM/SEV guest interaction could potentially cause incorrect memory handling in the host kernel, leading to kernel crash, memory corruption, information disclosure, or privilege escalation across the virtualization boundary. The CVSS vector indicates local attack requirements but high confidentiality, integrity, and availability impact with scope change.

Why it matters to the business

Organizations running Linux hosts that provide KVM virtualization with AMD SEV are exposed to a high-impact host kernel risk: a malicious or compromised local workload or guest could potentially destabilize the hypervisor host or cross an isolation boundary. In operational terms, this can mean VM outages, host crashes, loss of tenant or workload isolation, emergency maintenance on virtualization infrastructure, and potential exposure or tampering of sensitive data. Although EPSS is currently low and there is no known CISA KEV listing or reported ransomware use, the high CVSS score and virtualization-boundary impact make remediation important for affected kernel deployments.

How an attack unfolds

An attacker first needs local execution in a context that can influence KVM/SEV guest behavior, such as control of a guest VM, the ability to launch a KVM VM, or execution inside a compromised SEV-enabled guest. The attacker then crafts guest activity that causes a Port I/O exit with a length or count value of zero. On a vulnerable host kernel, the KVM SEV handling code fails to explicitly ignore this invalid zero-length request and may perform calculations that underflow while preparing the software scratch area. Depending on kernel configuration and surrounding memory state, this can result in a host kernel warning, crash, memory corruption, or potentially a path toward host-level privilege escalation or cross-VM information exposure. No public exploit maturity is reported, so exploitation should be treated as plausible but not currently commoditized.

How to fix it

Upgrade the Linux kernel to a version that includes the upstream fix for CVE-2026-63940, which explicitly ignores zero-length or zero-count Port I/O requests in the KVM SEV path. Because no exact package versions were provided, use the fixed kernel packages from the relevant Linux distribution or vendor advisory and prioritize virtualization hosts with AMD SEV and KVM enabled. If immediate patching is not possible, reduce exposure by disabling AMD SEV where not required, limiting who can create or control KVM guests, restricting local access to virtualization hosts, and moving untrusted workloads away from potentially vulnerable hosts until maintenance can be completed. Reboot into the patched kernel after installation; installing kernel packages alone is not sufficient if the host continues running the vulnerable kernel.

How to confirm the fix worked

Confirm remediation by verifying that each virtualization host is running a patched kernel, not merely that the package is installed. Check the active kernel with commands such as `uname -r` and compare it against the distribution vendor's fixed version for this issue. Validate that KVM modules were reloaded through a reboot or controlled host maintenance. Review whether AMD SEV is enabled by checking CPU/kernel capabilities and KVM module status where applicable. Where source-based validation is used, confirm that the KVM SEV code path explicitly ignores Port I/O requests when length or count is zero. Exposure is highest on systems with `/dev/kvm` accessible to users or services that can create VMs, especially AMD SEV-capable hosts.

Typical attack path

  1. Obtain local code execution in a guest or local context capable of interacting with KVM/SEV.
  2. Identify that the host is running a vulnerable Linux kernel with KVM AMD SEV support enabled or available.
  3. Craft guest-side behavior that triggers a Port I/O request with zero length or zero count.
  4. Cause the vulnerable KVM SEV handling path to process the malformed request.
  5. Trigger underflow or incorrect scratch-area handling in the host kernel.
  6. Leverage the resulting condition for denial of service, memory corruption, information disclosure, or possible host privilege escalation.

How to detect it

There are no public, reliable indicators of exploitation for this issue, and successful exploitation may leave only generic host-kernel artifacts. Review kernel logs, system journals, hypervisor logs, crash dumps, and monitoring alerts from KVM hosts for unexplained kernel WARN/Oops/panic events involving KVM, AMD SVM, SEV, GHCB, or Port I/O handling. Focus on events that coincide with guest activity, VM starts, VM crashes, or unexpected host reboots. Investigate any host crash dumps for stack traces involving KVM AMD modules such as `kvm_amd`, SEV handling, GHCB handling, or scratch-area setup. Also review access logs and audit data for unexpected users or processes opening `/dev/kvm`, creating VMs, or running QEMU/KVM processes shortly before a kernel fault. Because exploit maturity is reported as none and EPSS is low, absence of these artifacts does not prove safety, but their presence should trigger forensic review and patch validation.

  • /dev/kvm
  • kvm_amd
  • KVM: SEV
  • SEV
  • GHCB
  • Port I/O
  • length '0'
  • count '0'
  • len==0
  • WARNING: CPU:
  • BUG: kernel
  • kernel panic
  • Oops:
  • qemu-system-x86_64
  • svm

What your security team should do

  • Prioritize patching AMD SEV-capable KVM virtualization hosts, especially those running untrusted or multi-tenant workloads.
  • Identify all Linux systems with KVM enabled and determine which are AMD SEV-capable or actively using SEV-backed guests.
  • Confirm that kernel updates are followed by host reboots into the fixed kernel.
  • Restrict access to `/dev/kvm` and VM creation privileges to trusted administrators and controlled services only.
  • Temporarily disable AMD SEV or avoid scheduling untrusted guests on affected hosts if patching must be delayed.
  • Monitor kernel logs and hypervisor telemetry for KVM, SEV, WARN, Oops, panic, or unexpected host reset events around guest Port I/O activity.
  • Because EPSS is currently low and no KEV listing exists, treat this as a high-impact infrastructure hardening priority rather than evidence of active mass exploitation.

The record

In the Linux kernel, the following vulnerability has been resolved: KVM: SEV: Ignore Port I/O requests of length '0' Explicitly ignore Port I/O requests of length '0' (or count '0'), so that setting up the software scratch area (and other code) doesn't have to worry about underflowing the length, and to allow for WARNing on trying to configure the scratch area with len==0.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities