diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2014-03-26 13:05:25 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-04-01 13:59:47 +0200 |
commit | d65f97a82c4ed48374a764c769d4ba1ea9724e97 (patch) | |
tree | 05862210ea0612a34831197254409ac1a1e2f96f /qemu-tech.texi | |
parent | 05560fcebb1528f4354f6f24d1eb8cdbcdf2c4b2 (diff) |
block/cloop: validate block_size header field (CVE-2014-0144)
Avoid unbounded s->uncompressed_block memory allocation by checking that
the block_size header field has a reasonable value. Also enforce the
assumption that the value is a non-zero multiple of 512.
These constraints conform to cloop 2.639's code so we accept existing
image files.
Signed-off-by: Stefan Hajnoczi <stefanha@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 'qemu-tech.texi')
0 files changed, 0 insertions, 0 deletions