Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp102490pxu; Wed, 14 Oct 2020 21:49:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxw5gGmywBDV1wtn9KiPZtj0ay4l4LoOCgLS36zZGVekVCUCR9hEbyTUYmNOQm9wxqYFa23 X-Received: by 2002:a17:906:16c6:: with SMTP id t6mr2413338ejd.453.1602737388201; Wed, 14 Oct 2020 21:49:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602737388; cv=none; d=google.com; s=arc-20160816; b=UovEF6/rL0IeipwGO+eqsOJ7lR/ZsEwN82a00/PzA12nIh9O85UWg/Gm7ptO6lxVHq q7bvLaTtiu0i5/tflIpmjCd+9PEFTY3xY7wMtuXh3xWtPso0uCZIpJ3/98bQinSZN7DQ Kkpophz23TE90OMySnEt4BLeOuUkxKQFMn5tqhQRQ+E8ffRW3gsZNYOAYRi3aSZyaTMV abDWtsqf3FgPppuCQb0OaT8zEaWvai3nPWvkiwHYtgR90eZBRNVirSHDv32xJv+fDkSA knQK9Xa2xUlLfxBtd2ilHWlHgOmFaw4uVJ07+4oGqLC9MgmkZ1cW6pRFFdscXeYFJwvV T1qg== 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=bk+XFIJ9aHUN3aZxaFZApToP8MHuQ/48eUAeB2NajKk=; b=UGlg6BUyVfSqdBULJDnQqMFdNnaixbXK21luDobT1wnWSDHn0xVoYjGlCqXsPuDrYU XuTYoeQY0M17zy02wiNuGqXJfc3uUkR8DH1qnFWWrFtvwnj8hLMtkhv6GXMYe7k9fIl2 ADM2cjLHNO/oqTFfYXNO6MpbDp73vgIxmCg9RamB/bYENpr+Q8DAoOo1o1yUmSHWBWsd ZebLNi8Lml+filLflLV27Zee3ssM1Vl3zMVXMm+nzJyXvFLNzv/O0L//mkKlcYQsMez9 t8uTtWAmwB5SB5WuYYO/7bsy6nlXGSU4WjQJQ1i7e44mohAIawrXL/VDfPYRWdAqYdOM wWFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HL9yxG0L; 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 dk23si1319873ejb.202.2020.10.14.21.49.26; Wed, 14 Oct 2020 21:49:48 -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=HL9yxG0L; 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 S1729982AbgJODn0 (ORCPT + 99 others); Wed, 14 Oct 2020 23:43:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:49534 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727281AbgJODnZ (ORCPT ); Wed, 14 Oct 2020 23:43:25 -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 5002122241; Thu, 15 Oct 2020 03:43:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602733405; bh=azE8D6Jip/DfgDAtotq0y1JFG3w8UjkW+iU0XO+pqEM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HL9yxG0LA7lztRKCg0XUK3Be9kv6e3tjQu8ZiPTS7dwkZVHhTXJKycsESwIb3cfQA sHAor+N4tCr5gHZzLqfSycvS4W/HQbVyEfIqf8tNLPUNzAlBlz+yVmGdWOnNlpVacn dLWwDfcWmnGcLhiJRUtJxA3GPdJEMbUdYYpSY07c= Date: Wed, 14 Oct 2020 20:43:22 -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 1/2] dccp: ccid: move timers to struct dccp_sock Message-ID: <20201014204322.7a51c375@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20201013171849.236025-2-kleber.souza@canonical.com> References: <20201013171849.236025-1-kleber.souza@canonical.com> <20201013171849.236025-2-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:48 +0200 Kleber Sacilotto de Souza wrote: > From: Thadeu Lima de Souza Cascardo > > When dccps_hc_tx_ccid is freed, ccid timers may still trigger. The reason > del_timer_sync can't be used is because this relies on keeping a reference > to struct sock. But as we keep a pointer to dccps_hc_tx_ccid and free that > during disconnect, the timer should really belong to struct dccp_sock. > > This addresses CVE-2020-16119. > > Fixes: 839a6094140a (net: dccp: Convert timers to use timer_setup()) Presumably you chose this commit because the fix won't apply beyond it? But it really fixes 2677d2067731 (dccp: don't free.. right? > Signed-off-by: Thadeu Lima de Souza Cascardo > Signed-off-by: Kleber Sacilotto de Souza