]> git.ipfire.org Git - thirdparty/qemu.git/commit
usb/redir: avoid dynamic stack allocation (CVE-2021-3527)
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 3 May 2021 13:29:12 +0000 (15:29 +0200)
committerMichael Roth <michael.roth@amd.com>
Mon, 18 Oct 2021 01:19:33 +0000 (20:19 -0500)
commit606f618b3c1d517edaf145cd8648a9b5ae3fc941
treec9f9697aa6381eab835b7d0d99c8c213b27c4b72
parent36403e8788a264dc96174f52584681ebcb4f54b1
usb/redir: avoid dynamic stack allocation (CVE-2021-3527)

Use autofree heap allocation instead.

Fixes: 4f4321c11ff ("usb: use iovecs in USBPacket")
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210503132915.2335822-3-kraxel@redhat.com>
(cherry picked from commit 7ec54f9eb62b5d177e30eb8b1cad795a5f8d8986)
Signed-off-by: Michael Roth <michael.roth@amd.com>
hw/usb/redirect.c