Virtuozzo QEMU development (svt-core@virtuozzo.com)
 help / color / mirror / Atom feed
From: no-reply@sashiko.virtuozzo.com
To: andrey.drobyshev@virtuozzo.com, "Denis V. Lunev" <den@openvz.org>
Cc: svt-core@virtuozzo.com, den@openvz.org
Subject: Re: [PATCH hci-8.1 3/3] hw/usb/hcd-xhci: More reentrancy guard fixes for the XHCI code #VSTOR-151666
Date: Mon, 26 Oct 2026 11:53:29 +0000	[thread overview]
Message-ID: <010701a1780ef9e3-67730ea4-6c14-4461-ac86-d6630049357f-000000@eu-central-1.amazonses.com> (raw)
In-Reply-To: <20261026114645.187003-4-den@openvz.org>

> From: Thomas Huth <thuth@redhat.com>
> 
> The XHCI controller's USB port and bus callbacks -- xhci_complete(),
> xhci_wakeup_endpoint(), xhci_attach(), xhci_detach(), and
> xhci_wakeup() -- can be invoked from outside any MMIO handler context.
> The device's mem_reentrancy_guard is therefore not engaged during
> this processing.
> 
> A malicious guest can exploit this gap via MSI-X self-targeting: it
> programs the MSI-X vector's message address to point at the XHCI
> doorbell register array (both reside in the same BAR0 MemoryRegion).
> When any of these callbacks posts an event via xhci_event() ->
> xhci_intr_raise(), the resulting msix_notify() -> pci_msi_trigger()
> issues an address_space_stl_le() that writes doorbell 0, triggering
> xhci_process_commands() reentrantly. A CR_DISABLE_SLOT command
> [ ... ]
> Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/4625
> Reported-by: Ken Hsu, Royce Lu, and Bo Qu of Palo Alto Networks
> Buglink: https://gitlab.com/qemu-project/qemu/-/work_items/4642
> Reported-by: Nikhil Agrawal <nikhil.agrawal@mettlelabs.ai>
> Signed-off-by: Thomas Huth <thuth@redhat.com>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261026114645.187003-1-den@openvz.org?part=3


  reply	other threads:[~2026-10-26 11:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-26 11:46 [PATCH hci-8.1 0/3] hw/usb/hcd-xhci: fix guest-triggerable use-after-free (CVE-2026-17588, CVE-2026-111819) #VSTOR-151666 Denis V. Lunev
2026-10-26 11:46 ` [PATCH hci-8.1 1/3] hw/usb/hcd-xhci: Set reentrancy guard in timer functions (CVE-2026-17588) #VSTOR-151666 Denis V. Lunev
2026-10-26 11:51   ` no-reply
2026-10-26 11:46 ` [PATCH hci-8.1 2/3] hw/usb/hcd-xhci: Limit DMA transfers to plain memory #VSTOR-151666 Denis V. Lunev
2026-10-26 11:50   ` no-reply
2026-10-26 11:46 ` [PATCH hci-8.1 3/3] hw/usb/hcd-xhci: More reentrancy guard fixes for the XHCI code #VSTOR-151666 Denis V. Lunev
2026-10-26 11:53   ` no-reply [this message]
2026-10-26 16:13 ` [PATCH hci-8.1 0/3] hw/usb/hcd-xhci: fix guest-triggerable use-after-free (CVE-2026-17588, CVE-2026-111819) #VSTOR-151666 Andrey Drobyshev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=010701a1780ef9e3-67730ea4-6c14-4461-ac86-d6630049357f-000000@eu-central-1.amazonses.com \
    --to=no-reply@sashiko.virtuozzo.com \
    --cc=andrey.drobyshev@virtuozzo.com \
    --cc=den@openvz.org \
    --cc=svt-core@virtuozzo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox