From 37c63770d705bb45f867d9e88b587d45dffe736b Mon Sep 17 00:00:00 2001 From: Nguyen Trung Khanh Date: Sat, 4 Jul 2020 20:41:18 +0700 Subject: [PATCH] [NTOS:IO] Fix pool memory disclosure in IopQueueTargetDeviceEvent (#2966) --- ntoskrnl/io/pnpmgr/plugplay.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ntoskrnl/io/pnpmgr/plugplay.c b/ntoskrnl/io/pnpmgr/plugplay.c index c1d5baa816a..96bac114d27 100644 --- a/ntoskrnl/io/pnpmgr/plugplay.c +++ b/ntoskrnl/io/pnpmgr/plugplay.c @@ -64,6 +64,7 @@ IopQueueTargetDeviceEvent(const GUID *Guid, TotalSize + FIELD_OFFSET(PNP_EVENT_ENTRY, Event)); if (!EventEntry) return STATUS_INSUFFICIENT_RESOURCES; + RtlZeroMemory(EventEntry, TotalSize + FIELD_OFFSET(PNP_EVENT_ENTRY, Event)); /* Fill the buffer with the event GUID */ RtlCopyMemory(&EventEntry->Event.EventGuid,