Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp102460pxu; Wed, 14 Oct 2020 21:49:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8z2OC1ragKemPbj15doIpr2qqHK9lyBNJMfDH4Eus0hUZ0zHZ/PAlM6S+HK7fMQTFO3Ur X-Received: by 2002:a05:6402:2214:: with SMTP id cq20mr2321052edb.311.1602737382961; Wed, 14 Oct 2020 21:49:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602737382; cv=none; d=google.com; s=arc-20160816; b=fRQBHij0Wf0uTl/B6EEoMAdRZ+8dPmvH10EYpU0wRidER6Y7MOTcAGJZeWS5ZbUz9S wFG7ZMoJwtVhgOl4dHbRNhnBJBiZHefBavfrs5hmLGh+UxqER5/YppZn5gRMOXFt4h5s oM9hyIeb+9UciwIGGDUMcHYzl6iSBGamJyLbREqEsMJa6EeQfQxShKHYMJWN/FCojPPy d3YOtjp+EZtxAqauyFWmYkY8FHxQA9aToB7VyN424omX3aK+O19bzXyNWAA+cVbl9prX rlzPnppRkirguWZxestaxVET2Xd/tF5Vu2Mzs/nvEHaaXqEgD8OPYO8h2Fbd1O7FA5OY ShGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=BhSNsOzmfDtAHrCdyJ5nwNqzdghOxD729cD8koZAT7o=; b=S/ys21PZZ4Tc8WYqG2PVMAM1H6lWbLCw9uzSforH/SQ+X+eCCCIXT2qCIaw7eA0RcJ rIPm7taM/OT7QSQn4pIahoiitALIP/eBZc85CT37vHH0HQUpcUh2neaqn/EOsIo2mKzq I8c209/eOOAA4OgM1gMk+T1bq2OSUeMzA+hj/ye6t6LMMPpvANbvh0wLWXYArX/vnqTW c3fnnaErfisfvjULFvixip4Sf3t8cJea7opdxFi3T7ZfFRIbH+Gqg8nLuJ/D2IA9oqEg UcOIUTemqS1zIQwnuRSJnPYwa8NLPtPztKWHH2qa5LUZ0Q5HeC4P1L5B+ZWJDeouSbAg Crig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="jcq/f5El"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y5si1398353ejf.667.2020.10.14.21.49.20; Wed, 14 Oct 2020 21:49:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="jcq/f5El"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730083AbgJODme (ORCPT + 99 others); Wed, 14 Oct 2020 23:42:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:49162 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727281AbgJODmd (ORCPT ); Wed, 14 Oct 2020 23:42:33 -0400 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8A0DD22243; Thu, 15 Oct 2020 03:42:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602733353; bh=GwGUyejOLstRN1Fx4fxG6UMNfecHd9+GCmbEcvKveDM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=jcq/f5ElfKyGA7WuJZI8Uj77rhyk9lOWDtsa6Ri+ARf5GN08JDiomJLzOk9WxVje5 ZmmVeQXM5UxxQjiDo/osNUogJS/dnVrTRzXL6i+y4kppPZIxtzmiYRdtrUHbrcGL2Z Wyw1rGvjsRXk4tNEWMIpJvhOFF2eiMJuo4Ex0ja4= Date: Wed, 14 Oct 2020 20:42:30 -0700 From: Jakub Kicinski To: Kleber Sacilotto de Souza Cc: netdev@vger.kernel.org, Gerrit Renker , "David S. Miller" , Thadeu Lima de Souza Cascardo , "Gustavo A. R. Silva" , "Alexander A. Klimov" , Kees Cook , Eric Dumazet , Alexey Kodanev , dccp@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] Revert "dccp: don't free ccid2_hc_tx_sock struct in dccp_disconnect()" Message-ID: <20201014204230.56cbfb12@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20201013171849.236025-3-kleber.souza@canonical.com> References: <20201013171849.236025-1-kleber.souza@canonical.com> <20201013171849.236025-3-kleber.souza@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 13 Oct 2020 19:18:49 +0200 Kleber Sacilotto de Souza wrote: > From: Thadeu Lima de Souza Cascardo > > This reverts commit 2677d20677314101293e6da0094ede7b5526d2b1. > > This fixes an issue that after disconnect, dccps_hc_tx_ccid will still be > kept, allowing the socket to be reused as a listener socket, and the cloned > socket will free its dccps_hc_tx_ccid, leading to a later use after free, > when the listener socket is closed. > > This addresses CVE-2020-16119. > > Fixes: 2677d2067731 (dccp: don't free ccid2_hc_tx_sock struct in dccp_disconnect()) > Reported-by: Hadar Manor Does this person has an email address? > Signed-off-by: Thadeu Lima de Souza Cascardo > Signed-off-by: Kleber Sacilotto de Souza