From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSuiE-0006wA-1R for qemu-devel@nongnu.org; Wed, 26 Mar 2014 16:46:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSui8-0006Cz-3W for qemu-devel@nongnu.org; Wed, 26 Mar 2014 16:46:13 -0400 Message-ID: <53333C8A.7020702@redhat.com> Date: Wed, 26 Mar 2014 21:46:02 +0100 From: Max Reitz MIME-Version: 1.0 References: <1395835569-21193-1-git-send-email-stefanha@redhat.com> <1395835569-21193-21-git-send-email-stefanha@redhat.com> In-Reply-To: <1395835569-21193-21-git-send-email-stefanha@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH for-2.0 20/47] qcow2: Check backing_file_offset (CVE-2014-0144) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi , qemu-devel@nongnu.org Cc: Kevin Wolf , pmatouse@redhat.com, qemu-stable@nongnu.org On 26.03.2014 13:05, Stefan Hajnoczi wrote: > From: Kevin Wolf > > 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 > --- > block/qcow2.c | 6 ++++++ > tests/qemu-iotests/080 | 12 ++++++++++++ > tests/qemu-iotests/080.out | 7 +++++++ > 3 files changed, 25 insertions(+) Reviewed-by: Max Reitz