KERNEL_MODE_HEAP_CORRUPTION (0x13A) means Windows found its kernel memory pool — the heap drivers allocate from — damaged. Drivers constantly allocate and free heap memory, and when one writes past its allocation, frees the same block twice, or uses memory after freeing it, the heap’s bookkeeping breaks. Windows detects the damage (sometimes much later) and crashes.
The tricky part: the crash often blames an innocent driver, because corruption is discovered after the fact. That’s why this guide leans on Driver Verifier — it catches the corruption the instant it happens.
Why this happens
- Driver heap misuse. Buffer overflows, double-frees, and use-after-free bugs in drivers — the classic cause.
- Outdated drivers on new Windows builds. Older drivers mishandle heap APIs that changed subtly.
- Antivirus and filter drivers. Heavy heap users operating at kernel level.
- Corrupted driver binaries. Damaged driver files executing incorrect allocation logic.
- Faulty RAM. Bad memory corrupts heap contents, mimicking driver bugs.
- Overclocking instability. Corrupts heap metadata under load.
How to fix it
Work through these in order — start with Fix 1 and stop when the crashes stop.
Fix 1: Enable Driver Verifier with Special Pool
This is the key move for heap corruption — catch it at the moment of the crime.
- Press Windows + R, type
verifier, and press Enter. - Select Create custom settings and tick Special pool (this places each allocation on its own guarded page so overflows crash instantly).
- Also tick Pool tracking to catch leaks and misuse.
- Choose Select driver names from a list and tick third-party drivers — especially ones for devices involved in the crash scenario.
- Restart and use the laptop normally. The next crash will name the corrupting driver directly. Then boot to Safe Mode and run
verifier /reset.
Fix 2: Fix the driver Verifier identifies
Act on Verifier’s verdict.
- Analyze the Verifier-triggered dump with BlueScreenView or WinDbg — note the named driver.
- In Device Manager, find the device and try Properties > Driver > Roll Back Driver first.
- If rollback isn’t available, update the driver from the manufacturer’s support page.
- For persistent offenders, uninstall the device’s software suite entirely and use the bare driver.
- Keep Verifier disabled after the fix — it’s a diagnostic tool, not a permanent setting.
Fix 3: Update all major drivers systematically
If Verifier is inconclusive, refresh the whole driver stack.
- Update chipset drivers from your laptop manufacturer’s support page (Dell, HP, or Lenovo).
- Clean-reinstall the GPU driver from NVIDIA or AMD .
- Update network, audio, and storage drivers from the manufacturer — not from generic updater tools.
- Restart between major groups and test.
- If crashes started after a specific update, roll that driver back instead of updating everything blindly.
Fix 4: Remove heap-heavy third-party software
Antivirus, backup, and “optimizer” tools are heavy kernel-heap users.
- Uninstall third-party antivirus suites — use Windows Defender while testing.
- Remove disk-encryption tools (other than BitLocker), backup agents with kernel drivers, and system optimizers.
- Uninstall VPN clients temporarily.
- Test for several days of normal use.
- Reintroduce software one product at a time. Similar driver-hunting techniques apply to SYSTEM_SERVICE_EXCEPTION crashes.
Fix 5: Test memory thoroughly
Rule out RAM as the corruption source.
- Press Windows + R, type
mdsched.exe, and run the Extended memory diagnostic. - For deeper testing, run MemTest86 from USB for 4+ passes overnight.
- Disable XMP/EXPO in BIOS/UEFI and retest at stock speeds.
- Check Event Viewer > Windows Logs > System for MemoryDiagnostics-Results.
- Replace failing sticks with the exact spec from your laptop manual.
Fix 6: Repair system files and check storage
Eliminate OS and disk corruption.
- In Terminal (Admin), run
DISM /Online /Cleanup-Image /RestoreHealth. - Then run
sfc /scannowand restart. - Run
chkdsk C: /fto check the system drive. - Verify SSD SMART health with the manufacturer’s utility.
- Corrupted driver binaries on a failing drive cause heap corruption that no driver update fixes — replace a failing drive. For the closely related stop code, see our MEMORY_MANAGEMENT blue screen guide .
Fix 7: Reset Windows when the heap is beyond repair
Last resort for a corrupted driver stack.
- Back up your files externally.
- Go to Settings > System > Recovery > Reset PC, choose Keep my files with Cloud download.
- After reset, install drivers only from the manufacturer’s support page, in order: chipset, storage, network, graphics.
- Test stability before reinstalling third-party utilities.
- Microsoft’s blue screen troubleshooting hub has further recovery guidance.
Fix 8: Audit recently installed software for kernel drivers
Some applications install kernel drivers you’d never suspect.
- Open Settings > Apps > Installed apps and sort by install date.
- Look at everything installed in the weeks before crashes began — especially “system utilities,” RGB software, game anti-cheat clients, and developer tools.
- Anti-cheat drivers (used by many popular games) are notorious heap-corruption sources; try uninstalling the game that installed them as a test.
- Check Device Manager > View > Show hidden devices for non-plug-and-play drivers from uninstalled software and remove the leftovers.
- Use
fltmcin Terminal (Admin) to list active filter drivers — research any unfamiliar names before removing them.
Closing
KERNEL_MODE_HEAP_CORRUPTION is a driver bug that hides behind delayed detection — which is exactly why Driver Verifier’s Special Pool exists. Enable it, let it name the culprit, fix that driver, and move on. Without Verifier you’re guessing; with it, you’re doing forensics. Either way, resist blaming the RAM until drivers are exonerated — the heap belongs to drivers, and they’re the ones who break it. Document which driver was guilty; if the crash ever returns, you’ll know exactly where to look first instead of starting over. Patience with the diagnostic steps pays off far more than guesswork ever does.
