Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1066947imm; Wed, 1 Aug 2018 09:39:16 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfynW4ohNxMdfMkja6+hxBFo5h6/+8QgZm5bvG1PfszFahE6dKd/tAUzo7ZkZLjSBTBjppB X-Received: by 2002:a63:ff21:: with SMTP id k33-v6mr24990648pgi.38.1533141556404; Wed, 01 Aug 2018 09:39:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533141556; cv=none; d=google.com; s=arc-20160816; b=jEybcFUDaBmcnDxh7KjE3x3VUEsa+nvEGm//aXeIViNIbb9sNp+S/4hM4mf3bZ1A+P 1/H8H2g7e4D6oHgFvecQdIV7vosFUXQqpKh+ift1e2Alwhpb3i+VjyffaacdKRP2LKi8 6ZrMbxUrbu5kRCcqJV9TCKnJpT8hp8Y5VuxiSAdVNiYZLLZxTNMCev0roW9/NhhwdIgN SkLqPHPOE90NVXqgsOSVuid9bcbjb0GCMH1+4x16yHa+N8c1Ia/ZQdnUEPLzrcS3YR6H Rdbtom5dL+qFXNA7BuuKBXFks6oWr505cOfRWu1BQy0VP4YhwuhWuFT7/rsNhtrJdfOA fxcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=yGOyjvcEO3iMTe8xyXyVrZ26+xdqRI0QlOV79b0C4b8=; b=vdwnR8KzwULZ24QdmBZE42mt3Yp72YA4XJw4ZvcEqYOZqoCx3VLg6dFpR5IHSHp15b rYRpakrZnc/wONPUdRYfo8tX21fPljzP3vrzVPIQqc4bJ+Qpnun/XLk+qe6pNN3FgD/z 03TQ9s/zAYYWZvM2d32E5Nse3NGKcxlDcVHCWr6IFTCRRb3kFLv/vAyWuTwU3hNLknFd ESUqp2jszSjnQOoybbmoV271TmOoRcLnmsZOxL39BjujhL3g6IsRrXrZzA+jv5Dq+LDA DDLMtrAaakgqPmUc6B5WTrFG2bDwCStSsLuCG1YoTIVSyeUF5Yhj8GHI7L03OpRPbUv8 CAGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6-v6si11645111pgj.211.2018.08.01.09.39.01; Wed, 01 Aug 2018 09:39:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403967AbeHASXk (ORCPT + 99 others); Wed, 1 Aug 2018 14:23:40 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:60202 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403813AbeHASXk (ORCPT ); Wed, 1 Aug 2018 14:23:40 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 57381DCB; Wed, 1 Aug 2018 16:37:06 +0000 (UTC) Date: Wed, 1 Aug 2018 18:37:03 +0200 From: Greg KH To: Mark Salyzyn Cc: linux-kernel@vger.kernel.org, Marcel Holtmann , Johan Hedberg , "David S. Miller" , Kees Cook , Benjamin Tissoires , linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, security@kernel.org, kernel-team@android.com, Jiri Kosina Subject: Re: [PATCH] HID: Bluetooth: hidp: buffer overflow in hidp_process_report Message-ID: <20180801163703.GA6994@kroah.com> References: <20180731220225.159741-1-salyzyn@android.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180731220225.159741-1-salyzyn@android.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 31, 2018 at 03:02:13PM -0700, Mark Salyzyn wrote: > CVE-2018-9363 > > The buffer length is unsigned at all layers, but gets cast to int and > checked in hidp_process_report and can lead to a buffer overflow. > Switch len parameter to unsigned int to resolve issue. > > This affects 3.18 and newer kernels. > > Signed-off-by: Mark Salyzyn > Fixes: a4b1b5877b514b276f0f31efe02388a9c2836728 ("HID: Bluetooth: hidp: make sure input buffers are big enough") > Cc: Marcel Holtmann > Cc: Johan Hedberg > Cc: "David S. Miller" > Cc: Kees Cook > Cc: Benjamin Tissoires > Cc: linux-bluetooth@vger.kernel.org > Cc: netdev@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Cc: security@kernel.org > Cc: kernel-team@android.com Nit, you only need to bother security@ if you do not have a fix and need to figure out one. Also, you forgot to cc: stable@vger.kernel.org to be included in older kernel releases :( thanks, greg k-h