Stefan Hajnoczi d65f97a82c 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>
2014-04-01 13:59:47 +02:00
..
2014-02-21 21:02:24 +01:00
2013-12-20 16:26:16 +01:00
2014-02-21 21:02:24 +01:00
2014-02-21 21:02:23 +01:00
2014-03-25 14:09:50 +01:00
2014-02-25 10:50:11 +00:00
2014-02-21 21:02:22 +01:00
2014-03-19 09:39:41 +01:00
2014-02-21 21:02:24 +01:00
2014-02-17 11:57:23 -05:00
2014-03-25 14:09:50 +01:00
2014-02-17 11:57:23 -05:00
2014-03-25 14:09:50 +01:00
2014-03-25 14:09:50 +01:00
2014-03-25 14:09:50 +01:00
2014-02-21 21:02:23 +01:00
2014-02-21 21:02:24 +01:00