diff options
author | Kevin Wolf <kwolf@redhat.com> | 2014-03-26 13:05:42 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-04-01 14:19:09 +0200 |
commit | a1b3955c9415b1e767c130a2f59fee6aa28e575b (patch) | |
tree | c4560b854410ca2629eb5f6c2512664fa180d206 /tests/qemu-iotests/080.out | |
parent | 24342f2cae47d03911e346fe1e520b00dc2818e0 (diff) |
qcow2: Check backing_file_offset (CVE-2014-0144)
Header, header extension and the backing file name must all be stored in
the first cluster. Setting the backing file to a much higher value
allowed header extensions to become much bigger than we want them to be
(unbounded allocation).
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/080.out')
-rw-r--r-- | tests/qemu-iotests/080.out | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/qemu-iotests/080.out b/tests/qemu-iotests/080.out index 41a166a27f..48c40aa3e2 100644 --- a/tests/qemu-iotests/080.out +++ b/tests/qemu-iotests/080.out @@ -6,4 +6,11 @@ qemu-io: can't open device TEST_DIR/t.qcow2: qcow2 header exceeds cluster size no file open, try 'help open' qemu-io: can't open device TEST_DIR/t.qcow2: qcow2 header exceeds cluster size no file open, try 'help open' + +== Huge unknown header extension == +Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 +qemu-io: can't open device TEST_DIR/t.qcow2: Invalid backing file offset +no file open, try 'help open' +qemu-io: can't open device TEST_DIR/t.qcow2: Header extension too large +no file open, try 'help open' *** done |