From 182cc5c5ab027790276c1c06c587d7b9057612a0 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sat, 8 Dec 2018 19:51:30 +0100 Subject: [PATCH] [NTOSKRNL] Don't dereference VACB when allocating its memory area fails This avoids performing a double-free (even though that's hidden by the fact we use lookaside allocations for VACB), and it avoids freeing a memory address at an uninitialized address. We don't care about references here, the VACB was just allocated, never linked and we're its only user. CORE-15413 --- ntoskrnl/cc/view.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ntoskrnl/cc/view.c b/ntoskrnl/cc/view.c index b9c49309868..d7dcfe1ff74 100644 --- a/ntoskrnl/cc/view.c +++ b/ntoskrnl/cc/view.c @@ -833,7 +833,6 @@ Retry: goto Retry; } - CcRosVacbDecRefCount(current); ExFreeToNPagedLookasideList(&VacbLookasideList, current); return Status; } -- 2.17.1