KERNEL_SECURITY_CHECK_FAILURE sounds like a security incident, but it is really Windows catching a driver misbehaving. The kernel keeps internal lists and structures, and when it finds one corrupted, it pulls the emergency brake — the blue screen — rather than let the corruption spread. The ‘security’ in the name refers to the kernel verifying the integrity of its own data, not to antivirus or hacking — although the name understandably sends people down the wrong path at first.
The fix is detective work, not guesswork. The steps below isolate whether it is RAM, a specific driver, or system corruption, and they are ordered so the most likely causes get checked first. You will need about an hour, an administrator account, and ideally the ability to read a minidump — though the steps explain that part as you go, no prior debugging experience required.
Why this happens
- A third-party driver corrupting kernel lists. Antivirus filters, VPN clients, and RGB/overclocking tools are repeat offenders.
- Faulty RAM. Bad memory flips bits in kernel structures, triggering the check randomly with different drivers named each time.
- Corrupted system files. Damage to Windows’ own kernel components makes legitimate operations trip the security check.
- Overclocked CPU or RAM. Unstable overclocks corrupt data in transit, and the kernel’s integrity checks catch it.
- A failing storage drive. Corrupted pages read from a dying drive poison the kernel structures built from them.
- Incompatible driver after a Windows update. Feature updates change kernel internals, and an old driver that manipulated them can start corrupting structures.
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: Run a full memory test first
Because bad RAM mimics every other cause of this error, testing it first saves hours of driver chasing. This matters more than usual for 0x139 because the error is literally a corruption check — bad RAM fails it directly, while every driver-focused step afterward assumes the RAM is good.
- Press Win + R, type
mdsched.exe, and press Enter. - Select Restart now and check for problems and let the test run.
- If it finds hardware problems, reseat your RAM sticks (or have a shop do it on a sealed laptop) and retest.
- If crashes name a different driver every time and the quick test passes, run MemTest86 overnight — the built-in test misses marginal sticks. Our memory management fix guide covers deeper RAM diagnosis.
Fix 2: Identify the crashing driver from the minidump
Windows saves a crash dump every time. Reading it names the suspect instead of guessing. Two dumps that agree give you a suspect worth acting on; a single dump is only a hint, since the driver present at discovery is often innocent.
- Open File Explorer and go to
C:\Windows\Minidump. - Note the newest
.dmpfile’s date matches your crash. - Install WinDbg Preview from the Microsoft Store, open the dump, and run
!analyze -vin the command box. - Look for the MODULE_NAME and IMAGE_NAME lines — that is your suspect driver. Search its filename online to identify the product it belongs to.
Fix 3: Update or remove the suspect driver
Once you have a name, act on it directly. Change only the suspect driver between tests — if you update five drivers at once and the crashes stop, you will never know which one was guilty.
- In Device Manager (Win + X > Device Manager), locate the device tied to the driver.
- Right-click and choose Update driver > Search automatically for drivers.
- If it is already current, visit the manufacturer’s site for a newer version — or roll back via Properties > Driver > Roll Back Driver if the trouble started after an update.
- For antivirus or VPN filter drivers, try a clean reinstall of that product, or temporarily uninstall it to test. Details on reading these screens are in our blue screen of death walkthrough .
Fix 4: Scan for malware once
Rule out the scary cause quickly so you can focus on drivers. Rootkits are the one malware class that genuinely causes this stop code, and only an offline scan reliably catches them, since they hide from scanners running inside the infected Windows.
- Open Windows Security from the Start menu.
- Go to Virus & threat protection > Scan options and run a Full scan.
- If it finds and removes something, restart and monitor for a day — rootkits that hook the kernel can cause exactly this stop code.
Fix 5: Repair system files
Corruption in Windows’ own kernel files produces this error from perfectly innocent drivers. Run these even when a driver looks guilty — corrupted system files and a bad driver often arrive together via the same bad update, and fixing only one leaves the other.
- Open an elevated Command Prompt (Win + S, type
cmd, right-click, Run as administrator). - Run
sfc /scannowand wait for completion. - Follow with
DISM /Online /Cleanup-Image /RestoreHealth. - Restart and use the machine normally — this pair fixes a surprising number of 0x139 crashes.
Fix 6: Reset any overclocking to stock
Unstable overclocks corrupt kernel data in ways that look exactly like a bad driver. Memory overclocks deserve special attention here: XMP instability corrupts kernel lists in exactly the pattern 0x139 detects, so test at stock speeds, not just defaults that quietly re-enable XMP.
- Enter your BIOS/UEFI (usually F2 or Del during boot) and load optimized defaults.
- In Windows, disable any overclocking or tuning utilities (Afterburner, Ryzen Master, Intel XTU, motherboard apps).
- If you enabled XMP/EXPO for RAM, try disabling it temporarily to test stability at stock speeds.
Fix 7: Check the drive’s health
A dying SSD or HDD feeding corrupted data into the kernel is the last hardware suspect. When the drive is the cause, the corruption pattern looks random — different drivers named, crashes during disk-heavy work — which is why this check comes after the RAM test rather than before it.
- Open an elevated Command Prompt and run
chkdsk C: /f. - Check SMART data with your drive maker’s tool or
wmic diskdrive get status— anything other than OK means replace the drive. - If the drive is healthy and crashes persist after all the above, an in-place Windows repair (download from the Windows 11 download page and choose Keep personal files and apps) is the final step.
Closing
KERNEL_SECURITY_CHECK_FAILURE is Windows doing its job — catching corruption before it snowballs. Your job is to find what is corrupting things, and nine times out of ten it is either bad RAM or one misbehaving third-party driver. The memory test and the minidump will tell you which within the hour. Keep the minidumps from your crashes even after fixing it — if the error ever returns, comparing old and new dumps tells you immediately whether it is the same cause or something new.
