On Mon, 19 Oct 2026 at 17:11, [email protected] wrote:
> The clipboard "Release" D-Bus method handler passes the caller provided
> selection to qemu_clipboard_peer_release() without any bounds check,
> unlike the "Grab" and "Request" handlers.
>
> An out-of-range selection reaches qemu_clipboard_info(), which asserts
> selection < QEMU_CLIPBOARD_SELECTION__COUNT and aborts QEMU.
>
> Reject invalid selections with an error, following the same pattern as
> the other clipboard handlers.
>
> Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/4717
> Signed-off-by: Marc-AndrĂ© Lureau <[email protected]>

With this patch, Release(3) from the reproducer in the issue returns an
error and QEMU keeps running. Tested on an x86_64 host with
qemu-system-x86_64 -machine q35,accel=tcg -display dbus,gl=off.

Tested-by: Karl Mehltretter <[email protected]>

Karl

Reply via email to