Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1240332lqd; Thu, 25 Apr 2024 09:30:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWMokyyY0yt2Z86Sn7u6zETGSb9FdlcpF+BbbPEitSDnxwgVRSlZsq3e+SrgF5PTc3D+Gy481K0VU4rweP7s6K6ln+NjDE9GxIYYcgJqw== X-Google-Smtp-Source: AGHT+IGBEI8qRZ9yUK+pf3ZWPGp5ytpjQ9+63IDPqstjekgZY6zGMWbwFbkottF9GHLXFzLlcQ1K X-Received: by 2002:a17:906:d296:b0:a55:55b3:e899 with SMTP id ay22-20020a170906d29600b00a5555b3e899mr152379ejb.63.1714062650406; Thu, 25 Apr 2024 09:30:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714062650; cv=pass; d=google.com; s=arc-20160816; b=NhWm97PcFsfmiY+3fVWTCbIEArIT/zGWXZa6el7AbtaGJ4yedPTR608m9srBGXWRG9 KNEx2uTZP4nU+5YMkGv7h6F/YC+XA5wGFhTmjHtO2JgXCNDCjLJxRGUamp8gNgx1iPsr V71qtxcEKcz3lFwv0D70sb0qJyi/Mi1Fa/5zK1zDfBpxvV2n423V0bUoqh3Tkuvt3DKO zCN57/tQMzVb4SE6ZrQylI8yuHDdZyQ3nkgA4nFbhBsOasQMxe6M6tBvnH7649M5H7X2 PAx5lBlGmEBl34NK+5bzhFNYijHWTCff3BTThhdZZZtV9UO3SiaLVzINCeToXslEYmlU xRIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:date:message-id:from:subject :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=10UdXAkgnh74cbfhY+vC6BrJt9wMQnBOfmJpuDIGuoU=; fh=7QF9xwcEtq+pEXz52F+46Janjw7zGHVFiwySc/rqXFU=; b=TZYoec45wAsdGE7JhEcBtMLodIXYGrl5vH2Tcm/XMWNJf71DeBK9xMt7I578zStleo cktZdHpxvdSH16iAKhwf4yx78b4YtUgoDAFXEWB2ODcPm+H/cOJsyTjFmth5E21uHG4H kGer/lpCvO6Es/6mgxjnMBFYcmOgJK2tqlfuh5TovqEOHHMsDErRdvCL8OsATQNXLywS qTobq17X8wsnV1lJGd/2j9UJNHk1pScbv83VeGTaSV/6ITB97n4lqIGq6syDduubHIlk udHzKq3kJOoPP5HQOUlf8awnsHXKiqtctPQwx4Qcd3F4ZWFKLLcwr/BIDbhtCX09xuG6 kfmg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="KIk/Fgpu"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4076-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4076-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gt37-20020a1709072da500b00a588e0cf631si3127142ejc.849.2024.04.25.09.30.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 09:30:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4076-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="KIk/Fgpu"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4076-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4076-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 1C1E71F22B5C for ; Thu, 25 Apr 2024 16:30:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1CD4714D2A2; Thu, 25 Apr 2024 16:30:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KIk/Fgpu" 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 6A69B1E864; Thu, 25 Apr 2024 16:30:33 +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=1714062633; cv=none; b=gguokfIKnBh29oq+NJ06b2Ms9PijbdOnYXLp3MikgOZI1LkXFN/Dm0l6Z49+4F2qE+cw8lft+uw/Ix5Ll/jSf8N5E+31qvB3kg+Na3KJn6T3HoY+6UUVbYGQrDl2lMnga767hEtAQ4KkViLPMiIHNqcJLFDSE4qZsbtEMUcYHAU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714062633; c=relaxed/simple; bh=ANvZ/o/drE2FJG659vjthrk/HOXySmSBQTc5JTC0hrs=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=kMdYdhJp+nq+NFiwVrYFKmu5VviqPiIZqO3ORAunkHIMLzyDA1BAIddQj4FdYbFpytsoBDO1o4Wjb2cKUsclPQ1D9bv8p+CgGPvWj+LZy2da/+9QLPZEOSAoBMlmam2yUEq4+04kW/kGqMh0e09LyzXVQ4V7pnvkew07PnABjnk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KIk/Fgpu; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 20BFBC4AF07; Thu, 25 Apr 2024 16:30:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714062633; bh=ANvZ/o/drE2FJG659vjthrk/HOXySmSBQTc5JTC0hrs=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=KIk/FgpuGT0zgB1iMWU+1LOhuQvumdhmoP1YpV0A4T1yqFPTLWey60DlH34yUmoEy g/ru7RLFpwN7S2umImvqLrBHO4cjGCVC9JF/UjUXM/q4pPdYO8P5I2taqJc5diUzKK hvfzfNa7ejihxfJyaUF53+pZYlAygOaL0Hvim3za7FZEELTwncetIxMHDdAg1vTeIZ jbnxkabBlNZnN6mt5M0EuClyzT8fRPWiyr6tOp3Cz4YBJRuMaiCI4OxiZhKDx1IaDa vnY/Xh030R8KpSXEX6MZKKKc4ImdhLVwIUgqLH0rs5j1+uempXfkpxBXHE1r5tKSfx SC8fYEB+SP4PA== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 0BA43C595CE; Thu, 25 Apr 2024 16:30:33 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] Bluetooth: Fix use-after-free bugs caused by sco_sock_timeout From: patchwork-bot+bluetooth@kernel.org Message-Id: <171406263304.12899.3794414646890970390.git-patchwork-notify@kernel.org> Date: Thu, 25 Apr 2024 16:30:33 +0000 References: <20240425142345.47229-1-duoming@zju.edu.cn> In-Reply-To: <20240425142345.47229-1-duoming@zju.edu.cn> To: Duoming Zhou Cc: linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, luiz.dentz@gmail.com, johan.hedberg@gmail.com, marcel@holtmann.org Hello: This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz : On Thu, 25 Apr 2024 22:23:45 +0800 you wrote: > When the sco connection is established and then, the sco socket > is releasing, timeout_work will be scheduled to judge whether > the sco disconnection is timeout. The sock will be deallocated > later, but it is dereferenced again in sco_sock_timeout. As a > result, the use-after-free bugs will happen. The root cause is > shown below: > > [...] Here is the summary with links: - Bluetooth: Fix use-after-free bugs caused by sco_sock_timeout https://git.kernel.org/bluetooth/bluetooth-next/c/1b69bacb11e6 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html