Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4175821rwb; Tue, 20 Sep 2022 09:49:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7z1XpMq7Z4jXmCaoDvXPawgA/PCUBHY0Dfey+Cx5v8UOHpeQDxWElRhvkxxGU60rT30/Cu X-Received: by 2002:a17:907:782:b0:740:7120:c6e7 with SMTP id xd2-20020a170907078200b007407120c6e7mr17754987ejb.313.1663692598455; Tue, 20 Sep 2022 09:49:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663692598; cv=none; d=google.com; s=arc-20160816; b=MPvKg/iN2F/lL2KMFeYzPoOf7D41Otv+lXplZ711RLzB8qe9fC5yjDxuGR7qp8nBYD huLCSxiERdswWp92v49zVMp8N3/HQzxOqYlyP6SCK7baA89Z2euCHNEva/1Xwqy6uLEQ 4L58ETNPGadoEipTYHqcYgGzQCW5fxz+LueV58Z7PHsiM2uTLTToDU8UQ3aqZs6VaFcn yu5qoHX8ibpE3KaYPmPDx70CgzWMNBIIcwuA9l5ycnNEX7wQYrrjiVeDVVjsJdBU2q8K kz17Q4vnDi0VSEa6qpyueZVIwfN/oFmHFZkNmfwgpc7Ixi3SNixfQp66aH33PxMb4NXF 73SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XumdeMQxYfIPIcqSzgML97rh4UPiFceYBqvKbxLMMt8=; b=qtGbhnaGKTETvWOmSWazMzQlAL1VknBwdMSduyKKvc8KFM3HGwa6ALNibP8hyKM2iX EnJFcQDWwQJHROmQX9ddpELSewtQ7PTygwB4U9fpucCdWCeGw3yPDpFbjR7zc2z34hkY ZFNHcnAWgga/uzkVH8zky+UcCUPOc3EWd7egYbuMLwPVMy/s9r3BANVBBb6sbyJy4Odp JWHYrhMFRf9Dhe6NBTHVqblpgY4cUKLBr0tfteZdgBqIGu01mKWgsKFcwJ1OIvhvY1nK pSXIstKOQpLC7WgFzcmnEdTwHEEMUAENGa31eNOQG23LILqSompDq2w11tayN/BcbzQh tQfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="xfI/yUZx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h17-20020a05640250d100b00443e3fe60a0si170483edb.622.2022.09.20.09.49.31; Tue, 20 Sep 2022 09:49:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="xfI/yUZx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231407AbiITQQ0 (ORCPT + 99 others); Tue, 20 Sep 2022 12:16:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbiITQQW (ORCPT ); Tue, 20 Sep 2022 12:16:22 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B86BB5D133; Tue, 20 Sep 2022 09:16:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6FC13B81EBE; Tue, 20 Sep 2022 16:16:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4C43C433D7; Tue, 20 Sep 2022 16:16:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1663690579; bh=BIWGlv9fTdZY9w/qXyLCPnM9+g1DdLRMHLwnKSLT+qM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=xfI/yUZxQQovCR1SCHX/rh7Gllqk5Cn8/H/Vghi/HRYhyYwt5YX/qgqf18V7iZ4Cf s7SVTuwIL97mnxekClBLxdRzV2k1E1I2oPCuxltviMGEDmvBXBoNJnlc8K1BWlqrDt gllx2zzj1SJcdEfYQr2fpJSypnLaxBtE6jkR/Rlw= Date: Tue, 20 Sep 2022 18:16:15 +0200 From: Greg KH To: Rondreis Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, johan@kernel.org Subject: Re: KASAN: use-after-free Write in keyspan_close Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 20, 2022 at 10:47:37PM +0800, Rondreis wrote: > Hello, > > When fuzzing the Linux kernel driver v6.0-rc6, the following crash was > triggered. > > HEAD commit: 521a547ced6477c54b4b0cc206000406c221b4d6 > git tree: upstream > > kernel config: https://pastebin.com/raw/hekxU61F > console output: https://pastebin.com/raw/gvADdA0t > > Sorry for failing to extract the reproducer. But on other versions of > Linux, I also triggered this crash. > > I would appreciate it if you have any idea how to solve this bug. Are you hitting this with a real keyspan device, or is this a "fake" one? if a fake one, what type of fake data are you sending the driver? Are the configuration options correct, and you are giving it bad data, or something else? Fuzzing on invalid USB data for drivers is the next "boundry" to start working on, so far we have only handed invalid configuration information fairly well, so patches to work on this next layer are always appreciated if you consider USB data to now be considered "hostile" and not trustable. thanks, greg k-h