From 62b70c95fd343e11a3fa6dd941222929379f3570 Mon Sep 17 00:00:00 2001 From: orbisai0security Date: Mon, 18 May 2026 05:06:45 +0000 Subject: [PATCH] fix: V-008 security vulnerability Automated security fix generated by OrbisAI Security --- KSystemInformer/util.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/KSystemInformer/util.c b/KSystemInformer/util.c index 52f3b873f..793bcba59 100644 --- a/KSystemInformer/util.c +++ b/KSystemInformer/util.c @@ -41,6 +41,16 @@ PVOID KphBinarySearch( { KPH_NPAGED_CODE_HIGH_MAX(); + if (!Key || !Base || !NumberOfElements || !SizeOfElement) + { + return NULL; + } + + if (SizeOfElement > (ULONG_MAX / NumberOfElements)) + { + return NULL; + } + return bsearch_s(Key, Base, NumberOfElements,