CVE-2026-139754: efi/cper: Reject an error status block length that wraps a u32
In the Linux kernel, the following vulnerability has been resolved:
efi/cper: Reject an error status block length that wraps a u32
cperestatuslen() sums the firmware-controlled datalength (or rawdataoffset plus rawdatalength) into a u32. A datalength of 0xffffffec wraps that sum to 0, and a length that reads back short defeats every bound built on it: bertprintall() passes its "remain < estatuslen" check, then advances "estatus += estatuslen" by zero and loops forever. GHES survives only because ghescheckestatus() rejects a length below sizeof(estatus) first.
Reject a length that cannot be expressed in a u32 in cperestatuscheckheader(), which both of today's callers reach: GHES via ghescheckestatus() and BERT via cperestatuscheck(). extlog reaches neither yet; a later patch routes it through cperestatuscheck(), whose ELOGENTRYLEN bound needs this to hold.