For KERNEL_SECURITY_CHECK_FAILURE (0x139) in Windows 11, save the crash time, any named driver and the matching dump before changing drivers. If the PC won't stay usable, use the recovery and Safe Mode route below first. The code means Windows detected corruption of a critical kernel data structure; it doesn't identify a failed RAM stick, a virus or a security setting to switch off.
I'd start with the crash record and the most relevant recent change. A targeted comparison can narrow the problem. Updating every driver and resetting Windows together removes that useful distinction.
Choose the route for your current state
| What you can establish | Next useful action |
|---|---|
| One crash, followed by normal operation | Keep the code, time and activity. Preserve available evidence and watch for recurrence before disruptive repairs. |
| Repeated 0x139 crashes, with a usable desktop | Save matching dumps and review a specific driver, service or hardware change. |
| Crashes prevent sign-in or interrupt every session | Protect recovery access and try the limited Safe Mode session below. |
| Memory diagnostics report errors or the drive reports failure | Protect files and arrange the relevant hardware investigation before software resets. |
Record the complete stop text, Windows version/build, PC model, activity and any recent driver, application, peripheral or memory-setting change. Microsoft's stop-error guidance explains that Windows 11's screen color varies by version. A black stop screen with this code belongs here; a blank display without a code needs the blank-screen checks.
Back up accessible important files before repair changes. On a managed PC, give IT the failure record and let them handle protected drivers, recovery and security policy.
Reach a usable session without disabling security
Have the matching BitLocker recovery key ready for an encrypted PC. Confirm the account password too: Microsoft's Safe Mode sign-in instructions say PIN and biometric options aren't available there. Resolve missing credentials with the administrator before changing startup settings.
- If the desktop works, open Settings > System > Recovery > Advanced startup > Restart now. From the sign-in screen, hold Shift while choosing Power > Restart.
- If Windows already offers Automatic Repair, let it finish and use Advanced options when offered. In Windows Recovery Environment, select Troubleshoot > Advanced options > Startup Settings > Restart.
- On the numbered Startup Settings screen, press 4 or F4 for Enable Safe Mode. Use the limited session to preserve evidence and inspect the relevant recent change.
- After a supported change, restart normally and check the original activity. If Safe Mode also crashes, keep that result and seek recovery support.

Microsoft's Startup Settings reference describes the limited files and drivers used in Safe Mode. A stable session narrows the investigation; it doesn't name the defective component. Don't choose driver-signature or anti-malware disabling as a general repair for a code containing the word security.
If these entry points aren't available, use the recovery-entry and official-media route. Microsoft's Windows RE instructions distinguish the repair option from installing Windows. Don't keep interrupting an active update or firmware operation to force another recovery attempt.
Keep the dump and read the 0x139 parameters
Use the crash-record collection steps to match the failure time with the System log. Keep relevant events immediately before the failure as well as the next startup. An unexpected-shutdown record alone doesn't identify what caused the crash.
If Event 41 shows BugcheckCode 313, that decimal value is 0x139 in hexadecimal. Microsoft's Event 41 explanation says this field uses decimal notation. Preserve the complete event and parameters; 313 isn't a different stop code, and an event with zero values doesn't confirm this one.
Look for existing small dumps in %SystemRoot%\Minidump. Microsoft's small-dump explanation lists the stop message, parameters, loaded drivers and limited thread context. The configured dump type or location may differ. If no matching file exists, tell support; don't label an empty folder a successful diagnostic.
Copy available files to a separate folder without editing the originals. Keep dumps in a trusted private support channel because captured memory can contain sensitive information. A filename highlighted by a summary tool isn't sufficient evidence to download a replacement kernel or remove that driver.
Microsoft's 0x139 reference assigns the parameters these meanings. Ask the person analyzing the matching dump to preserve all four values and the stack context.
| Parameter | Meaning |
|---|---|
| 1 | The type of corruption detected. |
| 2 | Address of the trap frame for the exception that caused the bug check. |
| 3 | Address of the exception record for that exception. |
| 4 | Reserved. |
For example, parameter 1 = 3 means a corrupted LIST_ENTRY, such as an entry removed twice. Microsoft explains that the inconsistency can be detected later than the original corruption. The function or kernel module running at detection therefore needs context; its name isn't a complete diagnosis.
Other parameter-1 values describe different conditions: 2 identifies a stack-cookie buffer overrun and 29 a corrupted balanced-tree entry. Don't apply the four-parameter table from SYSTEM_THREAD_EXCEPTION_NOT_HANDLED (0x7E) or MEMORY_MANAGEMENT (0x1A) to this crash.
Change the driver that the evidence supports
Check Device Manager for a relevant warning and inspect the device's properties and events. Match this with the recent-change timeline and dump analysis. A clean-looking device list doesn't explain an intermittent kernel crash.
If crashes began after a specific driver update, record that device's provider, version and date, and keep its compatible replacement installer available before changing it. This matters especially for the adapter that supplies your internet connection.
- Using administrator access, right-click Start > Device Manager and expand the relevant device category.
- Identify the actual device, open Properties > Driver and record its version.
- If the previous package matches the regression and Roll Back Driver is available, select it, choose a reason and select Yes. Restart if prompted.
- Record the resulting version, then repeat the ordinary activity that previously failed. Keep unrelated changes separate.
Microsoft's driver rollback and update instructions document these controls and administrator requirement. If rollback isn't available, obtain the exact PC or device manufacturer's compatible package for the Windows version and architecture. Follow its installer when supplied; an extracted package can use Update driver > Browse my computer for drivers.
If the crashes began after adding a nonessential external accessory, shut down normally before disconnecting that new device and comparing another start. Keep required storage, power, display and input devices connected. Follow the manufacturer's service instructions for internal hardware; don't pull components from a powered PC.
If no recent change or analysis identifies a device, ask support to compare the dumps before removing drivers. Check applicable Windows updates and relevant official packages. Don't rename .sys files, bulk-update every device or uninstall an unidentified storage or security driver.
Use reported results with their conditions
In a Tom's Hardware Windows 10 investigation, browser video triggered crashes and visual artifacts. Avram Piltch reported no further BSODs after removing and reinstalling the same graphics-driver version. That outcome supports investigating his graphics path; it doesn't establish that every 0x139 needs DDU or a GPU replacement.
A Windows 11 HP OMEN report had a different result. The owner reported further crashes after reinstalling the suggested Realtek network driver and after stopping an HP helper service. Keep new dumps when the proposed change fails instead of calling the first suspected driver a confirmed repair.
In a Flight Simulator and VR discussion, the owner later reported that redistributing cockpit devices across two USB hubs appeared to stop the error for the time observed. Earlier disconnecting cockpit hardware hadn't eliminated it. That complex peripheral setup isn't evidence to buy another hub for a normal desktop. A later reply in the thread names a different bug check, 0xFC; don't merge it into the 0x139 outcome.
These are different systems and interventions, so a pooled repair percentage would be misleading. I'd use their conditions to choose the next comparison, while keeping the actual result of that comparison separate.
Verify stability before broader repairs
After one supported change, confirm normal startup and repeat the usual workload or transition associated with the crash. Record whether the same code, parameters and implicated driver return. One quiet session doesn't settle an intermittent failure.
If the problem followed new RAM or changed memory settings, use the memory-test and hardware-stability checks for the testing procedure and result limits. A clean memory test doesn't prove all hardware is sound. A disappearing drive or reported storage failure needs the data-first drive-failure route before repeated write-heavy repairs.
When the evidence calls for a system-file check on a usable Windows installation, follow the DISM and SFC repair sequence. Repairing a file doesn't prove the crash's original cause is gone. Don't copy an /Online repair into recovery expecting it to target the offline Windows installation.
Skip verifier /standard /all as a routine repair. Microsoft warns that Driver Verifier can crash the PC and limits it to testing and debugging computers. Don't join an Insider Dev build or disable Memory Integrity, Secure Boot or the vulnerable-driver blocklist just because a historical thread suggests it.
If crashes continue, give the PC maker or support technician the exact code, parameters, matching dumps, Windows build, relevant driver versions, hardware changes and the result of each attempted change. Establish the recovery and backup plan before a firmware change, reset or reinstallation. The startup and recovery hub groups the routes for a different remaining stop code.


