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 E1B8343C05D for ; Wed, 6 May 2026 11:35:28 +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=1778067329; cv=none; b=qPLeXlARuVqxve5obtWS2HXzF7yM9qiFkX8I6sQgxeDDcAg517kWJyamvyj3bFpUmpTAdxBNMRD9/oikkyOKT2wlhcR8QiK4aWpIjc/SMNzHED7/OSqUsVWcUoH1qR+4dzf2Un0yna9MUq9BsbiOZsQI1doFoBJL9K0sk7iHCfI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067329; c=relaxed/simple; bh=ABfwatnabNnX0NLUG9M/31bXEFzRP5QFajgDNcQBpkQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LuTIE2D7P3vU2qCg0JfWnevsXooB8PFLLuvvyo7JFgjP5DaHnwwu+c+fLovcPQHkYMA1cGuMV+CHftBN9d6G0X80dbcanYJa8ytfj3d4lRf7eGzq3mhjf1AfdSltx1BJSUDomoAyDLzuf6PA5pkYd4x9s4F6QScg2RkXq19NqAo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oXm4Uy6X; 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="oXm4Uy6X" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 788C2C2BCB8; Wed, 6 May 2026 11:35:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778067328; bh=ABfwatnabNnX0NLUG9M/31bXEFzRP5QFajgDNcQBpkQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=oXm4Uy6XiO4rSGJKQdcA4aSo3gXOeqnJteIzNB0+eNaWpVMqhpma6BlZxg5YLBJbA 4mexBGU/T62mJr60aRoNwK+3vK3Ztud1Zm5/7Hy2DYKgyOLyjV/XYKsrqMQpjN/l5E TZcZod/ANTSagRoah1AnH0WkR5YYh6kZFi9P6yUM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43277: APEI/GHES: ensure that won't go past CPER allocated record Date: Wed, 6 May 2026 13:29:53 +0200 Message-ID: <2026050612-CVE-2026-43277-7db8@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=5545; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=l+6Er3W8+IlW3QybynKoII5wcFQI/BXjK726AGo9E74=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/Vc/sfb2+/qh6fYTnq/7d7RdWnuAL5dKe9u3S7t0/v 4YEnWhM7ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJxPYwzFMpPFPk2tbx59Dy qLwIt6MR/Ew2vAzz6xfON5CYmqX+xfwug0x0uGusenEcAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: APEI/GHES: ensure that won't go past CPER allocated record The logic at ghes_new() prevents allocating too large records, by checking if they're bigger than GHES_ESTATUS_MAX_SIZE (currently, 64KB). Yet, the allocation is done with the actual number of pages from the CPER bios table location, which can be smaller. Yet, a bad firmware could send data with a different size, which might be bigger than the allocated memory, causing an OOPS: Unable to handle kernel paging request at virtual address fff00000f9b40000 Mem abort info: ESR = 0x0000000096000007 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x07: level 3 translation fault Data abort info: ISV = 0, ISS = 0x00000007, ISS2 = 0x00000000 CM = 0, WnR = 0, TnD = 0, TagAccess = 0 GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0 swapper pgtable: 4k pages, 52-bit VAs, pgdp=000000008ba16000 [fff00000f9b40000] pgd=180000013ffff403, p4d=180000013fffe403, pud=180000013f85b403, pmd=180000013f68d403, pte=0000000000000000 Internal error: Oops: 0000000096000007 [#1] SMP Modules linked in: CPU: 0 UID: 0 PID: 303 Comm: kworker/0:1 Not tainted 6.19.0-rc1-00002-gda407d200220 #34 PREEMPT Hardware name: QEMU QEMU Virtual Machine, BIOS unknown 02/02/2022 Workqueue: kacpi_notify acpi_os_execute_deferred pstate: 214020c5 (nzCv daIF +PAN -UAO -TCO +DIT -SSBS BTYPE=--) pc : hex_dump_to_buffer+0x30c/0x4a0 lr : hex_dump_to_buffer+0x328/0x4a0 sp : ffff800080e13880 x29: ffff800080e13880 x28: ffffac9aba86f6a8 x27: 0000000000000083 x26: fff00000f9b3fffc x25: 0000000000000004 x24: 0000000000000004 x23: ffff800080e13905 x22: 0000000000000010 x21: 0000000000000083 x20: 0000000000000001 x19: 0000000000000008 x18: 0000000000000010 x17: 0000000000000001 x16: 00000007c7f20fec x15: 0000000000000020 x14: 0000000000000008 x13: 0000000000081020 x12: 0000000000000008 x11: ffff800080e13905 x10: ffff800080e13988 x9 : 0000000000000000 x8 : 0000000000000000 x7 : 0000000000000001 x6 : 0000000000000020 x5 : 0000000000000030 x4 : 00000000fffffffe x3 : 0000000000000000 x2 : ffffac9aba78c1c8 x1 : ffffac9aba76d0a8 x0 : 0000000000000008 Call trace: hex_dump_to_buffer+0x30c/0x4a0 (P) print_hex_dump+0xac/0x170 cper_estatus_print_section+0x90c/0x968 cper_estatus_print+0xf0/0x158 __ghes_print_estatus+0xa0/0x148 ghes_proc+0x1bc/0x220 ghes_notify_hed+0x5c/0xb8 notifier_call_chain+0x78/0x148 blocking_notifier_call_chain+0x4c/0x80 acpi_hed_notify+0x28/0x40 acpi_ev_notify_dispatch+0x50/0x80 acpi_os_execute_deferred+0x24/0x48 process_one_work+0x15c/0x3b0 worker_thread+0x2d0/0x400 kthread+0x148/0x228 ret_from_fork+0x10/0x20 Code: 6b14033f 540001ad a94707e2 f100029f (b8747b44) ---[ end trace 0000000000000000 ]--- Prevent that by taking the actual allocated are into account when checking for CPER length. [ rjw: Subject tweaks ] The Linux kernel CVE team has assigned CVE-2026-43277 to this issue. Affected and fixed versions =========================== Fixed in 5.10.252 with commit 92ba79074c58e65a6e32713758c5a9aecd33c2ea Fixed in 5.15.202 with commit 616c120dcdf1ce96edcd818e38bce49667f80689 Fixed in 6.1.165 with commit f3740a1562445f36f08afab8af59e37117b3acdc Fixed in 6.6.128 with commit e0ec99115e135dbb58e11a0df007c7d4771d4a17 Fixed in 6.12.75 with commit b6be51a12441136fdf8c49b2525689fbea1856e1 Fixed in 6.18.16 with commit 6f5d41984ad896736c23e2fff7c80e15c1319132 Fixed in 6.19.6 with commit 98bd9b28d4d11e6739ad86524b4be4ada9025e60 Fixed in 7.0 with commit fa2408a24f8f0db14d9cfc613ef162dc267d7ad4 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-43277 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/acpi/apei/ghes.c include/acpi/ghes.h 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/92ba79074c58e65a6e32713758c5a9aecd33c2ea https://git.kernel.org/stable/c/616c120dcdf1ce96edcd818e38bce49667f80689 https://git.kernel.org/stable/c/f3740a1562445f36f08afab8af59e37117b3acdc https://git.kernel.org/stable/c/e0ec99115e135dbb58e11a0df007c7d4771d4a17 https://git.kernel.org/stable/c/b6be51a12441136fdf8c49b2525689fbea1856e1 https://git.kernel.org/stable/c/6f5d41984ad896736c23e2fff7c80e15c1319132 https://git.kernel.org/stable/c/98bd9b28d4d11e6739ad86524b4be4ada9025e60 https://git.kernel.org/stable/c/fa2408a24f8f0db14d9cfc613ef162dc267d7ad4