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 8CF983176FD for ; Mon, 15 Sep 2025 14:47:18 +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=1757947638; cv=none; b=kiYoMc+hXkYeHMIOGsTBVxNW6PB595+K4Vu+HqZFQdK2Sb41/DBgV8ywowOEUKqpoIxLYeKGGekH6aVgmrxRQ1oiuwNE6ZfTX143VFBbfoXgtwBWuCtLDJWW4+VsTBOM4g4sfzgxCJWXZw31vWaz6dA+nN+CCmibL6yDSZufXrc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757947638; c=relaxed/simple; bh=0fA/BemdN0alvDT0dUI5eHm3m1AZ4ckMhUYJT9WZ0Hk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mCCUrSPmFer3YfL7iFBBhK2ABjKW20mYhSJj+7BI1b04MMUjgJYQxYhppxC6PL+Nrq3+dkz1IBsQC98xn3wYVfoC3vu3QHkQ/PKkj+n3WzSE9LK+D8yNKaczpwMLaysCvKnciGVNPPEWGdxvu6JKg47et7IY1RDPCG+8mpemt4w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tDHq1W18; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="tDHq1W18" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA161C4CEF1; Mon, 15 Sep 2025 14:47:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757947638; bh=0fA/BemdN0alvDT0dUI5eHm3m1AZ4ckMhUYJT9WZ0Hk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=tDHq1W18od6apFI57PIzYrQM6ICd5HBrsHcdEN1X2gRCbCRACOrMuLAc5ZctC03OD +NWGIUEc6n1Ki8k9QFsOb9Exv/ASLE0A24vlyjUlhAqAdiYeG4FHmVc+cqsTvitanR /HUwky8JHVuUd2PYtsl/Na1WOA7Bij//0/v4sh8U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50308: ASoC: qcom: Add checks for devm_kcalloc Date: Mon, 15 Sep 2025 16:46:10 +0200 Message-ID: <2025091559-CVE-2022-50308-8b1d@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2547; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7lzcE8sdFTUDStBnKmiTUOFZ6lPVrFTwSzPxMEbd8wk=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkn1JYbKt+YZXzz/Q6ZPafWX/l484bVPdXKC519OcblZ /M5/rqKdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEvD8wLDgz1+3jrQmZO/by eZYrz9snlJ4w0ZlhrsgpddGK5ugjHyab7/x0eELZ/fBd/gA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: ASoC: qcom: Add checks for devm_kcalloc As the devm_kcalloc may return NULL, the return value needs to be checked to avoid NULL poineter dereference. The Linux kernel CVE team has assigned CVE-2022-50308 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit 24caf8d9eb108c52e144bcc7af94bb1edcb70700 and fixed in 5.10.163 with commit 4518d7cc38b7d1a7ce5a7878ca601c91e19fe47d Issue introduced in 5.10 with commit 24caf8d9eb108c52e144bcc7af94bb1edcb70700 and fixed in 5.15.86 with commit f849c116d320e85d1e2c2804c0edb0be3953b62d Issue introduced in 5.10 with commit 24caf8d9eb108c52e144bcc7af94bb1edcb70700 and fixed in 6.0.16 with commit 7830e2289eb4b74970b6cd1b6cc68dcd021c2281 Issue introduced in 5.10 with commit 24caf8d9eb108c52e144bcc7af94bb1edcb70700 and fixed in 6.1.2 with commit b1e4f92dd0c1d3c162d7ca6c1196995565cca96d Issue introduced in 5.10 with commit 24caf8d9eb108c52e144bcc7af94bb1edcb70700 and fixed in 6.2 with commit 1bf5ee979076ceb121ee51c95197d890b1cee7f4 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2022-50308 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: sound/soc/qcom/lpass-sc7180.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/4518d7cc38b7d1a7ce5a7878ca601c91e19fe47d https://git.kernel.org/stable/c/f849c116d320e85d1e2c2804c0edb0be3953b62d https://git.kernel.org/stable/c/7830e2289eb4b74970b6cd1b6cc68dcd021c2281 https://git.kernel.org/stable/c/b1e4f92dd0c1d3c162d7ca6c1196995565cca96d https://git.kernel.org/stable/c/1bf5ee979076ceb121ee51c95197d890b1cee7f4