CVE-2026-139755: efi/cper: Reject CPER records with an out-of-range error_data_length
efi/cper: Reject CPER records with an out-of-range errordatalength
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 4.15 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 4.20 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.1 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
In efi/cper, use check_add_overflow() to reject a sum of the header size and firmware-controlled error_data_length that will not fit in the int used by the size helpers.
Event History
Frequently Asked Questions
What record values trigger the unsafe parser behavior?
A CPER section whose firmware-controlled u32 error_data_length is in the top sizeof(*gdata) bytes of the u32 range can cause the header-size addition to wrap. For a 72-byte v300 header, 0xffffffb9 produces a computed record size of 1, while 0xffffffb8 produces a size of 0.
What are the observable consequences of a malformed record?
A computed size of 1 causes the CPER walker to advance one byte at a time and proceed off the end of the data. A computed size of 0 causes the walker to loop indefinitely.
How does the resolution prevent the issue?
The fix uses check_add_overflow() to reject error_data_length values whose addition to the header size cannot fit in the signed int returned by the record-sizing helpers. This ensures each accepted section size is at least the header size and can safely advance the parser.