Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp297860rdb; Thu, 2 Nov 2023 04:16:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFhK/WZpxUun5UC+oN0d4UHH1HSKsjuDqTWfYwtcLF1KsMKgsQw+o2bhZI1UAa4IY3ikOmt X-Received: by 2002:a17:903:228a:b0:1cc:3004:750c with SMTP id b10-20020a170903228a00b001cc3004750cmr6867406plh.20.1698923778334; Thu, 02 Nov 2023 04:16:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698923778; cv=none; d=google.com; s=arc-20160816; b=YoK88GRjL72ikKXOVRCsP4Sz1gny4/++ngGVkvJlsqfRAOVYYKuxbAR6lg4O1AINhJ zIMbUq/rNE/01Vsav6i0UqR1C8egiFkwULzm/vcYeMS3jc43Q+VbUYT8SU1xilPXzvSB r10tuVFtQtiWnuklASPXtZmlIX+fm0OR3N5+s3+2Sky3QOeWfRXXyr0Dx4pXzsHS1Qeg +axQKonFqW8YQr44SxnIg8gGbfEbFUZbGDT2sp14vipbYtx/TCOG5JfTDULiusuQwpq2 AV4/waZAqhokdRE29o4v6UzIXsnpF0Xn4uahQiatYTr2c8iURAk1qsbsOdAJqJgmt/4e MOpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=5X9zXTo8eLbZpNfNphwqZUMseNZ35B8f3qHoWgzx6M0=; fh=2zmg1Hl/kBQ+ySYHtbnjjO45LVFZxA0XkwYtQCfanS0=; b=I8afUJzqz6u/owebWmIahUuUW3aGPycD90R0JL4hCPHQU23qrh8OokIMXn3xzClCse YCp8ZJX3D1SuMNpKbreEmCARtckfSDgO7DLnnrybUwOD4HA16zgWKYdkvwIGWb6NGAgr l8zVuvvFCigNV68o3MrkdTNsGVnpH641mNhgtXgs6y3eGx5UrNSIeQTXtgAP/CPWTSgL JkaWcrXlbYxGlsZ2fp9xMWouAiIti9Hzg4eNFiFDTJubBIPUjQoDAZtBwspfHfIwgi0A wExXT6WriZiUpBHpQ0aO/CS5YFgDwti0RW2CMApngG0c1FgpxzoKYFlG2bzSgyUp8R8I uiZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UyRQN0WY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id y11-20020a656c0b000000b005b86119661esi1871533pgu.86.2023.11.02.04.16.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 04:16:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UyRQN0WY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 1F0D181FD9ED; Thu, 2 Nov 2023 04:16:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347275AbjKBLPz (ORCPT + 99 others); Thu, 2 Nov 2023 07:15:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229728AbjKBLPx (ORCPT ); Thu, 2 Nov 2023 07:15:53 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4327F187 for ; Thu, 2 Nov 2023 04:14:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698923698; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5X9zXTo8eLbZpNfNphwqZUMseNZ35B8f3qHoWgzx6M0=; b=UyRQN0WYcFSZz4Dn8thqtY2nYcsdFEHEO2KsSUU928Svs0IA2cXzLRNAq0LboOcLTAXviP UNFYGa3KMwpLMP7JviHXnc5bgcljhLYRvNhuyXuyeNY73NPBDErXhL+/o05fWC1emUoH8s iHtdMd5DcuDtLGHprPr3mnmSm+Gbb3U= Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-390-2GUG9ZsQMQ-y97uMqEqVEQ-1; Thu, 02 Nov 2023 07:14:57 -0400 X-MC-Unique: 2GUG9ZsQMQ-y97uMqEqVEQ-1 Received: by mail-lj1-f198.google.com with SMTP id 38308e7fff4ca-2c3e3672dc8so1137681fa.1 for ; Thu, 02 Nov 2023 04:14:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698923695; x=1699528495; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=5X9zXTo8eLbZpNfNphwqZUMseNZ35B8f3qHoWgzx6M0=; b=MVJ8fwDJd+JmoWerFLvn/8vrnXwJL8XG0SYNgB1jEEliuBV0jhfGGEGcfxx3Sxxmpa 0LDrxrcjJiZDa1QhfKIZwSnYIsj+5OPeSPRhEFVjBIdRNeGAWpTOnv4f5PlSv50YBHTS Qzcl+vaH6iXZpz5cTPrzAKjyx8Jd0g7hf8FHHWrwN7RMjFF/CJBgVglIdsWi9YWW9Ovr nzfI42sghBfgUgNviIlfxZH3e/E7h9K0oCkMhVsauLZd/IGnjiCOohw6RL93B4f/eCbs qSxTyRoJ5YjbYAczNyMbekfS+EcPYQzeWJvFTV6NqVAEmKIKhwbM04xrjLCn5faA1s1p ruYA== X-Gm-Message-State: AOJu0YwsEOQpLHm14lVVODZBI1CULH55T0TWYHIO0PEiliFTP7d7kUg0 p/PPvaObadDuhaRqHE/Tt9ZtM2kIhFjO4FUqKq7kM+10VDEZbniewjw4yyBXQ0IF0DtpCAEP9nr CNZKGo1iispNpUvSFUBm/BcMj X-Received: by 2002:a2e:3306:0:b0:2c5:519:bb1b with SMTP id d6-20020a2e3306000000b002c50519bb1bmr12741484ljc.2.1698923695607; Thu, 02 Nov 2023 04:14:55 -0700 (PDT) X-Received: by 2002:a2e:3306:0:b0:2c5:519:bb1b with SMTP id d6-20020a2e3306000000b002c50519bb1bmr12741468ljc.2.1698923695235; Thu, 02 Nov 2023 04:14:55 -0700 (PDT) Received: from gerbillo.redhat.com (146-241-226-153.dyn.eolo.it. [146.241.226.153]) by smtp.gmail.com with ESMTPSA id k16-20020a05600c1c9000b003fee567235bsm2654539wms.1.2023.11.02.04.14.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 04:14:54 -0700 (PDT) Message-ID: Subject: Re: [PATCH net] dccp: check for ccid in ccid_hc_tx_send_packet From: Paolo Abeni To: Bragatheswaran Manickavel , davem@davemloft.net, edumazet@google.com, kuba@kernel.org Cc: dccp@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, syzbot+c71bc336c5061153b502@syzkaller.appspotmail.com Date: Thu, 02 Nov 2023 12:14:53 +0100 In-Reply-To: <20231028144136.3462-1-bragathemanick0908@gmail.com> References: <20231028144136.3462-1-bragathemanick0908@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) MIME-Version: 1.0 X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 02 Nov 2023 04:16:13 -0700 (PDT) On Sat, 2023-10-28 at 20:11 +0530, Bragatheswaran Manickavel wrote: > ccid_hc_tx_send_packet might be called with a NULL ccid pointer > leading to a NULL pointer dereference You should describe how such event could happen. > Below mentioned commit has similarly changes > commit 276bdb82dedb ("dccp: check ccid before dereferencing") >=20 > Reported-by: syzbot+c71bc336c5061153b502@syzkaller.appspotmail.com > Closes: https://syzkaller.appspot.com/bug?extid=3Dc71bc336c5061153b502 and add a suitable fixes here. (beyond taking care of other critical code paths, as reported by Eric). Thanks! Paolo