hw/audio/intel-hda: Restrict DMA engine to memories (not MMIO devices)
commit79fa99831debc9782087e834382c577215f2f511
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Sat, 18 Dec 2021 16:09:11 +0000 (18 17:09 +0100)
committerThomas Huth <thuth@redhat.com>
Mon, 21 Mar 2022 09:24:51 +0000 (21 10:24 +0100)
tree71c6da4b9272efa4366169dc1853d500220fd2a4
parentbe5a8cf347d0c47ee3e933dde075526fd8bd5c40
hw/audio/intel-hda: Restrict DMA engine to memories (not MMIO devices)

Issue #542 reports a reentrancy problem when the DMA engine accesses
the HDA controller I/O registers. Fix by restricting the DMA engine
to memories regions (forbidding MMIO devices such the HDA controller).

Reported-by: OSS-Fuzz (Issue 28435)
Reported-by: Alexander Bulekov <alxndr@bu.edu>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/542
CVE: CVE-2021-3611
Message-Id: <20211218160912.1591633-3-philmd@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/audio/intel-hda.c