CVE-2026-139755

efi/cper: Reject CPER records with an out-of-range error_data_length

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

efi/cper: Reject CPER records with an out-of-range error_data_length

cper_estatus_check() sizes each section with acpi_hest_get_record_size(),
which adds the firmware-controlled u32 error_data_length to the header size
as a signed int (see <acpi/ghes.h>). A value in the top sizeof(*gdata)
bytes of the u32 range wraps the sum small rather than large, so it slips
past the "record_size > data_len" check: against the 72-byte v300 header,
0xffffffb9 sizes the record at 1 and acpi_hest_get_next() walks it a byte
at a time, off the end. 0xffffffb8 sizes it at 0 and loops forever.

Use check_add_overflow() to reject a sum that will not fit the int those
helpers return, since the walk advances by that value. That subsumes the
"acpi_hest_get_size(gdata) > data_len" test above it, because record_size
is never smaller than the header.

The later "len < sizeof(*foo)" guards rely on this per-section upper bound;
they are lower bounds only.

Analysis

AI-generated

Technical impact

The vulnerability is caused by an integer overflow in the kernel’s CPER handling code. A malformed error_data_length field can make the calculated record size wrap around and become very small, causing the kernel to read past the end of the provided data or loop indefinitely. This corruption can crash the system or allow an attacker to manipulate kernel memory, potentially leading to arbitrary code execution if not mitigated. The weakness resides in incorrect size validation.

Affected Systems

Any Linux system running a kernel version before the patch that addresses this CPER size validation flaw. The commit introducing the fix is part of the mainline kernel, so older releases without the change are vulnerable.

Risk and Exploitability

The flaw arises when the kernel processes CPER records. If the firmware supplies a record with an error_data_length that causes the calculated record size to wrap around, the kernel will read beyond the supplied data or enter an infinite loop. The likely attack vector involves an attacker controlling the firmware‑supplied CPER data that the kernel receives through the hest subsystem. This can bring about a denial‑of‑service by crashing or hanging the system. No EPSS score is available, and the vulnerability is not listed in the CISA KEV catalog.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a Linux kernel version that includes the CPER size validation fix (commit 09dd5f66a5783f6e4d0e9fa1d44320fd240b1e66).
  • Rebuild any custom kernel modules or distributions to ensure they use the updated kernel headers and source.
  • Verify that the boot firmware or HEST initialisation data is not being modified by untrusted parties; use signed firmware and secure boot when possible.

Generated by OpenCVE AI on December 1, 2026 at 02:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-119
CWE-190
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: efi/cper: Reject CPER records with an out-of-range error_data_length cper_estatus_check() sizes each section with acpi_hest_get_record_size(), which adds the firmware-controlled u32 error_data_length to the header size as a signed int (see <acpi/ghes.h>). A value in the top sizeof(*gdata) bytes of the u32 range wraps the sum small rather than large, so it slips past the "record_size > data_len" check: against the 72-byte v300 header, 0xffffffb9 sizes the record at 1 and acpi_hest_get_next() walks it a byte at a time, off the end. 0xffffffb8 sizes it at 0 and loops forever. Use check_add_overflow() to reject a sum that will not fit the int those helpers return, since the walk advances by that value. That subsumes the "acpi_hest_get_size(gdata) > data_len" test above it, because record_size is never smaller than the header. The later "len < sizeof(*foo)" guards rely on this per-section upper bound; they are lower bounds only.
Title efi/cper: Reject CPER records with an out-of-range error_data_length
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

  • CWE-190

    Integer Overflow or Wraparound

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:37 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:20 PM
Modified
Nov 30, 2026, 2:20 PM