From adf534b28418fc18f66fa1ea7cd4726a86873fba Mon Sep 17 00:00:00 2001 From: Dmitry Borisov Date: Tue, 6 Feb 2024 19:45:24 +0600 Subject: [PATCH] [NTOS:IO] Initialize InterruptObject to NULL on failure Fixes a pool corruption when trying to handle IRP_MN_REMOVE_DEVICE in the driver CORE-17256 --- ntoskrnl/io/iomgr/irq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ntoskrnl/io/iomgr/irq.c b/ntoskrnl/io/iomgr/irq.c index f82d58d44c1..2fed5d1703c 100644 --- a/ntoskrnl/io/iomgr/irq.c +++ b/ntoskrnl/io/iomgr/irq.c @@ -112,6 +112,7 @@ IoConnectInterrupt(OUT PKINTERRUPT *InterruptObject, } /* And fail */ + *InterruptObject = NULL; return STATUS_INVALID_PARAMETER; }