efi/cper: Reject CPER records with an out-of-range error_data_length
- CVE-2026-139755
- GHSA-47xx-jg36-64f9
- EUVD-2026-139461
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.
Text from the CVE.org record.
Recommendation
Linux
- If you run a version from 4.19.34 to before 4.20update to 4.20 or laterMinor version change: check the release notes
- If you run a version from 4.14.111 to before 4.15update to 4.15 or laterMinor version change: check the release notes
Some affected versions have no stated fix.
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
Linux
Affected versions Fixed in from 4.19.34 to before 4.20 4.20 from 4.14.111 to before 4.15 4.15 from 5.0.7 to before 5.1 none stated 5.1 none stated before 5.1: not affected none stated from 5.10.275 up to 5.10.*: not affected none stated from 5.15.226 up to 5.15.*: not affected none stated from 6.1.193 up to 6.1.*: not affected none stated and 5 more
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.