# CVE-2026-45608 — dhcpcsvc6.dll patch diff

`dhcpcsvc6.dll` 10.0.26100.8328 -> 10.0.26100.8655 (ghidriff).

## `DllMain`  (modified)

```diff
--- DllMain
+++ DllMain
@@ -1,26 +1,86 @@
 

 /* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

 

 undefined4 DllMain(HMODULE param_1,int param_2)

 

 {

-  BOOL BVar1;

-  HMODULE unaff_RDI;

-  PREGHANDLE in_R9;

-  undefined8 in_stack_00000048;

+  uint uVar1;

+  ulonglong in_RAX;

+  ulonglong extraout_RAX;

+  undefined1 local_res10 [16];

+  ULONGLONG local_res20;

   

-  _FastWppInitState = 1;

-  EventRegister((LPCGUID)&FastWppControlGuid,(PENABLECALLBACK)0x180001aa0,(PVOID)0x0,in_R9);

-  EventSetInformation(in_stack_00000048,4,0);

-  EventSetInformation(in_stack_00000048,3,&stack0x00000038);

-  FastWppRegHandle = in_stack_00000048;

-  EnterCriticalSection((LPCRITICAL_SECTION)&FastWppCallbackLock);

-  _FastWppInitState = CONCAT44(FastWppInitState_4,2);

-  LeaveCriticalSection((LPCRITICAL_SECTION)&FastWppCallbackLock);

-  BVar1 = DisableThreadLibraryCalls(unaff_RDI);

-  if (BVar1 == 0) {

-    return 0;

+  if (param_2 == 1) {

+    InitializeCriticalSection((LPCRITICAL_SECTION)&Dhcpv6GlobalOptionsListCritSect);

+    InitializeCriticalSection((LPCRITICAL_SECTION)&Dhcpv6GlobalApiCritSect);

+    InitializeCriticalSection((LPCRITICAL_SECTION)&Dhcpv6GlobalNicListCritSect);

+    InitializeCriticalSection((LPCRITICAL_SECTION)&Dhcpv6GlobalDuidAccessCritSect);

+    InitializeCriticalSection((LPCRITICAL_SECTION)&Dhcpv6GlobalIaidListCritSect);

+    Feature_CLAT_DHCP_Option108__private_IsEnabledDeviceUsageNoInline();

+    Feature_CLAT_Preview2_Dhcp108Default__private_IsEnabledDeviceUsageNoInline();

+    Feature_Servicing_Dhcpv4InformNegativeCacheResetTimersOnWakeFix__private_IsEnabledDeviceUsageNoInline

+              ();

+    uVar1 = Feature_58976313__private_IsEnabledDeviceUsageNoInline();

+    g_fVelocityDhcpv6MultiRecordOptionSupport = (uint)(uVar1 != 0);

+    Feature_CLAT_Preview2_DhcpIPxlatPolicyMgr__private_IsEnabledDeviceUsageNoInline();

+    Feature_CLAT_Preview2_DhcpOption108RenewFix__private_IsEnabledDeviceUsageNoInline();

+    Feature_61277108__private_IsEnabledDeviceUsageNoInline();

+    Feature_2263349562__private_IsEnabledDeviceUsageNoInline();

+    Feature_341032248__private_IsEnabledDeviceUsageNoInline();

+    Feature_3211771192__private_IsEnabledDeviceUsageNoInline();

+    Feature_849856826__private_IsEnabledDeviceUsageNoInline();

+    Feature_59101910__private_IsEnabledDeviceUsageNoInline();

+    Feature_60512953__private_IsEnabledDeviceUsageNoInline();

+    Feature_61186233__private_IsEnabledDeviceUsageNoInline();

+    uVar1 = Feature_61561226__private_IsEnabledDeviceUsageNoInline();

+    local_res20 = 0;

+    local_res10[0] = 1;

+    g_fVelocityDhcpRpcAuthnSvcUpdate = (uint)(uVar1 != 0);

+    uVar1 = Feature_ModernWpp__private_IsEnabledDeviceUsageNoInline();

+    if (uVar1 != 0) {

+      InitializeCriticalSection((LPCRITICAL_SECTION)&FastWppCallbackLock);

+      _g_rgFastWppLevelEnabledFlags = 0;

+      DAT_0 = 0;

+      DAT_1 = 0;

+      DAT_2 = 0;

+      _DAT_3 = 0;

+      uRam00000001800106e8 = 0;

+      FastWppInitState = 1;

+      EventRegister((LPCGUID)&FastWppControlGuid,FastWppCallback,(PVOID)0x0,&local_res20);

+      EventSetInformation(local_res20,4,0);

+      EventSetInformation(local_res20,3,local_res10);

+      FastWppRegHandle = local_res20;

+      EnterCriticalSection((LPCRITICAL_SECTION)&FastWppCallbackLock);

+      FastWppInitState = 2;

+      LeaveCriticalSection((LPCRITICAL_SECTION)&FastWppCallbackLock);

+    }

+    uVar1 = DisableThreadLibraryCalls(param_1);

+    in_RAX = (ulonglong)uVar1;

+    if (uVar1 == 0) {

+      return 0;

+    }

   }

-  return (int)CONCAT71((uint7)(uint3)((uint)BVar1 >> 8),1);

+  else if (param_2 == 0) {

+    uVar1 = Feature_ModernWpp__private_IsEnabledDeviceUsageNoInline();

+    if (uVar1 != 0) {

+      EventUnregister(FastWppRegHandle);

+      FastWppRegHandle = 0;

+      _g_rgFastWppLevelEnabledFlags = 0;

+      DAT_0 = 0;

+      DAT_1 = 0;

+      DAT_2 = 0;

+      _DAT_3 = 0;

+      uRam00000001800106e8 = 0;

+      DeleteCriticalSection((LPCRITICAL_SECTION)&FastWppCallbackLock);

+      FastWppInitState = 0;

+    }

+    DeleteCriticalSection((LPCRITICAL_SECTION)&Dhcpv6GlobalOptionsListCritSect);

+    DeleteCriticalSection((LPCRITICAL_SECTION)&Dhcpv6GlobalApiCritSect);

+    DeleteCriticalSection((LPCRITICAL_SECTION)&Dhcpv6GlobalNicListCritSect);

+    DeleteCriticalSection((LPCRITICAL_SECTION)&Dhcpv6GlobalDuidAccessCritSect);

+    DeleteCriticalSection((LPCRITICAL_SECTION)&Dhcpv6GlobalIaidListCritSect);

+    in_RAX = extraout_RAX;

+  }

+  return (int)CONCAT71((int7)(in_RAX >> 8),1);

 }
```

## `STRING_HANDLE_bind_helper`  (modified)

```diff
--- STRING_HANDLE_bind_helper
+++ STRING_HANDLE_bind_helper
@@ -1,32 +1,39 @@
 

 RPC_BINDING_HANDLE STRING_HANDLE_bind_helper(short *param_1)

 

 {

-  NTSTATUS NVar1;

-  undefined4 extraout_var;

-  RPC_BINDING_HANDLE pvVar2;

-  NET_LUID *in_RDX;

-  RPC_BINDING_HANDLE pvVar3;

+  RPC_STATUS RVar1;

+  ulong AuthnSvc;

+  RPC_WSTR local_res8;

+  RPC_BINDING_HANDLE local_res10;

+  RPC_BINDING_HANDLE local_res18;

   

-  if (param_1 == (short *)0x0) {

-    pvVar3 = (RPC_BINDING_HANDLE)0x57;

-  }

-  else {

-    if (*param_1 == 0x7b) {

-      pvVar2 = (RPC_BINDING_HANDLE)func_0x000180001390();

-    }

-    else {

-      NVar1 = ConvertInterfaceNameToLuidW(param_1,in_RDX);

-      pvVar2 = (RPC_BINDING_HANDLE)CONCAT44(extraout_var,NVar1);

-    }

-    pvVar3 = (RPC_BINDING_HANDLE)((ulonglong)pvVar2 & 0xffffffff);

-    if ((int)pvVar2 == 0) {

-      return pvVar2;

+  local_res8 = (RPC_WSTR)0x0;

+  local_res10 = (RPC_BINDING_HANDLE)0x0;

+  if (((param_1 == (short *)0x0) || (*param_1 == 0)) &&

+     (RVar1 = RpcStringBindingComposeW

+                        ((RPC_WSTR)0x0,(RPC_WSTR)L"ncalrpc",(RPC_WSTR)0x0,(RPC_WSTR)L"dhcpcsvc6",

+                         (RPC_WSTR)L"Security=Impersonation Dynamic False",&local_res8), RVar1 == 0)

+     ) {

+    RVar1 = RpcBindingFromStringBindingW(local_res8,&local_res10);

+    RpcStringFreeW(&local_res8);

+    if (RVar1 == 0) {

+      RVar1 = RpcBindingSetOption(local_res10,0xb,1);

+      if (RVar1 == 0) {

+        AuthnSvc = 0x14;

+        if (g_fVelocityDhcpRpcAuthnSvcUpdate == 0) {

+          AuthnSvc = 10;

+        }

+        RVar1 = RpcBindingSetAuthInfoW

+                          (local_res10,(RPC_WSTR)0x0,6,AuthnSvc,(RPC_AUTH_IDENTITY_HANDLE)0x0,0);

+        if (RVar1 == 0) {

+          return local_res10;

+        }

+      }

+      local_res18 = local_res10;

+      RpcBindingFree(&local_res18);

     }

   }

-  if ((DAT_0 & 2) != 0) {

-    WPP_SF_DS(0x401,0xb,0x18000c8c0,(int)pvVar3,(longlong)param_1);

-  }

-  return pvVar3;

+  return (RPC_BINDING_HANDLE)0x0;

 }
```
