Files
Mikhail Zaslonko a8a87779c0 zdump/dfi_lkcd: Validate LKCD page address against mem_end
mem_init_flex() allocates the page header index array sized for
ADDR_TO_IDX(mem_end) + 1 entries, but never checked that each
page record's address falls within [0, mem_end).
A crafted LKCD page record with addr >= mem_end writes 8 bytes
beyond the allocation.

Fix by rejecting any page record whose address is > mem_end - PAGE_SIZE
with ERR_EXIT(), immediately after the end-of-dump marker check.

Signed-off-by: Mikhail Zaslonko <zaslonko@linux.ibm.com>
Reviewed-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
2026-07-20 15:25:59 +02:00
..
2019-12-12 18:04:32 +01:00
2022-10-22 20:27:16 +02:00
2019-12-12 18:04:32 +01:00
2021-12-09 16:19:25 +01:00
2024-05-27 16:54:10 +02:00
2022-11-29 17:03:57 +01:00
2021-11-10 15:12:10 +01:00