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 06F49201273 for ; Mon, 2 Dec 2024 13:52:57 +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=1733147578; cv=none; b=LlA/OheNIJswDVeWTRoOK6vklyhuV/S9zQf/EifAAGO2gM9YhBaejSz5no66J3+W4AB/zQdk4aV8bNOvyBivuIneFY+YK9ngiOOHD/X1ehA6amOZ/YcHurW4k8xxt6QowcqGX3d+46ObFNsxdLZkATs04NG73Idna1cQLw0kbqg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733147578; c=relaxed/simple; bh=dDspmJ1pNUm9wXDvOCv/4RtQV5lIFqWZKAPeD2EH/pE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=V15bU/X5FunOwbVy8YtVHF1AWb0CUlQvKmRwd/FVrpj8OYtHGgyy73EETAXBPXmzgJPkHYbtbP8D5klN3UjLue5ZHTLmOiowVZnFQlg1S6Kn+fzKupdyBDUKthOdZM2xOiTsvB4rKfsyygG2V/Nr7q586IS/jQhyYlHEO8INfLU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JUawusYh; 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="JUawusYh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 098E3C4CED6; Mon, 2 Dec 2024 13:52:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1733147577; bh=dDspmJ1pNUm9wXDvOCv/4RtQV5lIFqWZKAPeD2EH/pE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JUawusYhAgQqxtELd1SDGq7D1Jy0mW+YZ4iEIBqYI/EJGAvyySrv4JQM578TjrjwX 9sYCppC7OOK8zrwaRNELWDbIkzsu2cNvdZdyjTyChQZg1FXcIrq1Me7KtmNEnX7GDe pSq58tAo7dTKKNYKtOJSC0rFeilybO4TKdjV6CE8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53106: ima: fix buffer overrun in ima_eventdigest_init_common Date: Mon, 2 Dec 2024 14:52:45 +0100 Message-ID: <2024120246-CVE-2024-53106-8432@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=2234; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dDspmJ1pNUm9wXDvOCv/4RtQV5lIFqWZKAPeD2EH/pE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOm+u9ebb+US4TK5Uq3k6HzcZ7vzLkPVCv3o6VP3zTp2t +3V+W0bOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiUgoM86N79i7cfeBhyT0O afHb8X6mLSFbExnmilj2qVpoXGo58qO84tICLbPn6eJXAA== 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: ima: fix buffer overrun in ima_eventdigest_init_common Function ima_eventdigest_init() calls ima_eventdigest_init_common() with HASH_ALGO__LAST which is then used to access the array hash_digest_size[] leading to buffer overrun. Have a conditional statement to handle this. The Linux kernel CVE team has assigned CVE-2024-53106 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 9fab303a2cb3 and fixed in 6.1.119 with commit e01aae58e818 Issue introduced in 5.19 with commit 9fab303a2cb3 and fixed in 6.6.63 with commit 8a84765c62cc Issue introduced in 5.19 with commit 9fab303a2cb3 and fixed in 6.11.10 with commit 1ecf0df5205c Issue introduced in 5.19 with commit 9fab303a2cb3 and fixed in 6.12 with commit 923168a0631b 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-53106 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: security/integrity/ima/ima_template_lib.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/e01aae58e818503f2ffcd34c6f7dc6f90af1057e https://git.kernel.org/stable/c/8a84765c62cc0469864e2faee43aae253ad16082 https://git.kernel.org/stable/c/1ecf0df5205cfb0907eb7984b8671257965a5232 https://git.kernel.org/stable/c/923168a0631bc42fffd55087b337b1b6c54dcff5