Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751983AbaLQHxR (ORCPT ); Wed, 17 Dec 2014 02:53:17 -0500 Received: from cantor2.suse.de ([195.135.220.15]:40588 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751939AbaLQHxO (ORCPT ); Wed, 17 Dec 2014 02:53:14 -0500 Date: Wed, 17 Dec 2014 08:53:11 +0100 (CET) From: Jiri Kosina To: Peter Wu cc: Benjamin Tissoires , Nestor Lopez Casado , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/3] HID: logitech-hidpp: check WTP report length In-Reply-To: <1418745323-17133-2-git-send-email-peter@lekensteyn.nl> Message-ID: References: <1418745323-17133-1-git-send-email-peter@lekensteyn.nl> <1418745323-17133-2-git-send-email-peter@lekensteyn.nl> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 16 Dec 2014, Peter Wu wrote: > Malicious USB devices can send bogus reports smaller than the expected > buffer size. Ensure that the length for WTP reports is valid to avoid > reading out of bounds. > > Signed-off-by: Peter Wu > --- > v1: patch 2/3 HID: logitech-{dj,hidpp}: check report length > v2: splitted original report length check patch Applied to for-3.19/upstream-fixes. Thanks, -- Jiri Kosina SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/