Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp307464ybh; Mon, 9 Mar 2020 22:24:56 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtLybOP4/2HK5VgkTJize2giku433MXaQ5dGqF0jFI/vbcx1d4cxf5uTUV8nsNqzVrtiShG X-Received: by 2002:a9d:7cd4:: with SMTP id r20mr15714471otn.148.1583817896377; Mon, 09 Mar 2020 22:24:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583817896; cv=none; d=google.com; s=arc-20160816; b=coOi+z7UvXfA/VRM4AVkNN+jfyi/dwjJ75YhFaR4lsHagAG/7/frOV2tCp1scn2lm1 ti9Y8jIG8yF+WBbYI2M0tA4riX14Eg/Kd8X5KJVZhl/DHdSC69hLwdEkvM+BOujUv/wC Lpx8nqk/yiTQrL7o/Aen8BuhZCmI8YSYTD8187Qjnq8sUR3EL158RyKDB6013yw4MREi 4MgerUAtA1Ju071hE/Esjs+AFcE7omKGxq9AjahW6+Uab0kESng2sM0C9kaHcl2Na4uV XzTUc/BKTQPyD5QSGzyyTOvuuFXZRVDADv5OpZtJwNG35RpxUKJTRQgxkKLhHHVV9Glo /5Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=+ua/Ez6rhlivbpW9WD3fflJh+k++bRuJwx/hsbkLzks=; b=H4jygafN+Xs+Er0c9fvoHnKFKpfIhkAijPJXw8QPimxweEzP8pyIsE3X/A6SeayUBa GRMxNW+WtxDhiwoxJpQJmr5vkdBS/4l/E1uIjISoNs+nvufqcbwHUwDmi+P67tkHAJiC s5fSb12/4vSTxuBKgMzMQZFd8EsQ+xq98OW8jJU32bbUt2Kyt+sit6Rrp4LvLXHP2W/r YvPdbGxZWKTFrvro6uF4jqocJ6r1GA9eu7vYF6MQtL8yBdSsMtm+F/rfEvybxgO2UGAc L0OuDn7VJsNEY9dhEj8ybIJh1h6OmKLW2P11IXXVAFJv+R1mKv7vgkvYF7AWgOzZeyWQ Q3gA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-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 e6si7782585oti.166.2020.03.09.22.24.29; Mon, 09 Mar 2020 22:24:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-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-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725999AbgCJFYX convert rfc822-to-8bit (ORCPT + 99 others); Tue, 10 Mar 2020 01:24:23 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:51115 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726088AbgCJFYX (ORCPT ); Tue, 10 Mar 2020 01:24:23 -0400 Received: from marcel-macbook.fritz.box (p4FEFC5A7.dip0.t-ipconnect.de [79.239.197.167]) by mail.holtmann.org (Postfix) with ESMTPSA id 6A652CECC8; Tue, 10 Mar 2020 06:33:50 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: [BlueZ PATCH 0/2] HID and HOGP connections from non-bonded devices. From: Marcel Holtmann In-Reply-To: <20200310023516.209146-1-alainm@chromium.org> Date: Tue, 10 Mar 2020 06:24:21 +0100 Cc: Bluez mailing list Content-Transfer-Encoding: 8BIT Message-Id: <87A4E633-63CF-4C71-9BF6-916894790EED@holtmann.org> References: <20200310023516.209146-1-alainm@chromium.org> To: Alain Michaud X-Mailer: Apple Mail (2.3608.60.0.2.5) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Alain, > It was discovered that BlueZ's HID and HOGP profiles implementations > don't specifically require bonding between the device and the host. > > This creates an opportunity for an malicious device to connect to a > target host to either impersonate an existing HID device without > security or to cause an SDP or GATT service discovery to take place > which would allow HID reports to be injected to the input subsystem from > a non-bonded source. > > This patch series addresses the issue by ensuring that only connections > from devices that are bonded are accepted by the HID and HOGP profile > implementation. > > More information about the vulnerability is available here: > https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00352.html > > Alain Michaud (2): > HOGP must only accept data from bonded devices. > HID accepts bonded device connections only. > > profiles/input/device.c | 23 ++++++++++++++++++++++- > profiles/input/device.h | 1 + > profiles/input/hog.c | 4 ++++ > profiles/input/input.conf | 8 ++++++++ > profiles/input/manager.c | 13 ++++++++++++- > 5 files changed, 47 insertions(+), 2 deletions(-) both patches have been applied. However I changed BrBondedOnly configuration name into ClassicBondedOnly since that name seemed more obvious to me. The prefix Br has never been used and the Bluetooth SIG started calling it Classic a while back. Regards Marcel