Received: from eggs.gnu.org ([2001:4830:134:3::10]:34466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm4mN-0003Ef-Il for qemu-devel@nongnu.org; Tue, 13 Oct 2015 14:58:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zm4mK-0002QR-AB for qemu-devel@nongnu.org; Tue, 13 Oct 2015 14:58:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44426) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm4mK-0002QN-5V for qemu-devel@nongnu.org; Tue, 13 Oct 2015 14:58:28 -0400 From: Markus Armbruster References: Date: Tue, 13 Oct 2015 20:58:25 +0200 In-Reply-To: (P. J. P.'s message of "Tue, 13 Oct 2015 01:01:09 +0530 (IST)") Message-ID: <874mhuh9ym.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] Limit memory r/w length to buffer size List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: P J P Cc: Kevin Wolf , Gerben van der Lubbe , qemu-devel@nongnu.org P J P writes: > Hello, > > An OOB r/w access issue was reported by Mr Gerben Lubbe(CC'd here). > > The GDB(1) stub protocol supports commands 'm/M' to read & write 'len' > bytes from/to the stub memory area. In that, the 'len' parameter value > supplied by the host gdb(1) is not validated against the local buffer > size. Which in turn could lead to OOB r/w memory access. > > Below is a proposed patch to fix this issue. How is this related to Kevin's [PATCH] gdbstub: Fix buffer overflows in gdb_handle_packet() Message-Id: <1444721930-5121-1-git-send-email-kwolf@redhat.com> ?