Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1093156rdb; Tue, 30 Jan 2024 07:44:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IGXzJNvUiJG/DJqrFR3Y6LeKpGB469PsFD9CVVRBMZXgpd1xbxa/UFRDoKi5//xfFr2itiw X-Received: by 2002:aa7:c44b:0:b0:55f:5c3a:b994 with SMTP id n11-20020aa7c44b000000b0055f5c3ab994mr485070edr.14.1706629439980; Tue, 30 Jan 2024 07:43:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706629439; cv=pass; d=google.com; s=arc-20160816; b=GDL5Y01xRsEnLJ1Fn5x9d8gikY+Q+VitCEhdWc08COcJ5GZXfzHdGigA6BmXD7tKBY 6PDCITUd4t5g8G+opM6eK+N/mB27z6cZufzoyiYuQjVE4oar8jK+8/hvRVKOEo7A+jdA q9I7B8WhJn8q4xfFdR0Kq4JpZhy+51Jq7610GdwMA7XbY2vyNjsJEkUqYI2n4pqAQkKS DvuFrQ74/kaUtD3AVVmqe+Rp1zB/3uC5I2XBK0wLs9sD1blHlaFaOrstVYydUM3WgsR4 lcP7IgvRIFjynk/CI2hagJT9byXhYr16STMNv5coGR5o1rUAoISXZtRffUEMTGz8bPha 9HMQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:subject :references:in-reply-to:cc:to:from:dkim-signature; bh=kloprjV2U82PHncRy3WHPcFpJWab3u6Zh1NkT2m5eLA=; fh=EoogMeeiZNPY/by3zyRDD9dzCPja1JxQKRbLzFXFcUE=; b=y09C2ziuSNFWKc5/KVQX58t7NAKqIVBJR0+Oa4uKZKXKDximZ4LK+BuyN1yI6rA+NB zFzYEa5qCuuUY/QxU7RnH6AOnW4/qsJlydgEGlJ7X+TRqcGbKDIqOEwafId2n3EH/sVt N6eWdHJxX+dt7axRKE+Z3rbcGjOO2Nqgxna/R+vO/aoBN7x6R+8ZJiprgIw4yopyGrfX I772eD9xt35ao7keDFe3mjyniR8ZSEVSnjZ8LmBc2bKZY/b7DMCMIENAPR4WAwkKVIpj jhvghwzRap0yDwGgyqUZZvehJS4/+vzceX2fkayjSFrgc3KSDBL9FKep13phXFIXrFQ1 B0aQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fet2r2Xm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-44863-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44863-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id en26-20020a056402529a00b0055981e1da71si4694658edb.125.2024.01.30.07.43.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 07:43:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44863-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fet2r2Xm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-44863-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44863-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B43DB1F21638 for ; Tue, 30 Jan 2024 15:43:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E7318613C; Tue, 30 Jan 2024 15:43:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fet2r2Xm" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 34D4585C67; Tue, 30 Jan 2024 15:43:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706629423; cv=none; b=kJ3aES5lM5TxNKXGRxsQrs1ki0FCH5s/64xnBylS+0g6i/80AHqzOO/kwHPwcs9DpGcq6uvk0W+LxMFCXH376PMKIYbRYHzjTLD3Hdc4U6hOS/t/6YjT4eJiKkHAWNov/RhHh0Bxy+4rgmIknoyBAH8k5R9tKxkFjdPwcZvp1qw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706629423; c=relaxed/simple; bh=pNWT5OlTiyqv3QvYZIhiFVUlSQd/qptTPUKWYGPAt34=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=FQr59VYtGkeOkb/CEZH/WyeHQ8A7u6uz+ehA8ibl5/SL2omdo7f84Eowvj9KuMSdXt/Gg3u8IWPy8z2ovJD30wOswp92qOx5by5SbUN1TIQWRiCTvd+VPI9l1S0sNchAxln2ltvcQZfjtWNBph4/XdUH4US+2GnPdQ82SjnOpuE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fet2r2Xm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62165C433C7; Tue, 30 Jan 2024 15:43:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706629422; bh=pNWT5OlTiyqv3QvYZIhiFVUlSQd/qptTPUKWYGPAt34=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=fet2r2Xm6Hv0hxJ4p3lKxYY2NgGYhROGyBg+6Qm6jYw5bYYYmpZ+b7kPRcl5xeMwH ZfFx/npdn4MnpeJZ+bCxa5NBy71p+NB0p7d7r9z4Tw1KoKbB5VXpKxQ2K3r6KDGWtZ 1a/y+t0YOWRKAH/41yTF8Yx+sPclwVIOxhrTAykT48757Wa4lbBMhY9Vf6R1oXuBTp Mp4DMzsXa231wzkToqVw5R+3wr+ZhC3b9nOQ9FwMba9S2p14hB95v1T2J8xYDI8XYB gGNq+iB6Q8QOKF18TtlgZLIgvUm8Plwyniu5rMfxK27Yhb3yKb6OWlGrl3tW8YvqrT fPeJqh+o/Pm3Q== From: Mark Brown To: srinivas.kandagatla@linaro.org, bgoswami@quicinc.com, tiwai@suse.com, Fullway Wang Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, fullwaywang@tencent.com In-Reply-To: References: Subject: Re: [PATCH] sound: soc: wcd934x: fix an incorrect use of kstrndup() Message-Id: <170662942110.37296.1277489815994094565.b4-ty@kernel.org> Date: Tue, 30 Jan 2024 15:43:41 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.13-dev-a684c On Thu, 18 Jan 2024 15:52:49 +0800, Fullway Wang wrote: > In wcd934x_codec_enable_dec(), kstrndup() is used to alloc memory. > However, kmemdup_nul() should be used instead with the size known. > > This is similar to CVE-2019-12454 which was fixed in commit > a549881. > > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] sound: soc: wcd934x: fix an incorrect use of kstrndup() commit: eeab239d6a2418fc5d2cd7ea76187085a97acde0 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark