KERNEL_SECURITY_CHECK_FAILURE: Windows stop error
Most likely cause: A buggy or outdated third-party driver, often antivirus, VPN, anti-cheat, graphics, network or storage, especially right after a Windows feature update
Try first: Find the driver named in the crash (Get-WinEvent -FilterHashtable @{LogName='System'; Id=1001} -MaxEvents 5 | Format-List TimeCreated, Message)
Likely causes
- A buggy or outdated third-party driver, often antivirus, VPN, anti-cheat, graphics, network or storage, especially right after a Windows feature updatemost likely
- Unstable or faulty memory: a failing RAM stick or an XMP/EXPO profile or overclock that is not stablepossible
- Corrupted system files or a failing driveless likely
Why this happens
Windows builds integrity checks into the kernel: stack cookies that detect buffer overruns, and checks on the linked lists the kernel uses to track objects. When one of those checks finds that memory has been overwritten, Windows stops with 0x139 instead of continuing with corrupted data.
Something else almost always did the overwriting, typically a kernel-mode driver with a bug, or RAM that flips bits. That is why updating or removing drivers and testing memory fix most cases, while reinstalling Windows usually does not help on its own.
What the first parameter tells you
Event 1001 and the crash dump show four parameters. Parameter 1 names the check that failed. For example, 2 means a stack buffer overrun was detected and 3 means a corrupted LIST_ENTRY (a broken kernel linked list). Either way, the driver named by !analyze -v is the one to update or remove.
- Crashes only in games: graphics driver, anti-cheat or GPU/RAM overclock.
- Crashes on wake from sleep: chipset, storage or network driver.
- Random crashes with memory errors in MemTest86: replace or reseat RAM.
- Started right after a feature update: an old antivirus, VPN or utility driver.
How to fix it
Find the driver named in the crashSafe
Open Event Viewer > Windows Logs > System and look for event 1001 (BugCheck) at the crash time; it lists the stop code and parameters. For the driver name, open the newest file in C:\Windows\Minidump with WinDbg (free from the Microsoft Store) and run
!analyze -v; look at MODULE_NAME and IMAGE_NAME.Get-WinEvent -FilterHashtable @{LogName='System'; Id=1001} -MaxEvents 5 | Format-List TimeCreated, MessageUndo what changed just before the crashesSafe
If the crashes began after installing antivirus, a VPN, a game with anti-cheat, an RGB or fan utility, or a new device, uninstall it (or roll the driver back: Device Manager > device > Properties > Driver > Roll Back Driver) and test for a day.
Install current drivers from the PC or motherboard makerChanges settings
Update chipset, storage, network and graphics drivers from your PC or motherboard maker's support page, or from Intel, AMD or NVIDIA directly. Avoid third-party driver-updater tools.
Turn off overclocks and XMP/EXPO for a testChanges settings
In BIOS/UEFI, load optimized defaults or disable XMP/EXPO and any CPU or GPU overclock or undervolt. If the crashes stop, the tuned settings were the cause.
⚠ Write down your current BIOS settings before changing them.
Test your memorySafe
Run Windows Memory Diagnostic (mdsched.exe) for a quick check. For intermittent faults, run MemTest86 from a USB stick for at least 4 passes. Any error means a bad stick, slot or memory setting.
mdsched.exeRepair Windows system filesChanges settings
From an elevated Command Prompt, repair the component store first, then the system files. Both are safe to run and only replace damaged Windows files.
DISM /Online /Cleanup-Image /RestoreHealth && sfc /scannowCheck the driveSafe
chkdsk /scan runs online and read-only. If it reports problems, back up your files before running a repair, and check the drive's health in its maker's tool.
chkdsk C: /scan
If that didn't fix it
If crashes continue at stock settings with current drivers and a clean memory test, compare several dumps: the same driver every time points at that driver or its device; a different module each time points at RAM, the CPU or the power supply. See the [blue screen stop code list](/blue-screen-stop-codes) for related codes.
When to see a technician
See a technician if MemTest86 shows errors you cannot fix by reseating or removing a stick, or if the PC crashes even in Safe Mode.
Questions people ask
- Is KERNEL_SECURITY_CHECK_FAILURE a virus?
- Rarely. It is a kernel integrity check failing, which is almost always a driver bug or bad memory. Run a malware scan if you like, but start with drivers and RAM.
- Do I need to reinstall Windows?
- Usually not. A reinstall brings the same drivers back from Windows Update or your maker. Find the driver or memory problem first; reset only if system-file repairs and driver fixes fail.
- Can I use Driver Verifier?
- Only if you are comfortable in Safe Mode. It makes faulty drivers crash on purpose so the dump names them, but it can cause a boot loop. Turn it off with
verifier /resetfrom Safe Mode or the recovery Command Prompt.
Sources
- Microsoft Learn: Bug check 0x139 KERNEL_SECURITY_CHECK_FAILURE
- Microsoft Learn: Troubleshoot blue screen errors