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 6EC8642E01A for ; Wed, 6 May 2026 11:33:53 +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=1778067233; cv=none; b=DEYRwPagpriQIjlj5Awhl1SFNKtX5dOz184Qegw3+Mn9pLpiQhPiaTLjfaAWG8Bw9GpM9nZJNdxzSw5NGb7N5Kw2nSZ91AFpTQgEPQmgcmi0JyAkscK+Z0Duta1AFeQAfmJAf468T5+e+SBRjeh+EyVp8pIGmET1XnhU54tF2JA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067233; c=relaxed/simple; bh=SGZGfoenhmV6Aqypk7B0pt8Bsg41kmV3EPMgIe/245w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=RN+OyR4zkORCpWm29SoJTpBc/R/2IhgVIaMjcLkt6XwCcBn+Arv6oLxOxNuuiLolZMY2WC3QEZYbr8yRR5BIx8TYLIoGkhT2b1hj5Lr/n0M506v8hEWoNRpQWI0tgvlNuaCg55ZznzoH50jJJsdIMGJbQ0XprXs/BDt1cMJqVY0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0sHjO9h3; 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="0sHjO9h3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0578FC2BCB8; Wed, 6 May 2026 11:33:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778067233; bh=SGZGfoenhmV6Aqypk7B0pt8Bsg41kmV3EPMgIe/245w=; h=From:To:Cc:Subject:Date:Reply-To:From; b=0sHjO9h3/yv5z41zLUKjxH6eWSWcOGua4i+srx9W6U6SNMBOzihUA1vT//W1ADzMw c3NkycuL5+L/X/a0MF9jpYSVo3rnfekO1fU2mUV2IrYThnRkrI4Prv/lbyBfJkH7hV FqC5YkC1co+ylTsVervbAP3pDGIhrnlFivawZxzg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43240: x86/kexec: add a sanity check on previous kernel's ima kexec buffer Date: Wed, 6 May 2026 13:29:16 +0200 Message-ID: <2026050659-CVE-2026-43240-114a@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3373; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=woaP1HgcUrPocNcNVs3LbVuO0zIhAtZgQtk+So4wARI=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/Vff/9LxzrMWtbIPAvZaUQ3Xy/xZonLF/8b+m/deNh PdFHNe6O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi7s0M89TLsrii6kNWtFuz eCwvnvPo3+LVbQzzXQ8/MV3B9i5mSpzGpQo1zs7W65c5AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: x86/kexec: add a sanity check on previous kernel's ima kexec buffer When the second-stage kernel is booted via kexec with a limiting command line such as "mem=", the physical range that contains the carried over IMA measurement list may fall outside the truncated RAM leading to a kernel panic. BUG: unable to handle page fault for address: ffff97793ff47000 RIP: ima_restore_measurement_list+0xdc/0x45a #PF: error_code(0x0000) – not-present page Other architectures already validate the range with page_is_ram(), as done in commit cbf9c4b9617b ("of: check previous kernel's ima-kexec-buffer against memory bounds") do a similar check on x86. Without carrying the measurement list across kexec, the attestation would fail. The Linux kernel CVE team has assigned CVE-2026-43240 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit b69a2afd5afce9bf6d56e349d6ab592c916e20f2 and fixed in 6.1.165 with commit 37f18915a261afe84dab462624ed829cddb77a9b Issue introduced in 6.0 with commit b69a2afd5afce9bf6d56e349d6ab592c916e20f2 and fixed in 6.6.128 with commit 22e460b6333a5f818b042ac89201f8e735556f4a Issue introduced in 6.0 with commit b69a2afd5afce9bf6d56e349d6ab592c916e20f2 and fixed in 6.12.75 with commit f8f73bf0f8a57ee9b86792456bd42079bc98c6b7 Issue introduced in 6.0 with commit b69a2afd5afce9bf6d56e349d6ab592c916e20f2 and fixed in 6.18.16 with commit d4a132f121c591b60dbaf57ea91f1faf11631fbc Issue introduced in 6.0 with commit b69a2afd5afce9bf6d56e349d6ab592c916e20f2 and fixed in 6.19.6 with commit 4d7a8f5f28187e3d2958b2a134473da2665207e7 Issue introduced in 6.0 with commit b69a2afd5afce9bf6d56e349d6ab592c916e20f2 and fixed in 7.0 with commit c5489d04337b47e93c0623e8145fcba3f5739efd 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-2026-43240 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/37f18915a261afe84dab462624ed829cddb77a9b https://git.kernel.org/stable/c/22e460b6333a5f818b042ac89201f8e735556f4a https://git.kernel.org/stable/c/f8f73bf0f8a57ee9b86792456bd42079bc98c6b7 https://git.kernel.org/stable/c/d4a132f121c591b60dbaf57ea91f1faf11631fbc https://git.kernel.org/stable/c/4d7a8f5f28187e3d2958b2a134473da2665207e7 https://git.kernel.org/stable/c/c5489d04337b47e93c0623e8145fcba3f5739efd