Skip to content

How-ToOS

How to Fix the KERNEL_SECURITY_CHECK_FAILURE Blue Screen in Windows 11

KERNEL_SECURITY_CHECK_FAILURE (stop code 0x139) means Windows detected corruption in a critical kernel data structure, usually caused by a faulty driver. Using Microsoft's bug check reference and Windows 11 troubleshooting advice, we explain what the error means, how to find the driver responsible and the fixes to try in order, from driver updates to SFC, RAM tests and Driver Verifier.

By , Systems & Technical Editor

6 min read

How to Fix the KERNEL_SECURITY_CHECK_FAILURE Blue Screen in Windows 11

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:

  1. Run DISM.exe /Online /Cleanup-image /Restorehealth

  2. When that finishes, run sfc /scannow

  3. 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.

The bottom line

KERNEL_SECURITY_CHECK_FAILURE (0x139) means Windows detected corruption in a critical kernel data structure, usually caused by a faulty driver. Start by undoing recent changes: remove new hardware, update or roll back recently changed drivers (especially graphics, antivirus, VPN and RGB software) and install Windows updates. Then check Event Viewer or the minidump for the driver responsible, run DISM and SFC, and test your RAM at default settings. Keep Driver Verifier as a last resort and turn it off afterwards.

Sources

  1. 01Microsoft Learn, Bug Check 0x139: KERNEL_SECURITY_CHECK_FAILURE
  2. 02Microsoft Support, Troubleshooting Windows unexpected restarts and stop code errors
  3. 03Microsoft Support, Use the System File Checker tool to repair missing or corrupted system files
  4. 04Microsoft Learn, Driver Verifier

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

Best Free Emulators for PC in 2026

Best Picks

Best Free Emulators for PC in 2026

The best free emulators for PC in 2026: RetroArch for retro systems in one app, PCSX2 for PS2, Dolphin for GameCube and Wii, DuckStation for PS1 and PPSSPP for PSP. We compare the systems each covers, licences, BIOS needs, hardware requirements and features from each project's official site, and explain how to stay legal with your own games and BIOS dumps.

Hannah Vance6 min

How to Set Up PCSX2 on Windows: Play Your PS2 Games on PC

How-To

How to Set Up PCSX2 on Windows: Play Your PS2 Games on PC

PCSX2 can play much of the PlayStation 2 library on a Windows PC at higher resolutions than the original console. Using PCSX2's official documentation, we explain the hardware you need, how to install it, how to dump the BIOS from your own PS2 and your game discs, which renderer to choose, how to save safely and what to check if games run slowly.

Marcus Thorne8 min

Best Local AI Video Translation and Dubbing Tools in 2026

Best Picks

Best Local AI Video Translation and Dubbing Tools in 2026

Free AI tools can now transcribe a video, translate it and dub it into another language on your own PC. We pick the best: pyVideoTrans, VideoLingo, OpenCreator (formerly KrillinAI) and SoniTranslate, comparing offline use, languages, voices, setup, licences and hardware from each project's official docs.

Hannah Vance5 min

pyVideoTrans vs VideoLingo: Which Local AI Video Translator Should You Use?

Versus

pyVideoTrans vs VideoLingo: Which Local AI Video Translator Should You Use?

pyVideoTrans and VideoLingo are popular open-source tools for translating and dubbing videos with AI on your own PC. Using each project's official docs, we compare installation, speech recognition, translation engines, dubbing voices, offline use, GPU support and licences, and say which suits which job.

Callum Reid4 min