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 5AA17146A97 for ; Tue, 21 May 2024 15:40:19 +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=1716306019; cv=none; b=f1FniCyVRPmWJZGPpiApFDV2MFFmk37YVDxPmIZsEDGYTeGYKJ4ztBpLRXizsXR73f0w6xLvc7taXoMQLPd2UtOSJFCOJpltNAXaMrW6Xvw1O74QqL2N7Z376gR5h8vnth1faUU5XjMTkVODCRNNf+8SIUqgXcJaiXirf61mIak= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716306019; c=relaxed/simple; bh=BrnM3hII2TdsSREqkY371X090/2DVtfyeqsVe8VIfQQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FR7gCDlUJjLLYhwR+myipn5cUfv+df53L38dNVNEJ+IvFuQ9t0qCsMFw1HnuoG5+k59ysHFhMGnuZLZ3YMwW1ICiP8ae/eZen13hUOcy8tLZzh5rhA05W1IWWFjWqiqBvnykjNRRagFbTONd3Tfp1ijc/Z8by4aM8kFlL+eQLME= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=p7Ma0yUW; 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="p7Ma0yUW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3F3EC2BD11; Tue, 21 May 2024 15:40:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716306019; bh=BrnM3hII2TdsSREqkY371X090/2DVtfyeqsVe8VIfQQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=p7Ma0yUW9HISzM8AZKZLdhAodUWIeK27nl6ieqHYX9XIkxLdNGFwUuRGAd4tXyTzQ JxLEaJpkgQpbQ/UqVnH4zYkkhY4In/K6+zHDAZZIeTOQm1SVL15kVHhzNftl8JcS2e c0Zy+SphFNACvqZwoGnMtxsO0Z+AJol3Hcd9Y1lI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52873: clk: mediatek: clk-mt6779: Add check for mtk_alloc_clk_data Date: Tue, 21 May 2024 17:32:49 +0200 Message-ID: <2024052121-CVE-2023-52873-cbe9@gregkh> X-Mailer: git-send-email 2.45.1 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=2623; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BrnM3hII2TdsSREqkY371X090/2DVtfyeqsVe8VIfQQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++zwPL8yY6XbuMs+e1k2npwn+4U6rnBFlmc832+jcb /s3QZsVOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAih2czzC8V1Pftl379dbul mld26PZb/BlslxkWXNtotedxmp3Nnl3lazRNa18128iZAwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: clk: mediatek: clk-mt6779: Add check for mtk_alloc_clk_data Add the check for the return value of mtk_alloc_clk_data() in order to avoid NULL pointer dereference. The Linux kernel CVE team has assigned CVE-2023-52873 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4 with commit 710774e04861 and fixed in 5.4.261 with commit fbe466f06d4e Issue introduced in 5.4 with commit 710774e04861 and fixed in 5.10.201 with commit 3994387ba356 Issue introduced in 5.4 with commit 710774e04861 and fixed in 5.15.139 with commit ca6d565a2319 Issue introduced in 5.4 with commit 710774e04861 and fixed in 6.1.63 with commit df1c4a9efa3f Issue introduced in 5.4 with commit 710774e04861 and fixed in 6.5.12 with commit a90239551abc Issue introduced in 5.4 with commit 710774e04861 and fixed in 6.6.2 with commit f6a7c51cf07a Issue introduced in 5.4 with commit 710774e04861 and fixed in 6.7 with commit 1f57f78fbacf 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-2023-52873 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: drivers/clk/mediatek/clk-mt6779.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/fbe466f06d4ea18745da0d57540539b7b36936ae https://git.kernel.org/stable/c/3994387ba3564976731179c4d4a6d7850ddda71a https://git.kernel.org/stable/c/ca6d565a2319d69d9766e6ecbb5af827fc4afb2b https://git.kernel.org/stable/c/df1c4a9efa3f5b6fb5e0ae63890230dbe2190b7e https://git.kernel.org/stable/c/a90239551abc181687f8c0ba60b276f7d75c141e https://git.kernel.org/stable/c/f6a7c51cf07a399ec067d39f0a22f1817c5c7d2b https://git.kernel.org/stable/c/1f57f78fbacf630430bf954e5a84caafdfea30c0