Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp402988lqb; Fri, 24 May 2024 01:43:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUsIxmq/GUFACTYqvXnVFH9427Smq/UnhBYvm6crRFrgjMu51D87CAbWGgAyWXr3PBha70FfN2mD72ilkg8iPnqrk4tRIrVJ2lA19EsPw== X-Google-Smtp-Source: AGHT+IGjrUou+fhFNZdIBHrI08ZbvaHQIiErEpu7cLf27kKSq4p3E/NvVB0gneKZl67Nr7Q7QWu6 X-Received: by 2002:a17:907:76a4:b0:a5d:edb:6d59 with SMTP id a640c23a62f3a-a626525e969mr100624266b.73.1716540231373; Fri, 24 May 2024 01:43:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716540231; cv=pass; d=google.com; s=arc-20160816; b=rx17DsgiXE1z1pXYgnQRH5NmQ3zzL8qvnl4I4ziQvqK0fzZNVly6HqzKxtbg6SItub QKFORnJH5UfFcEjB9gKVOVSqVztPN44M1Autghi8odtdEetSm6ivb1DoZ0A6n2mLL48m p1cgior5r5EiyQQfjVCAKwjTh5vQ/SsPgvwhAbRubNMW6yHF3OwKfEkVAc5+MZ6JtHub xH9VMEXynHITMH07LvPx7/yVkk9pIr6ESMp0ozbMZx62Ry7Cvo1Zlg9FazFyllVngDvi GUl56yy/sJtGiP7lsY8tINgxhOrzZGjENjthjmcqvtt9EltDRsiVRoFHSFWIIQnBJq2e gj7w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :auto-submitted:content-transfer-encoding:message-id:date:subject:to :from:dkim-signature; bh=qHYDLb2sBrCHYHYhhLM9KWf0C/Z1s/mrCthlWBK6zl4=; fh=4lGQI6056MBa4/oovMyIYaKLn+Wz/24RGvUivMmQP8E=; b=ygUe9+uSvzs19ZVWJb0hiUUlxllR1Qolotz6aec6AUighslFsohPAQaTVNfuYv92Hl Szb2pukWM4Ar9xSLwAh01LczTFRM/GICsKOe4eDO8YMi62bd9x4+8FFAdvfsgNas402Y vgRdlT6+mWJjDLQ8Ev9MXwSWpoXFJMvmQvy3L8u2VsmLV1C3gPXuk7VycYeJdeBoWn0z Kjm2E9RgusvQxDf2W1WVE4+LSKlS8X5Vxs/iohNRjwzXzD9BTsB3egoyi+j+zb9dGiCm 2Su/QXjfKUZAjlGcjjkae7l7n0esFA5Jk8SjYLK6PgmYfk0TkOlq9HHEsd/PtuR5nVtA 2/Ag==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YpO2hzmn; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4917-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4917-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cc3949csi58977866b.374.2024.05.24.01.43.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 01:43:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4917-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YpO2hzmn; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4917-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4917-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 01FF91F22882 for ; Fri, 24 May 2024 08:43:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2596612883C; Fri, 24 May 2024 08:43:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YpO2hzmn" X-Original-To: linux-bluetooth@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 81010208A1 for ; Fri, 24 May 2024 08:43:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716540225; cv=none; b=lmTkVs5HKW46HxATapinyYFjl36XmDTBEWdxaO2N3idDvsceFD7jUXd2k+3JuoVLy4ShVJs2NLRXLVE9alLIX+w0gAii4HpM0pZilrJDAjahayojZqD22N0nsVih3fdnjarnE1BX4IDSuAVntlH3pHVPVLLSGpW6jgL5TnX2oyQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716540225; c=relaxed/simple; bh=hz5DvcT/O2C6zCGX9Xjzq6rWrms+e1JVcGYN6MUigrs=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=Bg/wb9plD/ELOKRtWSY5SfaFnNb8XOUH6smR5mTHpO/i9BN3Q/h+qSwS0r2Xf/ya/ZhQ0N4bS/E5GPai+3aB76QvoAodjVKv5AOZCmQVI9kGBckj5b4Yv55hY5i27x1zt0aHKPZenD4w6LJytI/9rwAd6TJCG81eRt208M3CnFI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YpO2hzmn; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 0FCF3C2BBFC for ; Fri, 24 May 2024 08:43:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716540225; bh=hz5DvcT/O2C6zCGX9Xjzq6rWrms+e1JVcGYN6MUigrs=; h=From:To:Subject:Date:From; b=YpO2hzmnZXkE1275nBHraViTYH0uXSJ01I4V0g7/o+v6/whkjuLcFldcuq9Gan2AZ eHE33810LmQiv0iqiUcZy29ONHHgDc8fKj9MhO0Syb/6DJTDwMvtPQH09PsxJBb9x+ f426J8u6mLTHPHlkpXCLOOk0aNvrKVQ8/ue0tOY3MD8smf3uABNFbNwGUrhXKmkPgf H5Kyx/e+MA6Twj3Ng3NxNRJfkgcaluTul55N9FLKOf+axbC1tugqukUMCmrdlahZD9 S9TTTX60YLaFIP4yp3W6GbhzXhUW48w4cYWiJgQS1mlk1VSbEtwEYd9iTiwZ+/ECiX faUzLjOgfHwbQ== Received: by aws-us-west-2-korg-bugzilla-1.web.codeaurora.org (Postfix, from userid 48) id 01327C53B73; Fri, 24 May 2024 08:43:44 +0000 (UTC) From: bugzilla-daemon@kernel.org To: linux-bluetooth@vger.kernel.org Subject: [Bug 218880] New: HCI_EVT Packet 'Flush Occurred' Misalignment Date: Fri, 24 May 2024 08:43:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Drivers X-Bugzilla-Component: Bluetooth X-Bugzilla-Version: 2.5 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yuxuanhu@buaa.edu.cn X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: linux-bluetooth@vger.kernel.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cf_regression Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugzilla.kernel.org/ Auto-Submitted: auto-generated Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 https://bugzilla.kernel.org/show_bug.cgi?id=3D218880 Bug ID: 218880 Summary: HCI_EVT Packet 'Flush Occurred' Misalignment Product: Drivers Version: 2.5 Hardware: All OS: Linux Status: NEW Severity: normal Priority: P3 Component: Bluetooth Assignee: linux-bluetooth@vger.kernel.org Reporter: yuxuanhu@buaa.edu.cn Regression: No Hi All, Our fuzzing tool found a possible bug when testing Bluetooth RFCOMM connect= ion: (1) A 'Flush Occurred' HCI_EVT packet with incorrect 'parameter_total_lengt= h' field and parameters was maliciously sent to the host (hexadecimal content:= '11 3D C4 02 62 D1'). (2) Because 'hci_ev_table'(/net/bluetooth/hci_event.c: 7514) does not inclu= de 'Flush Occurred' event, the function hci_event_func(/net/bluetooth/hci_even= t.c: 7644) doesn't check the 'parameter_total_length' field of this packet. (3) When the controller transmits additional HCI packets to the host, these packets are concatenated to the previously mentioned Flush Occurred packet. This results in the packets being disregarded by the host. Attachment 1 is Kernel Log, which includes the printed HCI packet interacti= ons between the host and controller. All HCI packets following the line mention= ed below are ignored by the host: ''' [ 1555.520646] <- [EVT] 11 3D C4 02 62 D1 ''' Attachment 2 contains packet captures from tshark. It remains unclear whether this behavior constitutes a bug or a feature. We apologize if this inquiry causes any offense. Thank you very much for taking the time to read. Best Regard, Yuxuan Hu. --=20 You may reply to this email to add a comment. You are receiving this mail because: You are the assignee for the bug.=