KERNEL_MODE_HEAP_CORRUPTION (stop code 0x13A) is one of the more honest blue screens: it tells you exactly what happened — a driver trashed memory belonging to the kernel. The dishonest part is that the crash usually happens later, in a completely innocent driver, long after the real culprit did its damage. KERNEL_MODE_HEAP_CORRUPTION (stop code 0x13A) is one of the more honest blue screens: it tells you exactly what happened — a driver trashed memory belonging to the kernel. The dishonest part is that the crash usually happens later, in a completely innocent driver, long after the real culprit did its damage.
The smart way to fix it is not to reinstall drivers blindly. It is to make the guilty driver crash at the scene of the crime, using Driver Verifier — then fix that specific driver. The smart way to fix it is not to reinstall drivers blindly. It is to make the guilty driver crash at the scene of the crime, using Driver Verifier — then fix that specific driver.
Why this happens
- A buggy graphics driver. The heaviest kernel-heap user on most laptops, and the most common corrupter.
- Faulty network drivers. Wi-Fi drivers allocate constantly; a buffer bug corrupts the heap quickly.
- Antivirus filter drivers. They intercept nearly every I/O operation, giving their bugs maximum opportunity.
- USB dock and peripheral drivers. Laptop docks with display, network, and audio drivers are a dense source of heap bugs.
- Corrupted driver binaries on disk. A damaged .sys file misbehaves in ways its developers never intended.
- Bad RAM. Memory errors corrupt heap structures directly, mimicking a driver bug — always worth ruling out.
How to fix it
Work through these in order, from the quickest and most likely fixes to the deeper ones. Stop as soon as the crashes stop.
Fix 1: Enable Driver Verifier with Special Pool
This is the key move: Verifier makes the corrupting driver crash instantly instead of corrupting silently. Special Pool places each driver’s allocations on isolated pages with guard pages around them, so an overrun crashes instantly at the offending driver instead of corrupting silently.
- Press Win + R, type
verifier, and press Enter. - Choose Create custom settings (for code developers), click Next, and tick Special pool (plus Pool tracking and Force IRQL checking for good measure).
- Choose Select driver names from a list and tick every non-Microsoft driver.
- Click Finish and restart. Use the laptop normally — the next crash will name the actual corrupting driver.
Fix 2: Read the Verifier-induced crash dump
The dump now contains the answer instead of a mystery. The dump now contains the answer instead of a mystery — note that without Verifier, this same crash would likely have named an innocent driver.
- After the crash, open the newest file in
C:\Windows\Minidumpwith WinDbg Preview from the Microsoft Store. - Run
!analyze -vand read the IMAGE_NAME line — that driver corrupted the heap. - Search the filename to identify its product. Write it down; this is your target for the remaining fixes.
Fix 3: Update or replace the guilty driver
Precision strike instead of carpet bombing. Precision strike instead of carpet bombing: you are fixing the one driver proven guilty rather than updating everything and hoping.
- If it is a hardware driver, get the newest version from the device maker’s site — for graphics, NVIDIA’s download page , AMD’s driver page , or the Intel Driver & Support Assistant .
- If it is already the newest, try the previous version — new drivers introduce heap bugs too.
- For antivirus or dock drivers, do a clean reinstall of the product, or uninstall it temporarily to confirm the crashes stop.
- Then disable Verifier: run
verifier /resetin an elevated prompt and restart. Never leave Verifier running permanently.
Fix 4: Test the RAM to rule out hardware
If Verifier crashes keep naming different drivers, the heap is being corrupted by bad memory, not a driver. If Verifier crashes keep naming different drivers, the heap is being corrupted by bad memory, not a driver — that inconsistency is the whole diagnostic signal.
- Press Win + R, type
mdsched.exe, and press Enter. - Choose Restart now and check for problems.
- If errors appear, reseat or replace the RAM. Our memory management guide walks through full RAM diagnosis.
- If the quick test passes but suspicion remains, run MemTest86 overnight for certainty.
Fix 5: Repair system files
A corrupted kernel binary can corrupt its own heap. A corrupted kernel binary can corrupt its own heap, which is why this step comes before you conclude the hardware is at fault.
- Open an elevated Command Prompt (Win + S, type
cmd, right-click, Run as administrator). - Run
sfc /scannow, thenDISM /Online /Cleanup-Image /RestoreHealth. - Restart. This is quick and rules out Windows’ own files as the corrupter.
Fix 6: Disconnect docks and USB peripherals
Laptop docks are a concentrated source of third-party kernel drivers. Unplug every USB device, dock, and external monitor — laptop docks pack display, network, and audio drivers into one very suspicious package.
- Unplug every USB device, dock, and external monitor.
- Use the laptop standalone for a day or two.
- If crashes stop, reconnect devices one at a time, waiting a day between each, to find the one whose driver corrupts the heap.
- Update that device’s driver from its maker before reconnecting permanently. For general crash-screen reading, see our blue screen guide .
Fix 7: Check for a BIOS or chipset update
An outdated BIOS or chipset driver can mishandle the memory mappings that heap allocations depend on, producing corruption no driver update will fix.
- Visit your laptop maker’s support site and compare your BIOS version (
msinfo32> BIOS Version/Date) against the latest. - Install the newest chipset driver package for your exact model — not the generic one from Windows Update.
- Flash the BIOS only on AC power, and leave the machine untouched until it reboots itself.
- Retest for several days: BIOS-level memory handling fixes resolve a small but real slice of persistent 0x13A crashes.
Closing
KERNEL_MODE_HEAP_CORRUPTION rewards the methodical: Driver Verifier with Special Pool turns a who-did-it mystery into a named driver, and from there it is a straightforward driver fix. Skip the Verifier step and you will chase ghosts — use it, and you will know the culprit by name within a day. Work the list in order and resist the urge to skip the Verifier step — it feels like extra work, but it is the difference between a one-day fix and a two-week driver lottery.
