diff options
author | Jeff Cody <jcody@redhat.com> | 2014-03-26 13:05:36 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-04-01 13:59:47 +0200 |
commit | 97f1c45c6f456572e5b504b8614e4a69e23b8e3a (patch) | |
tree | 403d8ec49f195d59319b074da4ecbf08358f3194 /tests/qemu-iotests/083.out | |
parent | a9ba36a45dfac645a810c31ce15ab393b69d820a (diff) | |
download | hqemu-97f1c45c6f456572e5b504b8614e4a69e23b8e3a.zip hqemu-97f1c45c6f456572e5b504b8614e4a69e23b8e3a.tar.gz |
vpc/vhd: add bounds check for max_table_entries and block_size (CVE-2014-0144)
This adds checks to make sure that max_table_entries and block_size
are in sane ranges. Memory is allocated based on max_table_entries,
and block_size is used to calculate indices into that allocated
memory, so if these values are incorrect that can lead to potential
unbounded memory allocation, or invalid memory accesses.
Also, the allocation of the pagetable is changed from g_malloc0()
to qemu_blockalign().
Signed-off-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/083.out')
0 files changed, 0 insertions, 0 deletions