Fix memory allocation exploit (driver mapped with user flag)

This commit is contained in:
EnderIce2 2024-02-28 05:35:10 +02:00
parent a49d4936e3
commit 1c59565553
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -203,7 +203,7 @@ namespace Driver
/* TODO: Check if this is correct and/or it needs more /* TODO: Check if this is correct and/or it needs more
complex calculations & allocations */ complex calculations & allocations */
void *SegmentsAddress = dVma->RequestPages(TO_PAGES(SegmentsSize) + 1, true); void *SegmentsAddress = dVma->RequestPages(TO_PAGES(SegmentsSize) + 1);
BaseAddress = (uintptr_t)SegmentsAddress; BaseAddress = (uintptr_t)SegmentsAddress;
debug("BaseAddress: %#lx, End: %#lx (%#lx)", BaseAddress, debug("BaseAddress: %#lx, End: %#lx (%#lx)", BaseAddress,
BaseAddress + FROM_PAGES(TO_PAGES(SegmentsSize)), BaseAddress + FROM_PAGES(TO_PAGES(SegmentsSize)),