freenode
Databases & Infrastructure

QEMU xHCI bug lets a guest read host stack memory

CVE-2026-144984 lets a mismatched USB transfer on xHCI disclose uninitialized QEMU process memory, including a pointer that defeats ASLR.

A guest using QEMU's xHCI USB controller can force an inbound data transfer onto an outbound endpoint and read uninitialized memory from the QEMU process, including a live image pointer that defeats address-space layout randomization. Octane Security reported the flaw, tracked as CVE-2026-144984; Shubham Antil posted the fix, which Peter Maydell reviewed and applied.

A non-control USB endpoint is one-way. Other host controllers in QEMU take the transfer direction and the endpoint object from the same source, so they cannot disagree. xHCI does not. It takes the direction from the endpoint type and picks the endpoint object from the identifier's parity, and never checks that the two match. A guest can therefore set an IN type on an even, OUT identifier, such as the command pipe of the USB attached SCSI device, post an IN transfer, and ring the doorbell. The resulting packet is handed to an OUT handler.

Device models that copy a local buffer to the guest as their first action then disclose host stack. Both the USB attached SCSI model and the media transfer protocol model are reachable that way; any later device with the same shape would be too.

The fix sits in the USB core, where every controller's transfers meet, and rejects a non-control transfer whose direction does not match the endpoint. Other controllers already keep the two in agreement, so the check changes nothing for them. On xHCI the mismatch is reported as a guest error and the transfer is stalled, rather than aborting QEMU.