In the Linux kernel, the following vulnerability has been resolved: efi/cper: Read only validated fields in cper_mem_err_pack() cper_mem_err_pack() copies extended, rank, mem_array_handle and mem_dev_handle unconditionally. Those live at offsets 73 to 79, past the end of struct cper_sec_mem_err_old, the 73-byte UEFI 2.1/2.2 layout that older firmware still emits and that cper_estatus_print_section() admits. On such a record the copy reads up to seven bytes past the payload, and off the end of the error status block when that section is the last one. Copy each of the four only when its validation bit is set, and zero it otherwise. Nothing is lost: a 2.1/2.2 record leaves those bits clear, and every consumer of struct cper_mem_err_compact already gates the fields on the same bits. Zeroing also stops callers reading them back out of the uninitialised on-stack struct they pass in.
https://git.kernel.org/stable/c/cb567ce5e4c776d9b0f06821f3b84ed5c55f6018
https://git.kernel.org/stable/c/c8b1759e49003a5d0209aa5059d30d7ed6261c99
https://git.kernel.org/stable/c/b824024d2c8a2dcb3fca591c671153ad1e931691
https://git.kernel.org/stable/c/94a9bffd88863dbb1572b03fe9675b1a9c785067
https://git.kernel.org/stable/c/92480a2b00a15b0add512b6fc474151ec5340a8e
https://git.kernel.org/stable/c/8a9de35a24f6a987fbc8734eb3b67d1fb63d7e5b
https://git.kernel.org/stable/c/74cf6dfe833a10d60e1cbd1fe46f741a55e75f57
https://git.kernel.org/stable/c/4d3d97ccc6d064fa1363b2e39aa922bd211d28ef