AZL-117322: CVE-2026-139749 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
ACPI: APEI: GHES: Validate memory error section length before payload access
ghesdoproc() hands the CPERSECPLATFORMMEM payload to the report chain, archapeireportmemerror() and gheshandlememoryfailure() without checking gdata->errordatalength. All three read validationbits and physicaladdr, at offsets 0 and 16, so a shorter section reads past the record.
Check the length once in ghesdoproc(), before any consumer runs. Take the 73-byte struct cpersecmemerrold as the floor: older firmware legitimately emits that UEFI 2.1/2.2 layout, and it makes validationbits safe to read.
The fields from "extended" on are absent from that layout, so also require whatever length the validation bits claim. Derive it per field rather than demanding the full 80 bytes: rank needs only 76, and the BANKGROUP and BANKADDRESS bits describe "bank" at offset 38, which every record carries. Testing the whole mask against one size, as cperprintmem() does, gets it wrong both ways.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In ghes_do_proc(), validate the CPER_SEC_PLATFORM_MEM section length before any consumer runs, checking the minimum length required by each field rather than requiring the full 80 bytes.
Event History
Frequently Asked Questions
What systems are exposed to this issue?
Systems running the affected Azure Linux kernel package version 6.6.161.1-1 are the identified affected population. Exploitation depends on the kernel processing malformed ACPI APEI GHES memory-error records supplied by firmware.
What condition is required to trigger the out-of-bounds read?
A GHES CPER platform memory-error section must have an error_data_length shorter than the fields accessed by the memory-error reporting and handling paths. The vulnerable flow passes that payload to consumers before validating the section length.
How can administrators determine whether they may be affected?
Check whether the installed Azure Linux kernel package is version 6.6.161.1-1. Also assess whether the system receives ACPI APEI GHES memory-error records from platform firmware, since that is the input path described for the issue.