Description
In the Linux kernel, the following vulnerability has been resolved: ACPI: APEI: GHES: Bound AER info copy and sanitize software metadata ghes_handle_aer() copies sizeof(struct aer_capability_regs) out of the fixed 96-byte pcie_err->aer_info. The struct is larger, so the copy reads past the section, and it fills the software-only header_len and flit fields of the embedded struct pcie_tlp_log from firmware bytes. pcie_print_tlp_log() uses both to bound a loop over dw[], so a large value walks past the array. Nothing checks the section can hold a struct cper_sec_pcie either. Validate error_data_length, zero the destination, and map aer_info onto the struct as extlog_print_pcie() does: copy up to the four Header Log DWORDs, then place the TLP Prefix Log from its own offset. The rest stays zero, covering header_len and flit.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
7e077e6707b3428562ba30d883ff8f54e98dc18b to < f2c89bd56419f3b9972c751033f901c5625dde33affected7e077e6707b3428562ba30d883ff8f54e98dc18b to < 293037dcbe3926184729ab59126d7a7c1fcb768baffected7e077e6707b3428562ba30d883ff8f54e98dc18b to < 9c3ad3bfff20d2d7a0c9614db2a58e78123bf0ceaffected
Linux Linux
Default version status: affected
6.15affected0 to < 6.15unaffected6.18.65 to ≤ 6.18.*unaffected7.3.6 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected