KERNEL_SECURITY_CHECK_FAILURE sounds alarming, as if something has broken into your PC, but it's usually nothing to do with hackers. Microsoft's developer documentation says this bug check has a value of 0x00000139 and "indicates that the kernel detects the corruption of a critical data structure". In other words, Windows spotted that some of its own internal bookkeeping had been damaged, most often by a faulty driver, and stopped the PC rather than carry on with corrupted data. This guide explains what the error means and walks through the fixes in a sensible order, based on Microsoft's bug check reference, its Windows 11 blue screen troubleshooting page, its System File Checker instructions and its Driver Verifier documentation, all checked on 30 November 2026.
What KERNEL_SECURITY_CHECK_FAILURE (0x139) means
Windows builds safety checks into the kernel that look for signs that memory has been overwritten or misused. When one of those checks fails, you get stop code 0x139. Microsoft's reference lists the type of corruption in the first bug check parameter, and the possibilities include:
A stack-based buffer overrun, where code wrote past the end of a block of memory (Microsoft calls this a /GS violation).
A corrupted LIST_ENTRY, one of the linked lists Windows uses to track objects, for example after "a double remove".
An illegal virtual function table, which Microsoft says typically means "a C++ object is corrupted".
An invalid memory write caught by a write guard check.
You don't need to understand these terms to fix the problem, but they show why drivers are the usual suspect: they run inside the kernel, so a bug in one can damage the structures Windows checks. Microsoft's explanation of the list corruption case says common causes include a driver that "corrupted a kernel synchronization object" or "freed a data structure that contains a LIST_ENTRY without removing the data structure from its corresponding list". It also warns that "the inconsistency is not necessarily detected at the time when the corruption occurred", which is why the crash can appear while you're doing something unrelated to the faulty driver.
Step 1: Note what changed and remove new hardware
Start with the simplest question: what changed just before the crashes began? Microsoft's advice for this bug check is: "Try to determine what changed in the system that caused the new bug check code to appear." If you've just fitted a new graphics card, Wi-Fi card, USB device or RAM, its official Windows 11 page says to shut down, "remove the hardware, and try restarting". If the crashes stop, the new device or its driver is the likely cause, so check the manufacturer's site for a newer driver or firmware before refitting it.
If the PC crashes too often to use normally, start it in safe mode, which loads only a minimal set of drivers. Microsoft says that from safe mode "you can try the remaining troubleshooting steps". Our Safe Mode vs Clean Boot guide explains when each one helps.
Step 2: Update, roll back or remove recently changed drivers
Because a misbehaving driver is the most common cause, drivers are the main thing to fix. Microsoft's bug check page says: "If new device drivers or system services have been added recently, try removing or updating them."
Device Manager: right-click Start, open Device Manager and look for any device marked with an exclamation point. Microsoft says to right-click it, select Update driver, and "if updating the driver doesn't help, try disabling or uninstalling the device". Our guide to updating drivers in Device Manager covers this, and our Device Manager error codes guide explains the warnings you might see.
Graphics drivers: if the crashes started after a GPU driver update, roll back the graphics driver to the previous version, or do a clean reinstall with DDU.
Other kernel-level software: antivirus suites, VPN clients, RGB and fan-control utilities, anti-cheat systems and virtual drive tools all install kernel drivers. If you installed or updated one shortly before the crashes began, uninstall it as a test.
Then install the latest Windows updates from Start > Settings > Windows Update > Check for updates, which Microsoft lists as a basic step for any stop code.
Step 3: Find the driver named in the logs
If nothing obvious changed, let Windows tell you what crashed. Microsoft's reference suggests you "use the event log to see if there are higher level events that occur leading up to the stop code" and check the System Log in Event Viewer for errors "in the same time window as the blue screen". Our Event Viewer guide shows where to look, and Reliability Monitor gives a simpler timeline of crashes and installs.
For a definite answer, analyse the crash dump. Microsoft says that using the parameter 1 table "and a dump file, you can narrow down the cause for many bug checks of this type", and it adds that "multiple dump files should be examined" to see whether the crashes share the same pattern. Our WinDbg minidump guide explains how to open a dump and run !analyze -v, which often names the driver file involved. If the same third-party .sys file keeps appearing, update or remove the software it belongs to.
Step 4: Repair Windows system files
Corrupted Windows files can also cause kernel errors. Microsoft's System File Checker instructions say to open Command Prompt as administrator and run DISM first, then SFC:
Run DISM.exe /Online /Cleanup-image /Restorehealth
When that finishes, run sfc /scannow
Restart the PC after any repairs.
Our DISM and SFC guide explains what the results mean. Microsoft's bug check page also recommends running a virus scan, because "viruses can infect all types of hard disks formatted for Windows, and resulting disk corruption can generate system bug check codes".
Step 5: Test your memory
Microsoft's 0x139 reference concentrates on drivers, but corruption has to happen somewhere, and faulty RAM or an unstable memory overclock can damage data in ways that trip the same checks. As a test, turn off XMP or EXPO in the BIOS to run the RAM at its default speed, then run a memory test. Our MemTest86 guide explains how, and Windows Memory Diagnostic vs MemTest86 compares the built-in tool with the more thorough one. If the crashes stop at default memory settings, the overclock was the problem.
Step 6: Use Driver Verifier as a last resort
If you still can't find the culprit, Driver Verifier can help. Microsoft describes it as a Windows testing tool that monitors "kernel-mode drivers and graphics drivers in real time" and "detects illegal function calls and problematic actions". It deliberately provokes a crash when a driver misbehaves, so the faulty driver is more likely to be named in the dump. Microsoft's own 0x139 page notes that "sometimes, Driver Verifier with special pool can help track down the culprit".
Use it carefully. Microsoft says to "run Driver Verifier only on test computers, or on computers that you're testing and debugging", so create a restore point first, enable it only for third-party drivers, and turn it off afterwards with verifier /reset. Our Driver Verifier guide walks through it step by step.
Step 7: If nothing works
Microsoft's final suggestion for repeated stop codes is to restore Windows "using a system restore point, or one of the other options" in Windows 11's recovery settings. See our guides to System Restore and resetting Windows 11. If the error survives a clean reset with only essential drivers installed, suspect hardware, starting with the RAM and any recently added components. For other stop codes, see our general blue screen guide.