]> 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>
Thu, 26 Jun 2014 19:02:16 +0000 (14:02 -0500)
commitf217f379a8ce520cce1e905c33660ca5a7ecad1c
treec8cd0c3ca7acf1f2220b09071b2401d68d86a56d
parente83444f71eb48d18c7bcf3616846a6c2f9575f5c
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