REFERENCE_BY_POINTER (stop code 0x00000018) is one of the more cryptic blue screens you’ll run into. The name sounds like a programmer’s inside joke, but the underlying idea is simple: Windows tracks how many parts of the system are “using” each internal object with a reference count. When a driver messes that count up — dropping it below zero, for example — Windows can’t trust its own bookkeeping anymore, so it crashes rather than risk silent corruption.
The good news is that this is almost always a software problem, which means it’s fixable without buying anything. Drivers are the culprit in the overwhelming majority of cases, with memory and overclocking as the runners-up.
Why this happens
- A buggy device driver decrements an object reference illegally. This is the textbook 0x18 cause — a driver bug in how it opens and closes kernel objects.
- Outdated or beta drivers. Drivers written for older Windows builds mishandle object lifetimes on Windows 11, especially after a feature update.
- Antivirus and filter drivers. Kernel-level security, backup, and disk-encryption drivers hook deep into object management and are frequent 0x18 offenders.
- Faulty RAM corrupting object headers. Bad memory flips bits in the reference-count fields, producing crashes that blame innocent drivers.
- Overclocked CPU or memory. Unstable overclocks cause exactly the kind of timing corruption that mangles reference counts.
- Corrupted system files. Damage to core Windows files can break the reference-counting machinery itself.
How to fix it
Work through these in order — start with Fix 1 and stop when the crashes stop.
Fix 1: Identify the crashing driver from the dump file
Don’t guess; find out which driver Windows blamed.
- If the blue screen showed a filename like
drivername.sys, write it down — that’s your suspect. - Open File Explorer and navigate to
C:\Windows\Minidumpto confirm crash dumps are being saved. - Download and run BlueScreenView (or WinDbg from the Microsoft Store) and open the newest
.dmpfile. - Look at the Caused By Driver column — that module gets updated or removed first.
- If every crash blames a different driver, suspect RAM instead of drivers and jump to Fix 5.
Knowing the exact driver saves hours. For the update-triggered variant of this crash, see our guide on REFERENCE_BY_POINTER after a Windows 11 update .
Fix 2: Update or roll back the suspect driver
Driver bugs cause the vast majority of 0x18 crashes.
- Open Device Manager (press Windows + X and select it).
- Find the device matching the suspect driver — GPU, network adapter, or storage controller are the usual ones.
- Right-click it, choose Properties > Driver, and try Roll Back Driver if the crashes started after an update.
- If rollback isn’t available, choose Update driver > Search automatically for drivers.
- For graphics drivers, do a clean reinstall from NVIDIA or AMD using their clean-install option.
- Restart and use the laptop normally to confirm the crashes are gone.
Fix 3: Run Driver Verifier to catch the guilty driver
If dumps are inconclusive, Driver Verifier stresses drivers until the bad one reveals itself.
- Press Windows + R, type
verifier, and press Enter. - Select Create standard settings, then Automatically select unsigned drivers — or choose Select driver names from a list and tick recently updated third-party drivers.
- Click Finish and restart when prompted.
- Use the laptop normally; Verifier will blue-screen faster when the faulty driver misbehaves, and this time the dump will name it clearly.
- After identifying the driver, boot into Safe Mode, run
verifier /reset, and restart to turn Verifier off.
Leave Verifier running only until you catch the culprit — it intentionally makes crashes more likely while active.
Fix 4: Remove problematic filter and security drivers
Antivirus, VPN, and backup tools install kernel drivers that are classic 0x18 sources.
- Open Settings > Apps > Installed apps and look for third-party antivirus, VPN clients, or disk utilities installed around the time crashes began.
- Uninstall them one at a time, restarting after each, and test for stability.
- Windows Defender activates automatically when third-party antivirus is removed, so you’re never unprotected.
- If a specific product is confirmed as the cause, check the vendor’s site for an updated version before reinstalling.
- For persistent cases, also check Device Manager > View > Show hidden devices for leftover ghost drivers from uninstalled software and remove them.
General blue-screen troubleshooting steps that complement this approach are covered in our complete Windows 11 blue screen guide .
Fix 5: Test your RAM
When dumps blame different drivers each time, memory is the likely villain.
- Press Windows + R, type
mdsched.exe, and press Enter. - Choose Restart now and check for problems.
- Let the full test complete — don’t interrupt it.
- After reboot, open Event Viewer > Windows Logs > System and look for MemoryDiagnostics-Results entries.
- If errors are found, reseat the RAM modules; if errors persist, replace the faulty stick.
Fix 6: Reset any overclocking to stock
Overclocks are a silent cause of reference-count corruption.
- Restart and enter your BIOS/UEFI (usually Del, F2, or F10 at boot).
- Disable XMP/EXPO memory profiles and any CPU overclock or undervolt.
- Select Load Optimized Defaults (or Load Setup Defaults) and save.
- Boot into Windows and test for a day or two.
- Only re-enable performance profiles after the system proves stable at stock settings.
Fix 7: Repair system files and refresh Windows
If nothing else works, the OS itself may be damaged.
- Open Terminal (Admin) and run
DISM /Online /Cleanup-Image /RestoreHealth. - When that finishes, run
sfc /scannowand restart. - If crashes continue, open Settings > System > Recovery and use Reset this PC with the Keep my files option.
- Reinstall drivers one at a time from your manufacturer’s support page, testing between each — if the crash returns after a specific driver, you’ve found it.
- Microsoft’s own blue screen troubleshooting guide covers additional recovery options if the reset doesn’t finish.
Closing
REFERENCE_BY_POINTER looks intimidating, but the fix path is mechanical: identify the driver from the dump, update or remove it, and only then suspect hardware. Most people solve it at Fix 2 or Fix 4 without spending a rupee. The one thing you shouldn’t do is ignore it — a driver that’s corrupting kernel objects today can take your data with it tomorrow, so work the list and get it resolved.
