From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2CE50C433EF for ; Fri, 6 May 2022 08:47:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1390283AbiEFIvR (ORCPT ); Fri, 6 May 2022 04:51:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242702AbiEFIvE (ORCPT ); Fri, 6 May 2022 04:51:04 -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 1172A580D7; Fri, 6 May 2022 01:47:18 -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 2D828B83408; Fri, 6 May 2022 08:47:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 426CEC385A8; Fri, 6 May 2022 08:47:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651826835; bh=+ufjvO7P96KYb2XbcCIj9uJ7p81LI1Ql3CZxkOp2IaU=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=Fvj9B9xwDSiPeqEcTecehkOah/pHPFo0wISr1GNyf7fNRbmQ8ren8viMRQBOVWYKH uza5c4k+QYCDlJz7Zk9jNMiz+aAp71dtHDBq48jJcmk6NGZ/shsA9k6ogJkhfm9DeP Vs2XUIW1UfQpsoflkv7RZb4IbfVT4Wbqew31JVOhvKWiMzgQSqkKUIqckbAC9mhhAL 1W1lsrUVX0Dk1/f9abAk030teC/FIk4+G+oR1LeMrGRfPYeC9Z4lQCaSlwScXnqzjz djS9RfIn5OaKj7Z8fQ/WkDZqQ7cW4NLp9y4dYKiXrFENCk24KBh9x0+4OMYwqIZgfD lWe61DUP3XbVA== Date: Fri, 6 May 2022 10:47:11 +0200 (CEST) From: Jiri Kosina To: Dongliang Mu cc: Benjamin Tissoires , Dongliang Mu , syzkaller , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] HID: bigben: fix slab-out-of-bounds Write in bigben_probe In-Reply-To: <20220506072425.1121900-1-dzm91@hust.edu.cn> Message-ID: References: <20220506072425.1121900-1-dzm91@hust.edu.cn> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 6 May 2022, Dongliang Mu wrote: > From: Dongliang Mu > > There is a slab-out-of-bounds Write bug in hid-bigbenff driver. > The problem is the driver assumes the device must have an input but > some malicious devices violate this assumption. > > Fix this by checking hid_device's input is non-empty before its usage. > > Reported-by: syzkaller > Signed-off-by: Dongliang Mu Applied. thanks. -- Jiri Kosina SUSE Labs