CVE-2026-66021
QEMU vulnerability analysis and mitigation

Overview

CVE-2026-66021 is a vulnerability in QEMU's virtio-gpu component involving an out-of-bounds read and use-after-free–like condition triggered by a malicious guest. A guest can set an inflated, unvalidated blob_size value that exceeds the actual iov (I/O vector) backing buffer size, enabling creation of a pixman surface over an undersized buffer; a subsequent display refresh then reads past the allocation. The CVE is currently in Reserved status with no official CVSS score published, though Feedly estimates the severity as Medium (Feedly). The vulnerability was first indexed by Feedly on 2026-07-24, with a related QEMU commit appearing around 2026-05 and a Tenable plugin (ID 335365) published around 2026-08.

Technical details

The root cause is insufficient input validation (CWE-125: Out-of-bounds Read; CWE-416: Use After Free–like behavior) in QEMU's virtio-gpu blob handling path. When a guest submits a VIRTIO_GPU_CMD_RESOURCE_CREATE_BLOB or equivalent command, the blob_size field supplied by the guest is not validated against the actual size of the backing iov buffer. As a result, pixman_image_create_bits() (or equivalent) is called with a pointer to an undersized buffer, and when the host display subsystem later refreshes the framebuffer, it reads memory beyond the allocated region. Exploitation requires the attacker to control a guest VM running on the target QEMU host with virtio-gpu enabled. A fix commit is available in the QEMU upstream repository (QEMU Commit).

Impact

Successful exploitation can crash the QEMU process (denial of service to the affected VM and potentially co-located VMs sharing the host), or leak host memory contents to the malicious guest, compromising confidentiality of data belonging to the hypervisor or other guests. In cloud or multi-tenant virtualization environments, host memory disclosure could expose sensitive data from other tenants, making this a guest-to-host information disclosure and stability risk. Integrity impact is considered low, as the primary consequences are crash or read-only memory leakage rather than arbitrary write primitives (Feedly).

Exploitability

No public proof-of-concept exploit code has been confirmed beyond the upstream fix commit. The CVE remains in Reserved status, and there is no evidence of in-the-wild exploitation or threat actor attribution at this time. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. An EPSS score has not yet been published. A Tenable Nessus plugin (ID 335365) was released around 2026-08, indicating detection capability exists (Tenable, Feedly).

Exploitation steps

  1. Setup: Attacker controls a guest VM on a QEMU host with virtio-gpu enabled (e.g., using -device virtio-gpu-pci or -device virtio-vga).
  2. Craft malicious blob command: From within the guest, the attacker sends a VIRTIO_GPU_CMD_RESOURCE_CREATE_BLOB (or equivalent virtio-gpu command) with a blob_size value significantly larger than the actual iov buffer backing the resource.
  3. Trigger surface creation: QEMU processes the command without validating blob_size against the iov size, passing the inflated size to pixman_image_create_bits(), creating a pixman surface that references an undersized host buffer.
  4. Trigger out-of-bounds read: The attacker causes a display refresh (e.g., by updating the framebuffer from the guest), causing QEMU's display subsystem to read past the end of the allocated buffer.
  5. Achieve objective: Depending on host memory layout, this results in a QEMU crash (DoS) or leakage of adjacent host memory contents back to the guest (QEMU Commit).

Indicators of compromise

  • Process: QEMU process crash or segmentation fault (SIGSEGV) in the virtio-gpu or pixman display refresh code path; check host system logs for QEMU core dumps.
  • Logs: Host kernel logs (dmesg) showing QEMU process termination with signal 11 (SIGSEGV) or similar memory access violations; QEMU stderr output referencing pixman or virtio-gpu errors.
  • Network/Hypervisor: Unexpected guest VM resets or host-side QEMU process restarts without guest-initiated shutdown; anomalous virtio-gpu command sequences visible in QEMU debug logs if verbose logging is enabled.

Mitigation and workarounds

Apply the upstream QEMU fix available at commit 241095547a5d87ad6fa68cd674fe524e6596b958, which adds validation of blob_size against the actual iov backing buffer size before creating the pixman surface (QEMU Commit). Monitor your Linux distribution's QEMU package for backported security updates and apply them promptly. As a workaround where virtio-gpu is not required, disable it and use an alternative display device (e.g., -device VGA or -device cirrus-vga). Use Tenable Nessus plugin 335365 to detect vulnerable QEMU installations (Tenable).

Additional resources


SourceThis report was generated using AI

Related QEMU vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-6426MEDIUM4.4
  • QEMU logoQEMU
  • virt:rhel::qemu-kvm-block-rbd
NoNoAug 10, 2026
CVE-2026-66021NONEN/A
  • QEMU logoQEMU
  • qemu
NoNoAug 14, 2026
CVE-2026-63318NONEN/A
  • QEMU logoQEMU
  • qemu
NoNoAug 14, 2026
CVE-2026-50626NONEN/A
  • QEMU logoQEMU
  • qemu
NoNoAug 14, 2026
CVE-2026-16457NONEN/A
  • QEMU logoQEMU
  • qemu
NoNoAug 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management