KERNEL_SECURITY_CHECK_FAILURE is Windows stop code 0x00000139 (0x139). Microsoft's reference says it "indicates that the kernel detects the corruption of a critical data structure." Despite the word security in the name, the page does not describe an attack. It describes consistency checks that Windows runs on its own data, and what happens when one fails.
Most of the page is a long table: parameter 1 gives the type of corruption, and Microsoft lists 30 values. The Cause section then concentrates on one of them, a corrupted linked list.
This page is built from the Microsoft Learn article "Bug Check 0x139: KERNEL_SECURITY_CHECK_FAILURE" and, where noted, Microsoft's general page on analysing blue screen data, both read on 13 October 2026 and checked against the Microsoft Docs source files. Microsoft marks the 0x139 page as written for programmers and directs customers to https://www.windows.com/stopcode. Anything taken from the general page rather than the 0x139 page is labelled as such.
What does parameter 1 tell you?
Parameter 1 is the type of corruption; parameter 2 is the address of the trap frame, parameter 3 the address of the exception record and parameter 4 is reserved. A selection of the parameter 1 values in Microsoft's table:
| Parameter 1 | What Microsoft says it is |
|---|---|
| 0 | A stack-based buffer is overrun (legacy /GS violation) |
| 1 | VTGuard instrumentation code detected an attempt to use an illegal virtual function table |
| 2 | Stack cookie instrumentation code detected a stack-based buffer overrun (/GS violation) |
| 3 | A LIST_ENTRY is corrupted (for example, a double remove) |
| 5 | An invalid parameter was passed to a function that considers invalid parameters fatal |
| 7 | A fatal program exit was requested |
| 8 | An array bounds check inserted by the compiler detected an illegal array indexing operation |
| 10 | Indirect call guard check detected invalid control transfer |
| 14 | The reference count for an object is invalid |
| 28 | An out of bounds buffer access was detected |
That is 10 of the 30 values; the rest cover areas such as invalid register contexts, cryptographic self-test failures and unsafe extension calls. Value 3, the corrupted LIST_ENTRY, is the one Microsoft treats as the main case.
What is a corrupted list entry, in plain terms?
A LIST_ENTRY is the link between items in a doubly linked list, which Windows uses throughout the kernel. Microsoft says the bug check "indicates that an inconsistency was introduced into a doubly linked list (detected when an individual list entry element is added to or removed from the list)." The important consequence is timing: "the inconsistency is not necessarily detected at the time when the corruption occurred," so "some detective work may be necessary to identify the root cause."
What are the common causes of list corruption?
Microsoft lists five, all of them driver bugs:
- A driver corrupted a kernel synchronisation object such as a KEVENT, for example by initialising it twice while a thread was waiting, or letting a stack-based KEVENT go out of scope while another thread used it.
- A driver corrupted a periodic KTIMER.
- A driver mismanaged an internal LIST_ENTRY-style list, for example by calling RemoveEntryList twice on the same entry.
- A driver freed a data structure that contains a LIST_ENTRY without removing it from its list.
- A driver used a list concurrently without proper synchronisation, resulting in a torn update.
For developers, Microsoft suggests walking the list forwards and backwards with the dl and dlb commands and comparing results, because the place where the two walks disagree is typically the location of the corruption. It also notes that Driver Verifier with special pool can sometimes help find the culprit.
What does Microsoft tell non-programmers to do?
The Resolution section ends with general troubleshooting tips, which are the customer-side part of the page:
| Tip | What Microsoft says |
|---|---|
| Hardware | If you recently added hardware, try removing or replacing it, or check with the manufacturer for patches |
| Drivers and services | If new device drivers or system services were added recently, try removing or updating them |
| System Log | Check the System Log in Event Viewer for other error messages, looking for critical errors in the same time window as the blue screen |
| Device Manager | Look for devices marked with an exclamation point; review the event log in the driver properties and try updating the related driver |
| Virus scan | Run a virus detection program that checks the Master Boot Record, because disk corruption can generate bug check codes |
| General guide | See Microsoft's Analyze Bug Check Blue Screen Data page |
Microsoft also advises looking at the event log for higher-level events that lead up to the stop code, and examining several dump files to see whether the code running when the stop code appears is similar.
What Microsoft tells non-programmers to do
Putting the customer-side advice into order, as the 0x139 page lists it:
- Remove or replace recently added hardware, or check the manufacturer for patches.
- Remove or update recently added drivers or system services, and work out what changed.
- Check the System Log for critical errors near the time of the blue screen.
- In Device Manager, look for devices with an exclamation point and update the related driver.
- Run a virus detection program that checks the Master Boot Record.
There is no memory test, disk check or system file repair on the 0x139 page, and this page does not add any under Microsoft's name.
Checklist before changing anything
- Parameter 1 from the System Log (the type of corruption)
- Whether other crashes show the same parameter 1
- Drivers or services installed just before the first crash
- Devices marked with an exclamation point in Device Manager
- Result of a virus scan that covers the Master Boot Record
How to work through a 0x139 blue screen
- Note parameter 1 from the System Log
- Compare it with other crashes to see if it repeats
- Remove or update recent drivers, services or hardware
- Check Device Manager and run a virus scan
Registry edits and paid tools. Microsoft's page does not mention them, so neither does this one.
What do the higher parameter 1 values cover?
The parameter 1 table does not stop at the familiar overruns. Microsoft lists values well past them, and a few are specific enough to act on. Value 6 says the loader did not properly initialize the stack cookie security cookie, and Microsoft names a concrete way to cause it: building a driver to run only on Windows 8 and then loading that image on an earlier version of Windows. Its stated fix is to build the driver for the earlier version instead. Value 9 covers a call to RtlQueryRegistryValues that specified RTL_QUERY_REGISTRY_DIRECT without RTL_QUERY_REGISTRY_TYPECHECK where the target value was not in a trusted system hive. Others name an unsafe modification to read-only data (19), a failed cryptographic self-test (20), an invalid call from within DllMain (23) and a corrupted RTL_BALANCED_NODE RBTree entry (29). The point is that parameter 1 is read before anything else, because the listed causes have nothing in common beyond the check that caught them.
Every stop code covered here is listed in our Windows blue screen stop code index.
Sources and how to check
- Microsoft Learn, "Bug Check 0x139: KERNEL_SECURITY_CHECK_FAILURE" — https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/bug-check-0x139--kernel-security-check-failure. Source file in the MicrosoftDocs/windows-driver-docs repository.
- Microsoft Learn, "Analyze bug check (stop code error) data" — https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/blue-screen-data (general guide).
- Bug check code reference, Microsoft Learn: https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/bug-check-code-reference2
- Troubleshoot blue screen errors (for regular users): https://www.windows.com/stopcode
- Licence and credit: Microsoft Learn documentation is published under CC BY 4.0. This page selects, rewords and reorders it, adds a plain-language reading, and is not endorsed by Microsoft. The original is linked above.
- Checked as of 13 October 2026.
Questions readers ask about KERNEL_SECURITY_CHECK_FAILURE Blue Screen 0x139
What is stop code 0x139?
It is KERNEL_SECURITY_CHECK_FAILURE (0x00000139). Microsoft says the kernel detects the corruption of a critical data structure.
What does parameter 1 mean?
It is the type of corruption. Microsoft's table lists 30 values, from a stack buffer overrun (0) to an export suppressed call target (39).
What is the most common case?
Microsoft's Cause section concentrates on parameter 1 equal to 3, a corrupted LIST_ENTRY such as a double remove.
Does the page say it is caused by an attack?
No. It describes driver bugs and consistency checks, not attacks.
Does Microsoft say how to fix it for sure?
No. It lists checks, not a guaranteed fix.