From 1c59565553cf8dca834195622706f756a8413719 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Wed, 28 Feb 2024 05:35:10 +0200 Subject: [PATCH] Fix memory allocation exploit (driver mapped with user flag) --- core/driver/driver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/driver/driver.cpp b/core/driver/driver.cpp index 32b819d8..b305fd6d 100644 --- a/core/driver/driver.cpp +++ b/core/driver/driver.cpp @@ -203,7 +203,7 @@ namespace Driver /* TODO: Check if this is correct and/or it needs more complex calculations & allocations */ - void *SegmentsAddress = dVma->RequestPages(TO_PAGES(SegmentsSize) + 1, true); + void *SegmentsAddress = dVma->RequestPages(TO_PAGES(SegmentsSize) + 1); BaseAddress = (uintptr_t)SegmentsAddress; debug("BaseAddress: %#lx, End: %#lx (%#lx)", BaseAddress, BaseAddress + FROM_PAGES(TO_PAGES(SegmentsSize)),