https://git.reactos.org/?p=reactos.git;a=commitdiff;h=37c63770d705bb45f867d…
commit 37c63770d705bb45f867d9e88b587d45dffe736b
Author: Nguyen Trung Khanh <nguyentrungkhanh97(a)gmail.com>
AuthorDate: Sat Jul 4 20:41:18 2020 +0700
Commit: GitHub <noreply(a)github.com>
CommitDate: Sat Jul 4 15:41:18 2020 +0200
[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,