]> git.ipfire.org Git - thirdparty/qemu.git/commit
pl022: fix buffer overun on invalid state load
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 3 Apr 2014 16:51:35 +0000 (19:51 +0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 21 Jul 2014 03:05:54 +0000 (22:05 -0500)
commit7cf5f5d087e3c46a5d60081443bc42b7c6f3ba1e
treeb7d0fbe2872db36a1c4df7d9c51ecdd45e44543f
parentf7ef3baa4950bbcad9a54c100313fb071908ff5b
pl022: fix buffer overun on invalid state load

CVE-2013-4530

pl022.c did not bounds check tx_fifo_head and
rx_fifo_head after loading them from file and
before they are used to dereference array.

Reported-by: Michael S. Tsirkin <mst@redhat.com
Reported-by: Anthony Liguori <anthony@codemonkey.ws>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
(cherry picked from commit d8d0a0bc7e194300e53a346d25fe5724fd588387)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/ssi/pl022.c