ACPI: APEI: GHES: fix ARM section length accounting after header
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ACPI: APEI: GHES: fix ARM section length accounting after header
In ghes_handle_arm_hw_error(), after skipping the cper_sec_proc_arm header with (err + 1), the remaining length was reduced by sizeof(err) (pointer size) instead of sizeof(*err) (structure size).
That overestimates the bytes left for cper_arm_err_info records and can let the parser read past the CPER section when err_info_num is large enough relative to error_data_length.
Use sizeof(*err) so the length accounting matches the pointer advance and the earlier sizeof(*err) size check.
From the CVE record · Linux
The Linux kernel’s GHES ARM error parser miscalculates the length remaining after a CPER section header. If the ARM error record count is large enough relative to the section length, parsing can read past the section; the input does not establish how an attacker could trigger this or whether authentication or user interaction is required.
Engineers running the Linux kernel should check whether their version includes the GHES length-accounting fix; affected versions are not specified.