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 661C04207F for ; Sat, 2 Mar 2024 22:00:36 +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=1709416836; cv=none; b=DGW3UowY4kfnWeThQ7fwL7AQMh+LYJN8d4UDXpw1kSOtDe7QDmw+PcD2fByX6hCTX5Tveov/6wo7zSNwYyKIa6bcBjKTqYNxsUwZF+fYn75S7hucdCUi4U2+UlzhyLMkIpHr4MyGM5t0qlgOvPS16N5xp89PHGwflukXNEiy+pY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709416836; c=relaxed/simple; bh=zylpl6Ckk0UnGw0tAivCR7GGeGLXBhu9zIlqF2puiik=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SMF5ol4RE5YpsrJvqTZCv7XT1YHPfs6UrR41GH+rVlCx2vqHZJ/afqudF/Ttc4B+INu/biOsFTQMq5XgG7PXV9Fp476zEuf5KP3izk0yhi3riAzixT10rMZa7jvjG6d02I2z+QQhybzfUeH2zNpdGMgq7L73ecev40/UayKXhII= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cmcgsefb; 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="cmcgsefb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F734C433F1; Sat, 2 Mar 2024 22:00:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709416836; bh=zylpl6Ckk0UnGw0tAivCR7GGeGLXBhu9zIlqF2puiik=; h=From:To:Cc:Subject:Date:Reply-to:From; b=cmcgsefbZTXg5xRFRnUE4y8D5G7X8YFPCiFVgYzMANfZybI3TtyuLkFaVqppaFvPE ZOVt9zJYiMcBd4csAZkIGcc4QmATbGNmSRs8sJV0lLCvoXP46zAIx6Qug2xsZAIzdl EVb8quIIj1UcmDUCh02XWiUvjd1RhVmhDOFeydyE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52576: x86/mm, kexec, ima: Use memblock_free_late() from ima_free_kexec_buffer() Date: Sat, 2 Mar 2024 23:00:10 +0100 Message-ID: <2024030257-CVE-2023-52576-7ee2@gregkh> X-Mailer: git-send-email 2.44.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=2218; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zylpl6Ckk0UnGw0tAivCR7GGeGLXBhu9zIlqF2puiik=; b=owGbwMvMwCRo6H6F97bub03G02pJDKmPF8ZGpvTl76903TSRNczh0/MHx6w2ONesePd1Umet2 GSOc0xBHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRZ6IM813VLRbrOHK8t1RN qNsR0hDakP+mkGHBFEmTStU5InJ1UzbnZ6nZ7GNLak0FAA== 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: x86/mm, kexec, ima: Use memblock_free_late() from ima_free_kexec_buffer() The code calling ima_free_kexec_buffer() runs long after the memblock allocator has already been torn down, potentially resulting in a use after free in memblock_isolate_range(). With KASAN or KFENCE, this use after free will result in a BUG from the idle task, and a subsequent kernel panic. Switch ima_free_kexec_buffer() over to memblock_free_late() to avoid that bug. The Linux kernel CVE team has assigned CVE-2023-52576 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit fee3ff99bc67 and fixed in 6.1.56 with commit eef16bfdb212 Issue introduced in 5.13 with commit fee3ff99bc67 and fixed in 6.5.6 with commit d2dfbc0e3b7a Issue introduced in 5.13 with commit fee3ff99bc67 and fixed in 6.6 with commit 34cf99c250d5 Please see https://www.kernel.org or 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-52576 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: arch/x86/kernel/setup.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/eef16bfdb212da60f5144689f2967fb25b051a2b https://git.kernel.org/stable/c/d2dfbc0e3b7a04c2d941421a958dc31c897fb204 https://git.kernel.org/stable/c/34cf99c250d5cd2530b93a57b0de31d3aaf8685b