CVE-2026-139748: ACPI: APEI: GHES: Bound AER info copy and sanitize software metadata
In the Linux kernel, the following vulnerability has been resolved:
ACPI: APEI: GHES: Bound AER info copy and sanitize software metadata
gheshandleaer() copies sizeof(struct aercapabilityregs) out of the fixed 96-byte pcieerr->aerinfo. The struct is larger, so the copy reads past the section, and it fills the software-only headerlen and flit fields of the embedded struct pcietlplog from firmware bytes. pcieprinttlplog() uses both to bound a loop over dw[], so a large value walks past the array. Nothing checks the section can hold a struct cpersecpcie either.
Validate errordatalength, zero the destination, and map aerinfo onto the struct as extlogprintpcie() does: copy up to the four Header Log DWORDs, then place the TLP Prefix Log from its own offset. The rest stays zero, covering headerlen and flit.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In Linux kernel APEI/GHES AER handling, validate error_data_length and zero the destination before copying. Bound the copy to the fixed 96-byte pcie_err->aer_info area; copy at most the four Header Log DWORDs and place the TLP Prefix Log from its own offset, rather than copying sizeof(struct aer_capability_regs) from firmware data. Sanitize the software-only header_len and flit fields so pcie_print_tlp_log() cannot walk beyond dw[].
Event History
Frequently Asked Questions
Which systems reach the affected handling path?
The affected path is used when the Linux kernel processes PCIe AER information carried in a GHES error record through ACPI APEI. The issue concerns the GHES PCIe error-section handling, rather than PCIe AER processing generally.
What malformed fields are involved in the out-of-bounds behavior?
The vulnerable code copies a larger aer_capability_regs structure from the fixed 96-byte aer_info field, which can read beyond that section. Firmware-controlled values can also populate the pcie_tlp_log header_len and flit metadata, and those values are used to bound iteration over the dw array.