From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXm29-0006H4-Hz for qemu-devel@nongnu.org; Mon, 22 Feb 2016 03:39:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXm24-0006rx-Kf for qemu-devel@nongnu.org; Mon, 22 Feb 2016 03:39:57 -0500 Received: from mx1.redhat.com ([209.132.183.28]:38293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXm24-0006rt-Fj for qemu-devel@nongnu.org; Mon, 22 Feb 2016 03:39:52 -0500 Message-ID: <1456130390.29896.30.camel@redhat.com> From: Gerd Hoffmann Date: Mon, 22 Feb 2016 09:39:50 +0100 In-Reply-To: <1455648821-17340-1-git-send-email-ppandit@redhat.com> References: <1455648821-17340-1-git-send-email-ppandit@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 0/2] usb: check RNDIS offsets & length List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: P J P Cc: Qinghao Tang , Qemu Developers , Prasad J Pandit On Mi, 2016-02-17 at 00:23 +0530, P J P wrote: > From: Prasad J Pandit >=20 > Hello, >=20 > When processing remote NDIS control message packets, the USB Net > device emulator uses a fixed length(4096) data buffer. The incoming > packet length could exceed that OR informationBufferOffset & Length > combination could overflow and cross that range. These two patches > add checks to avoid such overflows. Added both to usb patch queue. thanks, Gerd