]> xenbits.xensource.com Git - qemu-xen.git/commit
ati-vga: check mm_index before recursive call (CVE-2020-13800)
authorPrasad J Pandit <pjp@fedoraproject.org>
Thu, 4 Jun 2020 09:08:30 +0000 (14:38 +0530)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 25 Aug 2020 00:11:52 +0000 (19:11 -0500)
commit387a3ac89d5cc821c4064295122dc3183b6aca69
tree137cabd74fb075f8b2de0374dc72d5d50faab0a2
parentcb84d9d353d40dbcd02fd8ff2c83971ecac0e65b
ati-vga: check mm_index before recursive call (CVE-2020-13800)

While accessing VGA registers via ati_mm_read/write routines,
a guest may set 's->regs.mm_index' such that it leads to infinite
recursion. Check mm_index value to avoid such recursion. Log an
error message for wrong values.

Reported-by: Ren Ding <rding@gatech.edu>
Reported-by: Hanqing Zhao <hanqing@gatech.edu>
Reported-by: Yi Ren <c4tren@gmail.com>
Message-id: 20200604090830.33885-1-ppandit@redhat.com
Suggested-by: BALATON Zoltan <balaton@eik.bme.hu>
Suggested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit a98610c429d52db0937c1e48659428929835c455)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/display/ati.c