AdguardForWindows icon indicating copy to clipboard operation
AdguardForWindows copied to clipboard

BSOD: adgnetworkwfpdrv.sys causes NETIO.SYS access violation (KMODE_EXCEPTION_NOT_HANDLED)

Open JinkaiNiu opened this issue 6 months ago • 4 comments

================================================================================ Bug Report: BSOD Caused by adgnetworkwfpdrv.sys (NETIO Access Violation)

[1] PRODUCT INFORMATION

Product : AdGuard for Windows Version : 7.22.5271.0 Driver File : adgnetworkwfpdrv.sys Driver Version : 8.0.84.0 Driver Description: AdGuard for Windows wfp filter driver x64 for Windows 8+ (1.7.2.0; nfsdk 1.7.4.9) Publisher : Adguard Software Limited Copyright : Copyright (C) AdGuard Software Limited 2026

[2] SYSTEM INFORMATION

OS : Windows 10 Pro for Workstations OS Version : 10.0.26100.1 (ge_release) / Build 26200 Platform : x64 Model : Lenovo Legion Y7000 2020 (82AV) BIOS Revision : 1.59 CPU : Intel Core i5-10300H @ 2.50GHz (4C/8T) GPU : NVIDIA GeForce GTX 1650 (Driver 32.0.15.9649) Intel UHD Graphics (Driver 31.0.101.2115) WiFi : Intel Wi-Fi 6 AX201 160MHz Disk : SAMSUNG MZVLB512HBJQ-000L2 (SSD, Healthy)

[3] BUG DESCRIPTION

A BSOD (Blue Screen of Death) occurred while AdGuard was running with WFP-based network filtering enabled. The system crashed with KMODE_EXCEPTION_NOT_HANDLED (0x1E), caused by an ACCESS_VIOLATION (0xC0000005) in NETIO.SYS during stream callout processing initiated by adgnetworkwfpdrv.sys.

The system had been running for approximately 1 day 3 hours 34 minutes before the crash. Prior to the BSOD, an NVIDIA driver warning (nvlddmkm Event ID 153) was logged approximately 1 hour 42 minutes earlier, which may have been a contributing factor.

[4] BUGCHECK DETAILS

BugCheck Code : 0x0000001E (KMODE_EXCEPTION_NOT_HANDLED) Parameter 1 : 0xFFFFFFFFC0000005 (EXCEPTION_ACCESS_VIOLATION) Parameter 2 : 0xFFFFF8014C9C38A8 (Exception address) Parameter 3 : 0xFFFFD005F9EEEB18 Parameter 4 : 0xFFFFD005F9EEE320

Failure Bucket : AV_NETIO!StreamCalloutProcessingLoop Faulting Module : NETIO.SYS Faulting IP : NETIO!StreamCalloutProcessingLoop+0x44 Faulting Inst : mov r8d, dword ptr [rbx+0C4h] Process : System (kernel thread)

[5] STACK TRACE (WinDbg !analyze -v)

ffffd005f9eeda68 fffff801b89adc1f : nt!KeBugCheckEx ffffd005f9eeda70 fffff801b8ac90b6 : nt!KiFatalFilter+0x1f ffffd005f9eedab0 fffff801b88f829c : nt!KeExpandKernelStackAndCalloutInternal$filt$0+0x16 ffffd005f9eedaf0 fffff801b8ab257f : nt!_C_specific_handler+0x9c ffffd005f9eedb60 fffff801b8631c62 : nt!RtlpExecuteHandlerForException+0xf ffffd005f9eedb90 fffff801b87e07cf : nt!RtlDispatchException+0x2d2 ffffd005f9eee2f0 fffff801b8abd045 : nt!KiDispatchException+0x35f ffffd005f9eee9e0 fffff801b8ab8182 : nt!KiExceptionDispatch+0x145 ffffd005f9eeebc0 fffff8014c9c38a8 : nt!KiPageFault+0x442 ffffd005f9eeed50 fffff8014c9c2544 : NETIO!StreamCalloutProcessingLoop+0x44 <-- CRASH ffffd005f9eeee10 fffff8014c9c08f1 : NETIO!StreamProcessCallout+0x2f4 ffffd005f9eeef40 fffff8014c9ef38f : NETIO!ProcessCallout+0x821 ffffd005f9eef030 fffff8014c9f286d : NETIO!ArbitrateAndEnforce+0x5af ffffd005f9eef1a0 fffff801b8633044 : NETIO!ArbitrateAndEnforceCallout+0x4d ffffd005f9eef200 fffff801b8632f5d : nt!KeExpandKernelStackAndCalloutInternal+0xd4 ffffd005f9eef270 fffff8014c9db686 : nt!KeExpandKernelStackAndCalloutEx+0x1d ffffd005f9eef2b0 fffff8014c9ba663 : NETIO!NetioExpandKernelStackAndCallout+0x56 ffffd005f9eef300 fffff8014c9b9d55 : NETIO!KfdClassify+0x673 ffffd005f9eef630 fffff8014c9b962b : NETIO!StreamInternalClassify+0x115 ffffd005f9eef790 fffff8014c9f110b : NETIO!StreamInject+0x247 ffffd005f9eef870 fffff8014ce326a7 : NETIO!FwppStreamInject+0x28b ffffd005f9eef910 fffff8014d5ab51f : fwpkclnt!FwpsStreamInjectAsync0+0x127 ffffd005f9eef9b0 fffff8014d5a8ad3 : adgnetworkwfpdrv+0xb51f <-- AdGuard driver call ffffd005f9eefa80 fffff801b887eaba : adgnetworkwfpdrv+0x8ad3 <-- AdGuard driver call ffffd005f9eefaf0 fffff801b8aaa0a4 : nt!PspSystemThreadStartup+0x5a ffffd005f9eefb40 0000000000000000 : nt!KiStartSystemThread+0x34

[6] ROOT CAUSE ANALYSIS

The crash was triggered by adgnetworkwfpdrv.sys (AdGuard WFP filter driver) calling fwpkclnt!FwpsStreamInjectAsync0() to inject a network stream into the Windows Filtering Platform. This call chain propagated through NETIO.SYS where an access violation occurred at StreamCalloutProcessingLoop+0x44 (attempting to dereference a memory pointer at [rbx+0xC4h] that was invalid).

The call path is: adgnetworkwfpdrv.sys (WFP stream inject) -> fwpkclnt!FwpsStreamInjectAsync0 -> NETIO!FwppStreamInject -> NETIO!StreamInject -> NETIO!StreamInternalClassify -> NETIO!KfdClassify -> NETIO!NetioExpandKernelStackAndCallout -> NETIO!ProcessCallout -> NETIO!StreamProcessCallout -> NETIO!StreamCalloutProcessingLoop+0x44 *** CRASH ***

The access violation indicates that adgnetworkwfpdrv.sys either: a) Passed an invalid or already-freed memory buffer to the WFP API, or b) The WFP callout context was corrupted before the driver invoked FwpsStreamInjectAsync0()

[7] ADDITIONAL NOTES

  • An NVIDIA driver warning (nvlddmkm Event ID 153) was logged at 22:31, approximately 1h42m before the BSOD at 00:13. While not directly in the crash stack, GPU driver instability may have contributed to the system state that led to this crash.

  • The dump is a Kernel Bitmap Dump (~1.83 GB). Full memory (MEMORY.DMP) is available at C:\WINDOWS\MEMORY.DMP if needed for further analysis.

  • The adgnetworkwfpdrv.sys has no public symbols on Microsoft Symbol Server, so the exact function names within the driver could not be resolved.

================================================================================ END OF REPORT

JinkaiNiu avatar May 20 '26 16:05 JinkaiNiu

Supplementary Files

Minidump and full analysis report have been uploaded as supporting evidence:

  • Gist (includes minidump + report): https://gist.github.com/JinkaiNiu/6a1cba9bba27ea21f6ce412b0e332bd5

Key files in the gist:

  • AdGuard_BSOD_Report.txt — Complete crash analysis with stack trace
  • minidump.dmp — Kernel minidump (3.3 MB, extracted from full 1.83 GB MEMORY.DMP with WinDbg)

Crash Summary:

  • BugCheck: 0x1E KMODE_EXCEPTION_NOT_HANDLED (0xC0000005 ACCESS_VIOLATION)
  • Fault module: NETIO.SYS at StreamCalloutProcessingLoop+0x44
  • Root driver: adgnetworkwfpdrv.sys v8.0.84.0 calling FwpsStreamInjectAsync0()
  • AdGuard version: 7.22.5271.0
  • OS: Windows 10 Pro for Workstations Build 26100

The full MEMORY.DMP (1.83 GB) is also available if needed for deeper investigation.

JinkaiNiu avatar May 20 '26 17:05 JinkaiNiu

Use SockFilter. WFP is bad

De-M-oN avatar May 20 '26 21:05 De-M-oN

Use SockFilter. WFP is bad

OK thank you

JinkaiNiu avatar May 20 '26 23:05 JinkaiNiu

@JinkaiNiu Hello!

This is a known issue. Unfortunately, BSODs related to the WFP driver and netio.sys cannot be completely resolved due to the driver’s architectural limitations. At the moment, a more stable approach is to use SockFilter or TDI drivers, as they are inherently unaffected by this problem.

We have created a separate issue to track our continued investigation into WFP-related BSODs. You can follow the progress here: https://github.com/AdguardTeam/AdguardForWindows/issues/5792

We are closing this ticket for now, as we have already gathered all the necessary information.

AlexandrPkhm avatar May 21 '26 08:05 AlexandrPkhm