CVE-2026-3842
QEMU vulnerability analysis and mitigation

Overview

CVE-2026-3842 is an out-of-bounds write vulnerability in QEMU's Hyper-V synthetic debugger (hyperv/syndbg) subsystem. The flaw arises when cpu_physical_memory_map() returns a shorter mapped length than requested, and the code proceeds to write the full expected number of bytes without checking the actual mapped length, causing a write beyond the allocated guest memory or into a heap-allocated MMIO bounce buffer. Affected versions span QEMU 7.1.0 through 10.x (fixed in 11.0.0); Microsoft's Azure Linux 3 package azl3_qemu_9.1.0-10 is also listed as vulnerable. The vulnerability was initially reported on March 9, 2026, and publicly disclosed on July 16, 2026. It carries a CVSS v3.1 base score of 7.8 (High) (Github Advisory, Red Hat Bugzilla).

Technical details

The root cause is classified as CWE-787 (Out-of-bounds Write). In QEMU's Hyper-V synthetic debugger implementation, after calling cpu_physical_memory_map() to map guest physical memory, the code fails to validate whether the returned mapped length is shorter than the requested out_len. If the mapping is partial — which can occur at page boundaries or with MMIO regions — the subsequent write of out_len bytes overflows the mapped region, either accessing memory beyond the guest's allocation or corrupting a heap-allocated MMIO bounce buffer on the host. The upstream fix is available at the QEMU GitLab repository (commit 4f28b87fdd24df2049626106b7c24d0180952115). Exploitation requires low-privileged local access within a guest VM with Hyper-V enlightenments enabled (Red Hat Bugzilla, Github Advisory).

Impact

Successful exploitation by a low-privileged attacker inside a guest virtual machine can result in unauthorized read access to guest memory regions, corruption of heap-allocated objects in the QEMU host process, information disclosure, data integrity violations, or a denial of service (guest or host crash). The scope is marked unchanged, meaning the primary impact is confined to the QEMU process and the guest VM, though heap corruption on the host could potentially be leveraged for further privilege escalation within the host environment. All three CIA pillars are rated High (Github Advisory, Red Hat Bugzilla).

Exploitation steps

  1. Precondition: Obtain low-privileged local access to a guest VM running on a vulnerable QEMU version (7.1.0–10.x) with Hyper-V enlightenments and the synthetic debugger (syndbg) interface enabled by the host configuration.
  2. Trigger partial memory mapping: From within the guest, craft a Hyper-V synthetic debugger request that targets a guest physical address range spanning a page boundary or an MMIO region, causing cpu_physical_memory_map() on the host to return a mapped length shorter than the requested length.
  3. Induce out-of-bounds write: Because QEMU does not validate the returned mapped length against out_len, it proceeds to write the full out_len bytes into the shorter mapped buffer, overflowing into adjacent guest memory or corrupting the MMIO bounce buffer on the host heap.
  4. Achieve objective: Depending on heap layout, the attacker may read adjacent memory contents (information disclosure), corrupt QEMU internal data structures (integrity impact), or trigger a crash of the QEMU process (denial of service) (Red Hat Bugzilla, Github Advisory).

Indicators of compromise

  • Process: Unexpected crashes or segmentation faults in the QEMU process (qemu-kvm, qemu-system-*) on the host, particularly with stack traces referencing Hyper-V syndbg or cpu_physical_memory_map code paths.
  • Logs: Host-side QEMU error logs showing memory mapping failures or assertion errors in the hyperv/syndbg subsystem; guest OS logs showing abnormal Hyper-V debugger interface activity.
  • File System: Core dump files generated by a crashed QEMU process in /var/crash/ or the working directory of the QEMU process, which may indicate exploitation attempts.
  • Network: In multi-tenant cloud environments, unexpected VM resets or host-level alerts from hypervisor monitoring tools following unusual guest Hyper-V interface activity.

Mitigation and workarounds

The upstream QEMU fix is available in commit 4f28b87fdd24df2049626106b7c24d0180952115 and is included in QEMU 11.0.0 and later. Downstream distributions including Ubuntu (USN-8161-1), SUSE (SUSE-SU-202621883-1, SUSE-SU-20262386-1), and Debian (Debian 13.6) have released updated packages incorporating this fix. As a workaround where patching is not immediately possible, disable Hyper-V enlightenments (specifically the synthetic debugger interface) in QEMU VM configurations, and restrict guest VM access to trusted users only. Prioritize patching in multi-tenant environments where untrusted workloads run as guests (Ubuntu Advisory, SUSE Advisory, Red Hat Bugzilla).

Community reactions

Red Hat classified the vulnerability as "Important" severity in their CSAF VEX document and tracked it via Bugzilla. Multiple Linux distributions including Ubuntu, SUSE, openSUSE, and Debian issued security advisories and updated packages. The Yocto Project security mailing list also flagged the issue for embedded Linux maintainers. No notable independent researcher commentary or significant social media discussion has been identified beyond standard vulnerability aggregator coverage (Ubuntu Advisory, SUSE Advisory).

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-3842HIGH7.8
  • QEMU logoQEMU
  • qemu-hw-usb-redirect
NoYesJul 16, 2026
CVE-2026-12080HIGH7.3
  • QEMU logoQEMU
  • qemu-kvm-core
NoNoJul 20, 2026
CVE-2026-3886NONEN/A
  • QEMU logoQEMU
  • qemu-hw-usb-smartcard
NoYesJul 09, 2026
CVE-2026-8343NONEN/A
  • QEMU logoQEMU
  • qemu-kvm-core
NoYesJun 29, 2026
CVE-2026-6425NONEN/A
  • QEMU logoQEMU
  • qemu
NoYesJun 29, 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