KERNEL_MODE_HEAP_CORRUPTION (stop code 0x13A) is Windows catching a driver red-handed: something wrote outside its allocated heap memory or freed the same block twice, and the kernel’s heap integrity checks caught it. On Windows 11 laptops, the graphics driver is guilty more often than not — especially under gaming or video workloads.
The diagnostic approach mirrors other heap-adjacent crashes like win32kfull.sys BSODs : graphics driver first, RAM second, system files third. The heap is where drivers do their most delicate work, so corruption there points squarely at driver quality. Work the list in order and you’ll find the corruptor.
Why this happens
- Buggy or corrupt graphics drivers corrupting kernel heap allocations.
- Factory or manual GPU overclocks destabilizing VRAM under load.
- Faulty system RAM corrupting heap contents.
- Third-party antivirus or virtualization drivers mishandling heap memory.
- Corrupted Windows system files damaging heap management code.
- A Windows update exposing latent heap bugs in older drivers.
- Corrupted page file feeding damaged heap data back into the kernel on resume from hibernation.
How to fix it
Work through these in order — graphics first, since it’s the top cause.
Fix 1: Cleanly reinstall the graphics driver with DDU
Heap corruption from GPU drivers is the number-one cause — give the driver a truly clean slate.
- Download Display Driver Uninstaller (DDU) and the latest driver for your GPU.
- Disconnect from the internet so Windows can’t interfere mid-process.
- Boot into Safe Mode and run DDU: Clean and restart.
- Install the fresh driver from NVIDIA’s official download page or your GPU vendor’s site.
- Test with the exact workload that crashed before — games, renders, or video calls.
Fix 2: Reset GPU clocks to stock
Overclocks — including ones you didn’t set — are a classic heap-corruption trigger.
- Open MSI Afterburner or your GPU tuning tool and click Reset.
- Better: uninstall the tuning tool so its profile can’t reapply at boot.
- Check your laptop maker’s control software (Armoury Crate, Legion Toolkit, OMEN Hub) for GPU overclock modes and disable them.
- Some “performance” modes are mild factory overclocks — test in Balanced mode.
- Retest under load; stability at stock clocks confirms the overclock was guilty.
Fix 3: Test the system RAM
Heap corruption from bad RAM is indistinguishable from driver-caused corruption — test to tell them apart.
- Press Win + R, type
mdsched.exe, and run Windows Memory Diagnostic. - Check results in Event Viewer > Windows Logs > System (MemoryDiagnostics-Results).
- For a definitive answer, run MemTest86 from USB for 4 full passes.
- Reseat modules before replacing; test sticks individually.
- Replace any failing stick — heap errors from hardware never fix themselves.
Fix 4: Remove heap-abusing third-party drivers
Antivirus filters and virtualization drivers allocate from the same kernel heap.
- Uninstall third-party antivirus via Settings > Apps > Installed apps.
- Temporarily disable virtualization software (VMware, VirtualBox) and Hyper-V if installed.
- Restart — Windows Security covers protection in the meantime.
- Test for several days; stability here is a definitive diagnosis.
- Reinstall only current versions, one product at a time.
Fix 5: Repair system files
Corrupted heap-management code in Windows itself can trigger false corruption reports.
- Open an elevated Command Prompt.
- Run
DISM /Online /Cleanup-Image /RestoreHealth. - Then run
sfc /scannowand restart. - Run
chkdsk C: /fto rule out file-system damage. - Microsoft documents these tools on its Windows support hub .
Fix 6: Read the dump for the corrupting driver
When general fixes miss, the dump’s stack trace points at the heap abuser.
- Open the latest
.dmpinC:\Windows\Minidumpwith WinDbg Preview. - Run
!analyze -vand examine the STACK_TEXT for third-party drivers. - Heap corruption dumps often implicate the allocator victim rather than the corruptor — look one or two frames deeper.
- Update or remove whatever third-party driver the stack implicates.
- If only Microsoft modules appear, lean harder on the RAM and GPU-overclock angles.
Fix 7: Check thermals and power delivery
Heat and unstable power cause the bit-flips that heap checks catch.
- Monitor GPU and CPU temperatures with HWiNFO64 under load.
- Clean vents and fans; replace dried thermal paste on older laptops.
- Use the original charger — underpowered adapters cause GPU memory errors.
- Test plugged in with the Best performance power plan.
- If a specific temperature threshold always precedes crashes, cooling is your fix.
Fix 8: Roll back the triggering update
When crashes begin after a Windows or driver update, the update exposed or introduced the heap bug.
- Open Settings > Windows Update > Update history > Uninstall updates.
- Remove the most recent update and restart.
- Alternatively, roll back the GPU driver in Device Manager > Display adapters > Properties > Driver.
- Block the bad version with the Show or Hide Updates troubleshooter.
- Our NTFS.sys BSOD guide covers similar update-rollback tactics for driver-triggered crashes.
Closing
KERNEL_MODE_HEAP_CORRUPTION is the kernel catching someone writing where they shouldn’t: usually the graphics driver, sometimes the RAM, occasionally a third-party filter. Clean-reinstall the GPU driver, reset the clocks, test the memory, and the heap stays intact. The dump confirms the suspect when the obvious fixes don’t — use it before assuming the worst, because the worst is rarely what’s happening. Heap corruption sounds exotic, but the fix is usually as mundane as a driver reinstall — which is good news for everyone. Don’t let the intimidating name push you toward drastic measures; the methodical path in this guide resolves nearly every case without touching your files or settings — a far better outcome than a blind reinstall would ever give you anyway, guaranteed. Work the list patiently, trust what the dump tells you, and the crashes will stop for good.
