Files
systemd/src/boot
Luca Boccassi 42e5b6d004 boot: bound PE section VirtualSize before zeroing the inner kernel
The inner-kernel section loader checks VirtualAddress + SizeOfRawData
against kernel_size_in_memory (for the memcpy), but the memzero right
after it clears up to VirtualAddress + VirtualSize, and VirtualSize is
only constrained to be >= SizeOfRawData.

Reject a VirtualAddress + VirtualSize that overflows or exceeds
kernel_size_in_memory, mirroring the existing SizeOfRawData checks.

Follow-up for cab9c7b5a4

(cherry picked from commit feeba8fa3b)
(cherry picked from commit 0f3dd7ab02)
(cherry picked from commit 2889746af2)
2026-07-23 22:34:28 +01:00
..
2024-11-07 14:52:06 +01:00
2025-05-22 11:10:20 +02:00
2024-11-07 14:52:06 +01:00
2025-05-22 11:10:20 +02:00
2024-11-07 14:52:06 +01:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2024-11-07 14:52:06 +01:00
2025-05-22 11:10:20 +02:00
2025-02-25 21:08:38 +01:00
2024-11-07 14:52:06 +01:00
2025-05-22 11:10:20 +02:00
2024-11-07 14:52:06 +01:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2024-11-07 14:52:06 +01:00