CVE-2026-139752: ACPI: extlog: Avoid populating software AER metadata from raw hardware buffer
In the Linux kernel, the following vulnerability has been resolved:
ACPI: extlog: Avoid populating software AER metadata from raw hardware buffer
extlogprintpcie() casts pcieerr->aerinfo straight to struct aercapabilityregs . That struct embeds struct pcietlplog, whose software-only headerlen and flit fields sit at offset 84 - inside the 96-byte aerinfo buffer - so the cast fills them with raw firmware bytes. pcieprinttlplog() uses both to bound a loop over dw[], and a large headerlen walks past the end of the array.
Copy into a zeroed local struct, and only as far as aerinfo maps onto it: the leading registers and the four Header Log DWORDs. Place the TLP Prefix Log separately, from the offset the hardware keeps it at. The rest stays zero, which covers headerlen and flit and keeps the Root Error registers out of the prefix log, where pcieprinttlplog() would print them as end-to-end prefixes.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In extlog_print_pcie(), avoid casting aer_info directly to struct pcie_err. Copy the hardware data into a zeroed local struct only as far as aer_info maps onto it, and log the TLP Prefix separately from its hardware offset so raw bytes cannot populate software-only header_len and flit fields.
Event History
Frequently Asked Questions
What conditions are required to trigger the out-of-bounds access?
The issue is reached when the kernel processes PCIe extended error logging data through extlog_print_pcie(). Firmware-controlled bytes in the 96-byte aer_info hardware buffer can populate the software-only header_len and flit fields, and an excessively large header_len can make pcie_print_tlp_log() iterate beyond the TLP log DWORD array.
Which systems are exposed?
Systems running the Linux kernel and processing ACPI PCIe extended error log records are relevant. Exposure depends on receiving malformed or unexpected hardware/firmware error-log data; the supplied information does not identify affected kernel versions or configurations.
What is the remediation?
Apply the available Linux stable fixes referenced in the advisory. The fix copies only hardware-defined fields into a zero-initialized local structure, leaving software-only metadata zeroed and handling the TLP Prefix Log at its hardware-defined offset.