Fix Kernel Security Check Failure (0x139) in Windows 11
Are you experiencing a Blue Screen of Death (BSOD) with the KERNEL_SECURITY_CHECK_FAILURE (0x139) error in Windows 11? This error can appear unexpectedly while starting your computer, playing games, browsing the internet, or performing everyday tasks.
When this happens, Windows displays a blue screen and restarts your computer to prevent further damage to the system.
The error generally indicates that Windows has detected corruption in an important kernel data structure. In many cases, the problem is related to faulty device drivers, incompatible hardware, corrupted system files, or memory issues. Recently installed software or hardware can also trigger this problem.
In this guide, we’ll walk you through different ways to fix the Kernel Security Check Failure error in Windows 11.
Fix Kernel Security Check Failure (0x139) in Windows 11

To fix the Kernel Security Check Failure (0x139) error in Windows 11, update or roll back problematic drivers, disconnect recently installed hardware, run System File Checker and DISM scans, check your RAM for errors, and install available Windows updates. If the problem continues, use System Restore to return your computer to an earlier working state.
Before trying the solutions, save your work whenever possible. If Windows keeps crashing during startup, you may need to access Safe Mode through Windows Recovery Environment (WinRE).
Let’s go through the solutions one by one.
Step 1: Disconnect Recently Installed Hardware
Sometimes, the Kernel Security Check Failure error appears after connecting a new hardware device to your computer.
For example, a newly installed RAM module, external USB device, graphics card, or other peripheral might have compatibility issues or a faulty driver.
Start by disconnecting recently added hardware and checking whether Windows works normally.
Step 1: Shut down your computer completely. If you’re using a laptop, disconnect unnecessary external devices.
Step 2: Remove recently connected USB devices, external hard drives, printers, webcams, and other peripherals.
Step 3: If you recently installed new internal hardware, such as RAM or a graphics card, consider removing it after safely powering down the computer. If you’re unfamiliar with opening a PC, ask a technician for help.
Step 4: Turn on your computer and check whether the blue screen appears again.
If the error disappears, reconnect your devices one at a time to identify the problematic hardware.
If the issue continues, move to the next solution.
Step 2: Update or Roll Back Problematic Device Drivers
Outdated, incompatible, or corrupted drivers are common reasons behind Windows stop errors. A faulty graphics, network, storage, or chipset driver can interfere with how Windows communicates with hardware.
Updating the problematic driver may resolve the issue. However, if the error started immediately after a driver update, rolling back to the previous version might be a better option.
Step 1: Press Windows + X and select Device Manager.
Step 2: Expand the categories containing your hardware devices, such as Display adapters, Network adapters, and Storage controllers.
Step 3: Right-click the device you suspect is causing the problem and select Update driver.
Step 4: Choose Search automatically for drivers and allow Windows to check for available drivers.
Step 5: If the problem started after a recent driver update, right-click the same device, select Properties, and open the Driver tab.
Step 6: Click Roll Back Driver, if available, and follow the on-screen instructions.
Restart your computer after making the changes.
If Windows cannot find a suitable driver, visit your computer manufacturer’s official website and download the latest compatible version.
Step 3: Run System File Checker (SFC) and DISM Scans
Corrupted or missing Windows system files can cause unexpected system errors, including blue screen crashes.
Windows includes two command-line tools, System File Checker (SFC) and Deployment Image Servicing and Management (DISM), that can help repair these problems.
Run DISM first to repair the Windows component store, followed by SFC to check and repair protected system files.
Step 1: Click Start and search for Command Prompt.
Step 2: Right-click Command Prompt and select Run as administrator.
Step 3: Enter the following command and press Enter:
DISM /Online /Cleanup-Image /RestoreHealth
Wait for the process to complete. It may take several minutes, so don’t close the Command Prompt window.
Step 4: Once DISM finishes, enter this command:
sfc /scannow
Press Enter and allow Windows to scan your system files.
Step 5: After the scan completes, read the result and restart your computer.
If SFC finds corrupted files and successfully repairs them, check whether the blue screen error is resolved.
Step 4: Check Your RAM for Memory Problems
Faulty RAM can cause system instability, unexpected restarts, and blue screen errors.
If your computer frequently displays the 0x139 error, checking the installed memory is worth trying.
Windows includes a utility called Windows Memory Diagnostic that can test your RAM for problems.
Step 1: Press Windows + R to open the Run dialog box.
Step 2: Type the following command:
mdsched.exe
Press Enter.
Step 3: A Windows Memory Diagnostic window will appear. Select Restart now and check for problems (recommended).
Save any open work before selecting this option because your computer will restart.
Step 4: Windows will restart and begin checking your RAM for memory errors.
Step 5: Wait until the test finishes. Your computer will restart automatically.
After returning to Windows, open Event Viewer and navigate to Windows Logs > System.
Look for the MemoryDiagnostics-Results entry to review the test results.
If the diagnostic reports memory problems, you may need to reseat or replace the faulty RAM module.
Step 5: Install the Latest Windows 11 Updates
Microsoft regularly releases Windows updates containing security improvements, bug fixes, and compatibility updates.
If your current Windows installation has a known software issue, installing available updates might help resolve the Kernel Security Check Failure error.
Step 1: Press Windows + I to open Settings.
Step 2: Select Windows Update from the left sidebar.
Step 3: Click Check for updates.
Step 4: If Windows finds available updates, download and install them.
Step 5: Restart your computer if prompted.
You should also check the Advanced options > Optional updates section for relevant driver updates. Prefer drivers supplied by your PC or hardware manufacturer when troubleshooting a suspected driver problem.
Step 6: Scan Your Computer for Malware
Malware infections can interfere with Windows processes, modify system files, and cause unexpected system behavior.
Although malware isn’t the only possible reason for the 0x139 error, running a security scan can help rule out malicious software.
Step 1: Open Windows Settings using Windows + I.
Step 2: Select Privacy & security and click Windows Security.
Step 3: Open Virus & threat protection.
Step 4: Click Scan options.
Step 5: Select Full scan and click Scan now.
Wait for Windows Security to check your files and running programs.
If it detects a threat, follow the recommended actions to quarantine or remove it.
Restart your computer and check whether the error appears again.
Step 7: Uninstall Recently Installed Software
Have you installed a new application, antivirus program, hardware utility, or system optimization tool recently?
Some applications install low-level drivers or background services that can conflict with Windows. If the error started after installing a particular program, removing it might fix the issue.
Step 1: Press Windows + I and open Settings.
Step 2: Select Apps and click Installed apps.
Step 3: Find the application you recently installed.
Step 4: Click the three-dot menu beside the application and select Uninstall.
Step 5: Follow the instructions to remove the application completely.
Restart Windows and see whether the blue screen problem disappears.
If you cannot access your desktop normally, try uninstalling the recently added application through Safe Mode.
Step 8: Use System Restore to Undo Recent Changes
If none of the previous methods works, you can use System Restore to return Windows to an earlier working state.
This option is especially useful when the error started after installing a driver, application, or Windows update.
System Restore can undo certain system changes without affecting your personal documents, although recently installed applications and drivers may be removed.
Step 1: Press Windows + R, type rstrui.exe, and press Enter.
Step 2: When the System Restore window opens, click Next.
Step 3: Select a restore point created before the Kernel Security Check Failure error started appearing.
Step 4: Click Scan for affected programs to check which applications and drivers might be removed or restored.
Step 5: Click Next and then Finish to begin the restoration process.
Your computer will restart and attempt to restore the earlier system configuration.
If Windows cannot start normally, access Windows Recovery Environment > Troubleshoot > Advanced options > System Restore instead.
FAQs
1. What Causes Kernel Security Check Failure 0x139 in Windows 11?
This error generally occurs when Windows detects corruption in a critical kernel data structure. Common causes include faulty device drivers, incompatible hardware, defective RAM, corrupted system files, and problematic software.
2. Can Faulty RAM Cause Kernel Security Check Failure?
Yes. Defective or unstable RAM can cause memory corruption and system crashes. You can use the Windows Memory Diagnostic tool to check your installed memory for errors.
3. How Do I Fix Kernel Security Check Failure Without Reinstalling Windows?
You can try updating device drivers, running DISM and SFC scans, checking RAM, installing Windows updates, and removing recently installed software. These solutions can resolve many causes without reinstalling Windows.
4. Is Kernel Security Check Failure a Hardware or Software Problem?
It can be either. Faulty drivers, corrupted system files, and incompatible applications are software-related causes. Defective RAM and incompatible hardware can also trigger this error.
5. How Do I Fix Error 0x139 If Windows Won’t Start?
If Windows cannot start normally, enter the Windows Recovery Environment (WinRE). Select Troubleshoot > Advanced options and try Startup Repair, System Restore, or Startup Settings to access Safe Mode.
Summary
The KERNEL_SECURITY_CHECK_FAILURE (0x139) error in Windows 11 can be frustrating, especially when it causes frequent blue screen crashes and unexpected restarts.
However, you can often resolve it without reinstalling Windows. Start by disconnecting recently installed hardware, updating or rolling back problematic drivers, and running SFC and DISM scans.
If the problem continues, check your RAM, install Windows updates, scan for malware, and remove recently installed applications. You can also use System Restore to undo recent system changes.
If none of these solutions works, consider examining the Windows memory dump files to identify the faulty driver or hardware component responsible for the crash. This can help you find the actual cause instead of repeatedly trying random fixes.
