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
..
2026-02-26 10:24:32 +00:00
2026-06-26 16:24:12 +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
2026-06-26 16:24:12 +01:00
2025-08-11 11:18:53 +02:00
2025-11-26 19:02:31 +09:00
2025-06-24 00:48:38 +09:00
2025-05-21 10:50:25 +02:00
2026-05-27 12:20:19 +01:00
2025-05-22 11:10:20 +02:00
2026-07-23 22:33:27 +01:00
2026-07-23 22:33:27 +01:00
2026-05-27 12:20:18 +01:00
2024-11-07 14:52:06 +01:00
2025-09-18 08:54:52 +09: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
2026-07-23 22:33:27 +01:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2025-12-15 08:50:13 +09:00
2026-05-27 12:20:19 +01:00
2025-11-22 10:19:41 +01:00
2025-11-26 19:02:31 +09:00
2026-02-06 14:29:11 +00:00
2025-05-22 11:10:20 +02:00
2026-06-26 16:24:12 +01:00
2025-07-14 20:56:22 +01:00
2025-11-05 05:16:34 +09:00
2024-11-07 14:52:06 +01:00
2024-11-07 14:52:06 +01:00
2025-05-22 11:10:20 +02:00
2025-07-26 05:00:02 +09:00
2025-07-25 12:33:13 +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
2024-11-07 14:52:06 +01:00
2025-05-22 11:10:20 +02:00
2025-02-25 21:08:38 +01:00
2026-05-27 12:20:17 +01:00
2026-07-23 22:34:28 +01:00
2024-11-07 14:52:06 +01:00
2026-04-13 13:12:53 +01:00
2025-11-26 19:02:31 +09:00
2026-06-26 16:24:12 +01:00
2026-07-23 22:32:19 +01:00
2024-11-07 14:52:06 +01:00
2026-07-23 22:34:28 +01:00
2026-06-26 16:24:12 +01:00
2026-06-26 16:24:12 +01:00
2024-11-07 14:52:06 +01:00
2025-12-15 08:50:13 +09:00
2025-09-24 18:22:12 +09:00
2025-11-26 16:22:00 +09:00
2025-05-09 17:07:14 +01:00
2025-05-22 11:10:20 +02:00
2025-02-21 10:04:15 +01:00
2026-05-27 12:20:18 +01:00
2024-11-07 14:52:06 +01:00
2026-02-06 14:29:09 +00:00
2025-05-12 15:37:47 +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
2026-05-27 12:20:17 +01:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2025-05-20 10:29:59 +02:00
2024-11-07 14:52:06 +01:00
2025-02-21 10:03:32 +01:00
2025-04-23 10:33:38 +02:00
2026-06-26 16:24:12 +01:00
2026-06-26 16:24:12 +01:00
2026-07-23 22:33:27 +01:00
2024-11-07 14:52:06 +01:00