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 81BE378C6C for ; Sat, 28 Dec 2024 09:47:30 +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=1735379250; cv=none; b=Ogh3K1xaV8Tw2APXjwzEAK5CPbRWu8Zv3OdG+fbAcWHtS3pGsTU+Z27057Dtmm9XuSPKKrXHfEaBSZ3wXiDsMgkgDlf+10fwIQbXuZt/IDNQy1WqVFwpw8ksaa8HPtGj9Xs8pUMATu7gnaNcqeI7lWVFxVZmLhrGk67RvyXG1H0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735379250; c=relaxed/simple; bh=/8BEa+56T5dGJBHW0EsakOwxeYaDEODBtouyxAPuyIw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bc9kEPOzFnod5WC38auLVNRvWL2EVUF+7Cz9JRlVLGgl29/BzhJWTYWFpBowolFKCgoibgax24K+FR4GBp49ahE5jdXCFSWjkdITUkuuoeXhE8FLY/5Tf3FjG0nujYysfTCvJDIaLb3bNT+i9BUFoo6/CpLX6+nA1mRWHcVvJ54= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bgWLW/Me; 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="bgWLW/Me" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 086C9C4CECD; Sat, 28 Dec 2024 09:47:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735379250; bh=/8BEa+56T5dGJBHW0EsakOwxeYaDEODBtouyxAPuyIw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=bgWLW/Me/O+Dq3qXgHB8ZeYolBFseRgBx8b9nUWEEkWEL+Tl7kSvq432MteLKMAHQ velvvdCGI/0k8eA1dUX5Brb+b5w8bWIq6tbVi5lWj6hYcszjrZW75ixPb3AYceQAEC JMVjMMA6X4TzrN4FtzW9jQeHWzu7porV8+/QRdu8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56684: mailbox: mtk-cmdq: fix wrong use of sizeof in cmdq_get_clocks() Date: Sat, 28 Dec 2024 10:45:36 +0100 Message-ID: <2024122833-CVE-2024-56684-55a3@gregkh> X-Mailer: git-send-email 2.47.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=2102; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/8BEa+56T5dGJBHW0EsakOwxeYaDEODBtouyxAPuyIw=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn5J/Z+Ovpmorhlz5aWF4Y+e5xfvjr0zuLbkckOCukHO vcrnbqv0xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATCVNhWHAlKKc3dkPvOaUf tTlq33MuvLCyrWOY7xzy0vHS2yV3FtU/XqD85JXwL57MXQA= 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: mailbox: mtk-cmdq: fix wrong use of sizeof in cmdq_get_clocks() It should be size of the struct clk_bulk_data, not data pointer pass to devm_kcalloc(). The Linux kernel CVE team has assigned CVE-2024-56684 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit aa1609f571caba0db102c611829d48adf226bb70 and fixed in 6.11.11 with commit 31986fad0cfdda8d8893230da04f5eb0774854d9 Issue introduced in 6.11 with commit aa1609f571caba0db102c611829d48adf226bb70 and fixed in 6.12.2 with commit a9c7cb960fc6e056ebecebd136a127612b15630d Issue introduced in 6.11 with commit aa1609f571caba0db102c611829d48adf226bb70 and fixed in 6.13-rc1 with commit 271ee263cc8771982809185007181ca10346fe73 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-2024-56684 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/mailbox/mtk-cmdq-mailbox.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/31986fad0cfdda8d8893230da04f5eb0774854d9 https://git.kernel.org/stable/c/a9c7cb960fc6e056ebecebd136a127612b15630d https://git.kernel.org/stable/c/271ee263cc8771982809185007181ca10346fe73