QEMU Xen emulation patches close six guest-to-host flaws
David Woodhouse sent fixes for heap overwrite, use-after-free and out-of-bounds reads, and said the diagnosis and the code were produced by AI under his direction.
David Woodhouse has posted a 21-patch series for QEMU's KVM Xen support that closes a backlog of guest-triggerable bugs in the emulated Xen backends, including six assigned CVEs. A malicious guest using that emulation can corrupt QEMU's heap, touch freed CPU state, or read past mapped buffers. One of the identifiers is a duplicate of another.
The serious cases, as Woodhouse described them: CVE-2026-61403 lets a guest split a xenstore request header so the next length calculation underflows, producing a guest-controlled linear heap overwrite. CVE-2026-123069 leaves per-vCPU Xen timers alive after the vCPU is ejected over ACPI, so a later callback uses a freed CPU state object. CVE-2026-123070 is an out-of-bounds read: end-of-interrupt and IRQ status queries index the PIRQ tables with no bounds check. CVE-2026-123071 is an underflow in the Xen console when the frontend sets a small output limit, writing up to about 2 KiB of guest-controlled data before the buffer. CVE-2026-123072 lets the 9p backend re-read ring indices after it has already validated a request, so the resulting I/O vectors can reach up to 1 MiB past the ring mapping and the overrun can be disclosed with a write. CVE-2026-123074 rejects grant-copy segments that run past a granted page, matching Xen's own check. Woodhouse said he does not believe that last one is reachable from a guest in tree, because the block backend already bounds its segments, and that CVE-2026-123073 is simply a duplicate of CVE-2026-61403.
The rest of the series is robustness rather than assigned vulnerabilities: leaks of grant-table and event-channel handles across guest soft reset and 9p disconnect, a xenstore directory listing that returned the wrong slice for a non-zero offset, a network backend that would walk a bogus producer index while holding the big QEMU lock, and an I/O request count that could spin a vCPU thread through four billion iterations. Two Coverity findings, reported by Peter Maydell, are included: a lock that did not cover both the check and the allocation of a PIRQ binding, and an MSI unmap path that could never run, so a guest could not unmap an emulated MSI.
Woodhouse, who maintains this code, was blunt about how the series was produced. "The fixes here were diagnosed by AI, fixed by AI, the commit messages written by AI, and all the testing done by AI," he wrote, adding that further bugs he would not have found by hand were fixed the same way, all under his direction. He said he had hoped QEMU would adopt a policy on AI-written patches first, and that he would not reimplement the work himself. Hui Peng is credited as the reporter on most of the issues.