BSOD when using WFP driver
Please answer the following questions for yourself before submitting an issue
- [x] Filters were updated before reproducing an issue
- [x] I checked the knowledge base and found no answer
- [x] I checked to make sure that this issue has not already been filed
AdGuard version
7.22.3 / 8.0
Browser version
Chrome 142+
OS version
Windows 11
Issue Details
This issue is created to collect and track user reports of BSOD occurrences related to WFP driver after migration from TDI driver.
The migration was introduced as part of AdGuard for Windows 7.22.3 to address filtering issues in modern Chromium-based browsers (Chrome 142+), where traffic is no longer visible to legacy TDI driver - more information in release notes.
While migration resolves filtering problem, some users report system instability and BSODs when using WFP driver, which requires investigation and correlation across reports.
Expected Behavior
- AdGuard works stably with the WFP driver enabled
- Traffic filtering functions correctly in Chromium-based browsers (Chrome 142+)
- No system instability, crashes, or BSODs occur during normal operation
Actual Behavior
- With WFP driver enabled, some users experience system crashes (BSOD)
- The issue appears after automatic migration from TDI driver in version 7.22.3
Additional Information
For more technical details about causes of the original TDI driver limitations, architectural changes in modern Chromium-based browsers, and temporary workarounds, please refer to the AdGuard Knowledge Base article.
This article explains why TDI became incompatible, how traffic routing changed in Chrome 142+, and what interim solutions were used before migration to WFP driver.
I’m experiencing regular BSODs on Windows 11 that clearly point to AdGuard Network WFP Driver as the root cause.
Environment:
OS: Windows 11 (Version 10.0.26100.3476) (the issue also occurred on earlier Windows 11 builds — this has been happening for at least ~2 years)
Architecture: x64
Browser: Google Chrome Version 143.0.7499.110 (BSOD usually happens while actively browsing / downloading / streaming)
AdGuard 7.22.3 (5240) installed with network filtering enabled
BSOD details:
Stop code: KMODE_EXCEPTION_NOT_HANDLED
What failed: NETIO.SYS
WinDbg analysis: The crash always occurs inside NETIO.SYS, but the stack trace clearly shows a third-party WFP callout:
fwpkclnt!FwpsStreamInjectAsync0 adgnetworkwfpdrv.sys + 0xb4af
Failing function:
NETIO!StreamOptionalSeparateDisconnectFromData
Exception:
0xC0000005 (ACCESS_VIOLATION)
You'll need to post the minidumps.
Have same issue with BSODs failed with NETIO.SYS after updated to 7.22.3.
Win 11 + Norton Security Deluxe + IDM After reading another issue threads and waiting for sockfilter, seems also WFP will be still used, so will post here dumps also. (have blackout now at home).
it seems all my dumps shows:
PROCESS_NAME: NortonSvc.exe
IP_IN_PAGED_CODE: NETIO!StreamInvokeCalloutAndNormalizeAction+5c
BUGCHECK_CODE: 3b
BUGCHECK_P1: c0000005
BUGCHECK_P2: fffff8012097c4e4
BUGCHECK_P3: ffffb90ba26d9430
BUGCHECK_P4: 0
...
CUSTOMER_CRASH_COUNT: 1
PROCESS_NAME: NortonSvc.exe
IP_IN_PAGED_CODE:
NETIO!StreamInvokeCalloutAndNormalizeAction+5c
fffff801`2097c4e4 488b4808 mov rcx,qword ptr [rax+8]
BUGCHECK_CODE: 3b
BUGCHECK_P1: c0000005
BUGCHECK_P2: fffff80766c6c4e4
BUGCHECK_P3: fffff40ef7710430
BUGCHECK_P4: 0
CUSTOMER_CRASH_COUNT: 1
PROCESS_NAME: NortonSvc.exe
IP_IN_PAGED_CODE:
NETIO!StreamInvokeCalloutAndNormalizeAction+5c
fffff807`66c6c4e4 488b4808 mov rcx,qword ptr [rax+8]
SYMBOL_NAME: NETIO!StreamInvokeCalloutAndNormalizeAction+5c
MODULE_NAME: NETIO
IMAGE_NAME: NETIO.SYS
IMAGE_VERSION: 10.0.22621.4034
STACK_COMMAND: .cxr 0xfffff40ef7710430 ; kb
BUCKET_ID_FUNC_OFFSET: 5c
FAILURE_BUCKET_ID: AV_NETIO!StreamInvokeCalloutAndNormalizeAction
OSPLATFORM_TYPE: x64
OSNAME: Windows 10
FAILURE_ID_HASH: {c2ca2d1f-cfdc-88d5-c7bc-7693b8f0de04}
You're more likely to see BSODs when using third-party anti-virus apps. Add IDM on top, and you're literally asking for it, lol.
You should probably switch back to the TDI driver and perform the registry workarounds for Chromium-based browsers than trying to endure using the WFP driver.
121825-11625-01.dmp I also had a crash with the Nightly version.
You're more likely to see BSODs when using third-party anti-virus apps. Add IDM on top, and you're literally asking for it, lol.
Strange, used this trio for years on couple PCs without any BSODs, seems was used TDI driver always in privios versions of Adguard.
You should probably switch back to the TDI driver and perform the registry workarounds for Chromium-based browsers than trying to endure using the WFP driver.
Yep, seems the only way until sockfilter will be used...
I thought that the new socket driver was supposed to be in the v8 versions.
Target is v8.0.1.
The new SockFilter driver hasn't landed in nightly yet. If I had to guess it's still several months away.
Until then if you have BSODs with the WFP driver, switch back to the TDI driver and perform the registry workarounds for Chromium-based browsers to get filtering working again.
Sadly, I had to go back to version 7.22.3. Version 8 is just still way too buggy.
I installed the latest nightly version which broke the ability to change my custom DNS server. AdGuard shows that it's using it but when you go and try to edit it, you can't find it in the list. And then there was how a number of programs just stopped working when being routed through AdGuard. Apple iCloud and AppleTV are two such programs that are broken when being routed through AdGuard—so broken that you can't even login, the logins fail.
Yeah, there's still no option to mass disable routing/filtering for apps and set it to only filter the apps you want it to (e.g. web browsers). Hopefully that's coming before v8.0 stable otherwise it's going to be a 💩 show post-stable release.
Yeah, it definitely needs that. Not every program/app needs to go through AdGuard.
Due to all these BSOD reports and routing issues, it would've been better if version 8 stable had been delayed until the SockFilter driver was ready. But that's not gonna happen it seems.
I'm all for testing software, I really am. However, to call current versions of AdGuard version 8 beta versions is being very generous. I'd say that they're more like very early alpha-stage builds.
And I had another BSOD... 122025-11359-01.dmp
I'm all for testing software, I really am. However, to call current versions of AdGuard version 8 beta versions is being very generous. I'd say that they're more like very early alpha-stage builds.
I didn't expect AdGuard to still have so many bugs after such a long time. I originally thought about trying AdGuard 8.0 again recently, but now it seems better not to look for trouble.
I'm all for testing software, I really am. However, to call current versions of AdGuard version 8 beta versions is being very generous. I'd say that they're more like very early alpha-stage builds.
I didn't expect AdGuard to still have so many bugs after such a long time. I originally thought about trying AdGuard 8.0 again recently, but now it seems better not to look for trouble.
Me too. I'd have thought that most of the glaring bugs would've already been fixed in the 8.0 beta versions but sadly, that's not the case. It's way too buggy to be used as a daily driver.
I suffered over dozen BSOD's due to NETIO, I have traced the issue with WinDbg down to Adguard's WPF driver. Seems after a review of a crash dump, it is "Use After Free" issue (*according to Gemni's review, as giving .dmp file publicly is potentially unsafe)
Edit: For the record, its AI and this driver is closed source so this is largely speculation on the AI's part for what is provided by the crash as I can't verify otherwise. It's likely close as AIs tend to be rather decent at explaining the reason for programmatic errors. I would be surprised if the solution is as simple as mentioned by the AI. Hopefully its analysis provides insight that is communicated in digestible way.
The crash occurred at NETIO!StreamInvokeCalloutAndNormalizeAction+2db. The specific instruction was: cmp dword ptr [rdx+50h],r15d
- The Translation: The CPU tried to compare a 32-bit integer (DWORD) located at the memory address rdx + 0x50 with the value in register r15d.
- The Failure: Access Violation (c0000005). This means rdx pointed to memory that was invalid, unmapped, or freed.
- The Context: This function runs inside NETIO (Windows Network I/O subsystem) after your driver calls an injection function. It is trying to "normalize" the action (determine if the packet should continue, be dropped, etc.) based on the result of a callout.
Your stack trace shows this sequence:
- adgnetworkwfpdrv calls FwpsStreamInjectAsync0 (Injects data back into the stream).
- NETIO attempts StreamInject -> StreamInvokeCalloutAndNormalizeAction.
- Simultaneously, NETIO!StreamCalloutProcessDisconnect appears in the stack lower down.
Conclusion: This is a Race Condition (Use-After-Free). Your driver tried to inject data into a TCP stream that was actively closing or already disconnected. By the time NETIO processed the injection request, the stream object (or the flow context associated with it) referenced in rdx was gone.
========== Suggested Fixes ========= 3. The Fix: 3 Steps to Harden Your Driver Fix A: Validate the State Before Injection You must check if the stream is already closing. You cannot inject into a stream receiving a FWPS_STREAM_EVENT_DISCONNECT.
// Check if the stream is closing
if (inMetaValues->currentMetadataValues & FWPS_METADATA_FIELD_STREAM_FLAGS) {
if (inMetaValues->streamFlags & FWPS_STREAM_FLAG_SEND_DISCONNECT ||
inMetaValues->streamFlags & FWPS_STREAM_FLAG_RECEIVE_DISCONNECT) {
// ABORT: Do not inject. The stream is dying.
// Free your NBL (NetBufferList) here manually.
return;
}
}
Fix B: Context Reference Counting You cannot rely on flowContext remaining valid just because you are inside ClassifyFn. If the injection is asynchronous, the flow can be torn down before your completion routine runs.
- Action: When you create your FlowContext structure, give it a reference count.
- Action: InterlockedIncrement the ref count before calling FwpsStreamInjectAsync0.
- Action: InterlockedDecrement (and free if 0) inside your MyInjectionCompletionFn.
Fix C: Handle "Busy" Injection If FwpsStreamInjectAsync0 returns STATUS_FWP_TCPIP_NOT_READY (common during startup/teardown), you must handle it gracefully. Do not retry infinitely; drop the packet to save the kernel.
Summary Checklist for the Fix
- Locate the call to FwpsStreamInjectAsync0 in your source code.
- Wrap it in a check for FWPS_STREAM_FLAG_*_DISCONNECT.
- Verify that the flowContext you pass to it is reference-counted and not freed until the CompletionCallback fires.
Someone in AdGuard's WFP driver development team really needs to see this.