From mboxrd@z Thu Jan 1 00:00:00 1970 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 3C6ED146A97 for ; Tue, 21 May 2024 15:40:05 +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=1716306005; cv=none; b=kGoE8fOyLPOguuIsrbdjNkkpm0hxPyV5x2FTQZNKnBMSJFPEbf3hvcD7nilUjymG80LEdu6yXqazfk6Ao9xVkUtT5KeTVavsm0CXYNflMQfLUJD8PGojfITYfMQnOEN83R32k7HktS69TioR+27K8BOOXvSrihwymbgHbcw2jZY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716306005; c=relaxed/simple; bh=kTErhga0PjXu7LiHro1APHcrr01I67rNZHuEuNol09c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=E89P5+vqRHTmg4RarZ165kFv8+RacGSck9nj0WWda1vmDwGTrPLa3u17QrAGjqPO7NFK0OTLOCbEUeXHrioW+8hypGHc2WFF4DAmWxZSuRm0WIJcbGuLOiyVfQBBd5aE2hbFlVAv60TQUKHDjWLP5tTge+nWoI3bfHJVUG02pK8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=U0mOwxKm; 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="U0mOwxKm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5CABC2BD11; Tue, 21 May 2024 15:40:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716306005; bh=kTErhga0PjXu7LiHro1APHcrr01I67rNZHuEuNol09c=; h=From:To:Cc:Subject:Date:Reply-to:From; b=U0mOwxKmV/8ung6B4yEFW52cS83oKi9oQZTlwYC8WSdBbxCdjnMzZ/hrt47YSpcUv 05bsQq/hegCub9cwuBBTgSTIBrJUSMWn3BxS/42UyjqniEjPyEYutg6sbDANKlaO5k 5vs+N/Phjdd4oqvN074zgN+itBFr6Cynv14HLItw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52875: clk: mediatek: clk-mt2701: Add check for mtk_alloc_clk_data Date: Tue, 21 May 2024 17:32:51 +0200 Message-ID: <2024052121-CVE-2023-52875-99fe@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=2978; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kTErhga0PjXu7LiHro1APHcrr01I67rNZHuEuNol09c=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++zxvhPNcO+UY8jGN7eL5K5FPoyx4zVnTZ+9V0Xbi+ 6ya9udvRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEuYdhQcsBezlfBmnBMgeN TzFTN//LmTh9FsM8ZckFLCccdkhtZLK//l8oLGaq+LPdAA== 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-mt2701: 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-52875 to this issue. Affected and fixed versions =========================== Issue introduced in 4.10 with commit e9862118272a and fixed in 4.14.330 with commit 6fccee2af400 Issue introduced in 4.10 with commit e9862118272a and fixed in 4.19.299 with commit 1953e62366da Issue introduced in 4.10 with commit e9862118272a and fixed in 5.4.261 with commit d1461f0c9ca0 Issue introduced in 4.10 with commit e9862118272a and fixed in 5.10.201 with commit 001e5def774f Issue introduced in 4.10 with commit e9862118272a and fixed in 5.15.139 with commit d1175cf4bd2b Issue introduced in 4.10 with commit e9862118272a and fixed in 6.1.63 with commit 2a18dd653284 Issue introduced in 4.10 with commit e9862118272a and fixed in 6.5.12 with commit e61934720af4 Issue introduced in 4.10 with commit e9862118272a and fixed in 6.6.2 with commit 1bf9c204aef4 Issue introduced in 4.10 with commit e9862118272a and fixed in 6.7 with commit 0d6e24b422a2 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-52875 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-mt2701.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/6fccee2af400edaed9cf349d506c5971d4762739 https://git.kernel.org/stable/c/1953e62366da5460dc712e045f94fb0d8918999d https://git.kernel.org/stable/c/d1461f0c9ca0827c03730fe9652ebbf6316a2a95 https://git.kernel.org/stable/c/001e5def774fa1a8f2b29567c0b0cd3e3a859a96 https://git.kernel.org/stable/c/d1175cf4bd2b4c5f7c43f677ea1ce9ad2c18d055 https://git.kernel.org/stable/c/2a18dd653284550900b02107c3c7b3ac5e0eb802 https://git.kernel.org/stable/c/e61934720af4a58ffd43a63ffdd6f3a0bd7d7b47 https://git.kernel.org/stable/c/1bf9c204aef4cc55ce46a7ff2d4dc7e5f86551a7 https://git.kernel.org/stable/c/0d6e24b422a2166a9297a8286ff2e6ab9a5e8cd3