# CVE-2026-42904 — netio.sys patch diff

`netio.sys` 10.0.26100.8457 -> 10.0.26100.8655 (ghidriff).

## `WfpUnifiedTraceStart`  (modified)

```diff
--- WfpUnifiedTraceStart
+++ FUN_140078e8c
@@ -1,66 +1,42 @@
 

-longlong WfpUnifiedTraceStart(undefined8 param_1,undefined8 param_2)

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

+

+longlong FUN_140078e8c(void)

 

 {

-  uint *puVar1;

-  uint uVar2;

-  char *in_RAX;

-  ulonglong uVar3;

-  uint uVar4;

-  int unaff_EBX;

-  char cVar5;

-  uint unaff_EDI;

-  undefined1 in_R8B;

-  undefined1 in_R9B;

-  char cVar6;

-  undefined7 in_register_00000089;

-  longlong in_R10;

-  undefined8 in_stack_00000050;

+  int iVar1;

+  longlong lVar2;

+  undefined8 *puVar3;

+  char *pcVar4;

   

-  *in_RAX = *in_RAX + (char)in_RAX;

-  cVar5 = (char)unaff_EDI;

-  if ((int)in_RAX == 1) {

-    *(undefined1 *)(in_R10 + 0x28) = in_R8B;

-    *(undefined8 *)(in_R10 + 0x18) = in_stack_00000050;

-    *(ulonglong *)(in_R10 + 0x10) = CONCAT71(in_register_00000089,in_R9B);

-    *(undefined4 *)(in_R10 + 0x24) = (undefined4)param_2;

-    if ((ushort)unaff_EDI < *(ushort *)(in_R10 + 0x2a)) {

-      do {

-        uVar3 = *(ulonglong *)(*(longlong *)(in_R10 + 0x38) + (ulonglong)unaff_EDI * 8);

-        cVar6 = cVar5;

-        if (((*(byte *)((ulonglong)unaff_EDI + *(longlong *)(in_R10 + 0x40)) <=

-              *(byte *)(in_R10 + 0x28)) || (*(byte *)(in_R10 + 0x28) == 0)) &&

-           ((uVar3 == 0 ||

-            (((*(ulonglong *)(in_R10 + 0x10) & uVar3) != 0 &&

-             ((*(ulonglong *)(in_R10 + 0x18) & uVar3) == *(ulonglong *)(in_R10 + 0x18))))))) {

-          cVar6 = '\x01';

-        }

-        uVar4 = 1 << ((byte)unaff_EDI & 0x1f);

-        puVar1 = (uint *)(*(longlong *)(in_R10 + 0x30) + (ulonglong)(unaff_EDI >> 5) * 4);

-        uVar2 = *puVar1;

-        if (cVar6 == '\0') {

-          uVar4 = ~uVar4 & uVar2;

-        }

-        else {

-          uVar4 = uVar4 | uVar2;

-        }

-        *puVar1 = uVar4;

-        unaff_EDI = unaff_EDI + 1;

-      } while (unaff_EDI < *(ushort *)(in_R10 + 0x2a));

+  if (DAT_0 == 0) {

+    puVar3 = (undefined8 *)&DAT_1;

+    iVar1 = FUN_1400778ec();

+    if (iVar1 < 0) {

+      pcVar4 = "EventRegisterMicrosoft_Windows_WFP";

+LAB_2:

+      lVar2 = FUN_14001f828(puVar3,pcVar4,iVar1,1);

+      if (lVar2 == 0) {

+        return 0;

+      }

+      FUN_14001ed60(lVar2,"WfpUnifiedTraceStart");

+      return lVar2;

+    }

+    if ((DAT_3 == 0) &&

+       (iVar1 = EtwRegister(&DAT_4,FUN_140078f80,0,&DAT_1400949e0), iVar1 != 0)) {

+      puVar3 = &DAT_5;

+      FUN_140077910(&DAT_5);

+      if (iVar1 < 0) {

+        pcVar4 = "NetTrcRegisterCorrelationProvider";

+        goto LAB_2;

+      }

+    }

+    else {

+      _DAT_6 = 0x41b103510c478c5b;

+      uRam00000001400949f8 = 0xe332da37674a588c;

     }

   }

-  if ((DAT_0 & 0x10) == 0) {

-    uVar3 = FUN_140077fd8();

-  }

-  else {

-    uVar3 = (ulonglong)(DAT_0 & 1);

-  }

-  cVar6 = DAT_1;

-  if ((((int)uVar3 == 0) && (cVar6 = cVar5, unaff_EBX != 0)) &&

-     (cVar6 = DAT_1, unaff_EBX == 1)) {

-    cVar6 = '\x01';

-  }

-  DAT_1 = cVar6;

-  return uVar3;

+  DAT_0 = DAT_140094040;

+  return 0;

 }
```

## `KfdStopModule`  (modified)

```diff
--- KfdStopModule
+++ FUN_1400a24e0
@@ -1,11 +1,54 @@
 

-void KfdStopModule(undefined8 *param_1,undefined8 param_2,_GUID *param_3)

+void FUN_1400a24e0(undefined8 *param_1,undefined8 param_2,undefined *param_3)

 

 {

-  code *pcVar1;

+  uint uVar1;

+  ulonglong uVar2;

+  longlong local_res8 [4];

   

-  pcVar1 = (code *)swi(3);

-  (*pcVar1)();

+  *(undefined4 *)(DAT_0 + 0xb8) = 0;

+  if ((DAT_1 & 0x10) == 0) {

+    uVar2 = FUN_140065ffc();

+    uVar1 = (uint)uVar2;

+  }

+  else {

+    uVar1 = DAT_1 & 1;

+  }

+  if (uVar1 == 0) {

+    param_2 = 1;

+    param_1 = DAT_2;

+    FUN_14006cfec(DAT_2,1);

+  }

+  FUN_14006a410();

+  FUN_14006bd54(param_1,param_2,param_3);

+  FUN_140064614();

+  FUN_140068d58(0);

+  while (*(int *)(DAT_0 + 0x4a8) != 0) {

+    FUN_14006c5b4();

+    if ((((undefined8 **)DAT_3 != &DAT_3) &&

+        (3 < *(byte *)((longlong)DAT_3 + 0x29))) &&

+       ((*(uint *)((longlong)DAT_3 + 0x2c) & 0x2000) != 0)) {

+      param_3 = &DAT_4;

+      param_2 = 0xd;

+      FUN_140054a00(DAT_3[3],0xd,&DAT_140085fa8);

+    }

+  }

+  if ((((undefined8 **)DAT_3 != &DAT_3) &&

+      (3 < *(byte *)((longlong)DAT_3 + 0x29))) &&

+     ((*(uint *)((longlong)DAT_3 + 0x2c) & 0x2000) != 0)) {

+    param_3 = &DAT_4;

+    param_2 = 0xe;

+    FUN_140054a00(DAT_3[3],0xe,&DAT_140085fa8);

+  }

+  if (DAT_5 != 0) {

+    local_res8[0] = DAT_5;

+    FUN_140075774(local_res8);

+  }

+  FUN_1400a56c4(&DAT_6,param_2,param_3);

+  if (DAT_7 != 0) {

+    NetioFreeStackBlock(DAT_7,0x53706657);

+    DAT_7 = 0;

+  }

   return;

 }
```

## `McGenEventRegister_EtwRegister`  (modified)

```diff
--- McGenEventRegister_EtwRegister
+++ FUN_1400778ec
@@ -1,44 +1,12 @@
 

-/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

-

-void McGenEventRegister_EtwRegister

-               (undefined8 *param_1,undefined8 param_2,undefined8 param_3,longlong *param_4)

+void FUN_1400778ec(void)

 

 {

-  longlong *unaff_RBP;

-  undefined8 uStack0000000000000058;

-  undefined8 uStack0000000000000068;

+  longlong *in_R9;

   

-  *(int *)((longlong)unaff_RBP + 0x3c) = (int)param_2;

-  unaff_RBP[-0x10] = (longlong)(unaff_RBP + 0x13);

-  unaff_RBP[-0xe] = unaff_RBP[0x14];

-  uStack0000000000000058 = 4;

-  *(int *)(unaff_RBP + -0xd) = (int)unaff_RBP[0x13] * 2;

-  unaff_RBP[-0xc] = (longlong)(unaff_RBP + 0x15);

-  unaff_RBP[-10] = (longlong)(unaff_RBP + 0x16);

-  unaff_RBP[-8] = (longlong)(unaff_RBP + 0x17);

-  unaff_RBP[-6] = (longlong)(unaff_RBP + 0x18);

-  unaff_RBP[-4] = (longlong)(unaff_RBP + 0x19);

-  unaff_RBP[-2] = (longlong)(unaff_RBP + 0x1a);

-  *unaff_RBP = (longlong)(unaff_RBP + 0x1b);

-  unaff_RBP[2] = (longlong)&stack0x00000030;

-  unaff_RBP[4] = (longlong)(unaff_RBP + 0x1d);

-  unaff_RBP[6] = unaff_RBP[0x1e];

-  uStack0000000000000068 = 4;

-  *(int *)(unaff_RBP + 7) = (int)unaff_RBP[0x1d] * 2;

-  unaff_RBP[8] = (longlong)(unaff_RBP + 0x1f);

-  unaff_RBP[-0xf] = 4;

-  unaff_RBP[-0xb] = 4;

-  unaff_RBP[-9] = 4;

-  unaff_RBP[-7] = 4;

-  unaff_RBP[-5] = 8;

-  unaff_RBP[-3] = 4;

-  unaff_RBP[-1] = 8;

-  unaff_RBP[1] = 4;

-  unaff_RBP[3] = 4;

-  unaff_RBP[5] = 4;

-  unaff_RBP[9] = 4;

-  FUN_140032950(param_1,&DAT_0,param_3,(int)param_2 + 0x11,(undefined8 *)&stack0x00000040);

+  if (*in_R9 == 0) {

+    EtwRegister();

+  }

   return;

 }
```

## `PdcInitializeETW`  (modified)

```diff
--- PdcInitializeETW
+++ FUN_140077af8
@@ -1,42 +1,19 @@
 

-/* WARNING: Instruction at (ram,0x000140077bc8) overlaps instruction at (ram,0x000140077bc6)

-    */

-

-void PdcInitializeETW(undefined8 param_1,undefined8 param_2)

+void FUN_140077af8(void)

 

 {

-  char cVar1;

-  ulonglong in_RAX;

-  ulonglong uVar2;

-  undefined8 *puVar3;

-  undefined8 *unaff_RBP;

-  longlong unaff_RSI;

-  longlong in_R8;

-  short in_R9W;

-  undefined4 in_R10D;

-  bool bVar4;

-  undefined8 in_stack_ffffffffffffb621;

-  undefined8 uStack_10;

+  int iVar1;

+  bool bVar2;

   

-  *(char *)(in_RAX + 0x74) = *(char *)(in_RAX + 0x74) + (byte)in_RAX;

-  *(int *)(in_RAX - 0x7d) = *(int *)(in_RAX - 0x7d) - (int)param_1;

-  puVar3 = (undefined8 *)&stack0xfffffffffffffff8;

-  cVar1 = '\x1e';

-  do {

-    unaff_RBP = unaff_RBP + -1;

-    puVar3 = puVar3 + -1;

-    *puVar3 = *unaff_RBP;

-    cVar1 = cVar1 + -1;

-  } while ('\0' < cVar1);

-  *(undefined1 *)(unaff_RSI + 0x45) = 0;

-  uVar2 = in_RAX | 0x40;

-  bVar4 = (byte)((byte)in_RAX | 0x40) == 0;

-  while (!bVar4) {

-    uVar2 = uVar2 + 1;

-    bVar4 = *(short *)(in_R8 + uVar2 * 2) == in_R9W;

+  LOCK();

+  iVar1 = DAT_0 + 1;

+  UNLOCK();

+  bVar2 = DAT_0 == 0;

+  DAT_0 = iVar1;

+  if (bVar2) {

+    FUN_1400778ec();

+    FUN_1400a1120(0x140094188,0,0);

   }

-  FUN_140052838(param_1,&DAT_0,in_R10D,(undefined4)param_2,in_stack_ffffffffffffb621,

-                (int)uVar2,in_R8);

   return;

 }
```

## `NDIS.SYS::NdisAcquireRWLockRead`  (modified)

```diff
--- NDIS.SYS::NdisAcquireRWLockRead calling
+++ NDIS.SYS::NdisAcquireRWLockRead calling
@@ -1,6 +1,13 @@
-ArbitrateAndEnforce
-CompareSecurityContexts
-FindIntFilter
-FindIntFilterNoLock
-FindMatchingEntries
-IndexHashClassify
+FUN_140004640
+FUN_14000a920
+FUN_14000b400
+FUN_14000d950
+FUN_14000dcb8
+FUN_140010cf0
+FUN_1400111d0
+FUN_14001f4b4
+FUN_14001fa98
+FUN_1400200b0
+FUN_140021620
+FUN_140021c30
+FUN_14004ed60
@@ -8,8 +14,0 @@
-ProcessCacheMiss
-ProcessCallout
-ProcessCallout2
-UpdateCacheLruBucket
-UpdateLayerClassifyStat
-WfpAcquireFastReadLock
-WfpFindAndDeRefFlowContext
-WfpFindAndRefFlowContext
```

## `NTOSKRNL.EXE::KeGetCurrentIrql`  (modified)

```diff
--- NTOSKRNL.EXE::KeGetCurrentIrql calling
+++ NTOSKRNL.EXE::KeGetCurrentIrql calling
@@ -1,9 +1,40 @@
-ArbitrateAndEnforce
-FeUnregisterCalloutEntry
-FreeMatchBufEntry
-FreeMatchBufListInternal
-GetNextFilter
-HandleFilterDeref
-IndexListClassify
-IndexTrieDeleteFilter
-InsertEventEntryInLookUpTable
+FUN_140001cc4
+FUN_140004640
+FUN_140005de4
+FUN_1400066c4
+FUN_1400073e0
+FUN_140009250
+FUN_1400093f0
+FUN_140009f24
+FUN_14000a070
+FUN_14000a1a0
+FUN_14000ab30
+FUN_140010cf0
+FUN_1400111d0
+FUN_140012bc0
+FUN_140016140
+FUN_1400193c4
+FUN_140019ad8
+FUN_14001b6d0
+FUN_14001bcd0
+FUN_14001f1b0
+FUN_1400200b0
+FUN_140021620
+FUN_140021c30
+FUN_1400231c4
+FUN_140023f2c
+FUN_14002f5d8
+FUN_14002f878
+FUN_14002fb14
+FUN_1400306d0
+FUN_140036110
+FUN_14004030c
+FUN_140045968
+FUN_1400493bc
+FUN_14004d650
+FUN_14004e0e0
+FUN_14004ed60
+FUN_140051ed0
+FUN_140060b10
+FUN_1400634f4
+FUN_140065a58
@@ -11 +41,0 @@
-KfdAleFindFlowContextTable
@@ -13 +42,0 @@
-KfdAleInsertFlowContextTable
@@ -17 +45,0 @@
-KfdClearFastCalloutState
@@ -20,2 +47,0 @@
-MicrosoftTelemetryAssertTriggeredWorker
-NmrfpSetAllFilterParameters
@@ -25 +50,0 @@
-NsiParameterChange
@@ -29,25 +53,0 @@
-NsipGetBootFirmwareTableFromSystemInformation
-NsipRpcAcquireHandle
-OptionalReleaseEffectiveMatchedFilters
-ProcessCallout
-ProcessCallout2
-StreamCanPermitInline
-StreamHandleDataClassify
-StreamInject
-StreamInvokeCalloutAndNormalizeAction
-StreamPermitRemoveDataWorkerRoutine
-StreamUnpublishClassifyData
-UpdateCacheLruBucket
-UpdateLayerClassifyStat
-WfpAcquireFastReadLock
-WfpAcquireFastWriteLock
-WfpAcquireSpinLock
-WfpAssociateContextToFlowInternal
-WfpAuditBindEvent
-WfpAuditConnectAcceptEvent
-WfpAuditEventGeneral
-WfpAuditEventVeto
-WfpAuditFirewallAuditEvent
-WfpAuditListenEvent
-WfpFindAndDeRefFlowContext
-WfpFindAndRefFlowContext
```
