From b8103265ec63fa87ac264c62bb796dbc38376652 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Thu, 17 Sep 2026 15:02:29 +0300 Subject: [PATCH] =?UTF-8?q?sys:=20FspFastIoDeviceControl:=20fix=20vulnerab?= =?UTF-8?q?ility=20reported=20by:=20Luigino=20Camastra=20=E2=80=94=20AISLE?= =?UTF-8?q?=20Research?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sys/devctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sys/devctl.c b/src/sys/devctl.c index d2d95947..57327fc4 100644 --- a/src/sys/devctl.c +++ b/src/sys/devctl.c @@ -68,7 +68,8 @@ BOOLEAN FspFastIoDeviceControl( Result = DEBUGTEST(50) && CanWait && FSP_IOCTL_TRANSACT == IoControlCode && - FspFsctlDeviceExtensionKind == FspDeviceExtension(DeviceObject)->Kind; + FspFsctlDeviceExtensionKind == FspDeviceExtension(DeviceObject)->Kind && + 0 != FileObject->FsContext2; if (!Result) FSP_RETURN();