Files
qemu-reims-vgpu/chardev
Marc-André Lureau 919711cab2 chardev/char: fix use-after-free on mux creation failure
When mux creation fails, object_unparent() drops the last reference
on the base chardev, but 'base' was left dangling. The 'out' label
then passes it to qemu_chardev_set_replay(), causing a
use-after-free.

Set base to NULL after unparent so the replay path is skipped.

Reported-by: Hui Peng <benquike@gmail.com>
Fixes: 4c193bb129 ("chardev: set record/replay on the base device of a muxed device")
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20261004-issue-4560-v1-23-ccbef537cbeb@redhat.com>
2026-10-13 17:22:49 +04:00
..
2026-02-13 10:45:07 +01:00
2026-10-13 17:22:48 +04:00
2026-03-06 09:43:19 +00:00