TechBuzzPro

Kernel Security Check Failure in Windows 11: Fix Guide

· 6 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Kernel Security Check Failure (bug check 0x139) is a Blue Screen error that usually points to a driver or system file that has been corrupted, is incompatible, or is failing to load correctly. The fastest fix is to restart into Safe Mode, run the System File Checker, and update or roll back the driver that changed most recently. In most cases the problem is software, not failing hardware, so you can work through the steps below in order.

What You'll Need

  • Your Windows 11 PC and its administrator password.
  • A stable internet connection for updates and driver downloads.
  • A blank USB drive (8 GB or larger) if you need to create Windows 11 installation media for repairs.
  • About 30–60 minutes. Some steps require a restart.

Step-by-Step

  1. Note the stop code and when it happens. Write down the exact message on the blue screen (it should say KERNEL_SECURITY_CHECK_FAILURE) and what you were doing when it appeared — starting Windows, opening a game, plugging in a device, or after an update. This tells you which driver or update to focus on later.

  2. Boot into Safe Mode. If Windows still starts, open Settings > System > Recovery, find Advanced startup, and click Restart now. After the PC restarts, choose Troubleshoot > Advanced options > Startup Settings > Restart, then press 4 or F4 to enable Safe Mode. If Windows will not start at all, interrupt the boot three times in a row (hold the power button to shut down during the Windows logo) to trigger Automatic Repair, then follow the same path. Menu labels can differ slightly by Windows 11 version and region.

  3. Run the System File Checker and DISM. In Safe Mode, right-click Start, choose Terminal (Admin) or Command Prompt (Admin), and run sfc /scannow. When it finishes, run DISM /Online /Cleanup-Image /RestoreHealth. Both tools repair corrupted Windows system files that can trigger this bug check. Restart normally afterward and see whether the error returns.

  4. Check for and install Windows updates. Go to Settings > Windows Update and install every pending update, including optional driver updates listed under Advanced options > Optional updates. Microsoft regularly ships fixes for driver compatibility problems through Windows Update.

  5. Update or roll back the most recent driver. Open Device Manager (right-click Start > Device Manager). Look for devices with a yellow warning icon. For each one, right-click > Update driver > Search automatically for drivers. If the blue screen started right after a driver update, right-click the device > Properties > Driver tab > Roll Back Driver instead. Graphics, chipset, network, and storage drivers are the most common culprits.

  6. Run a memory test. Press Start, type Windows Memory Diagnostic, and run it. Choose to restart now and let the test complete. Faulty RAM can corrupt kernel data and produce this stop code. If the test reports errors, reseat the RAM sticks or replace them.

  7. Disconnect recent hardware. Unplug any USB devices, external drives, printers, or expansion cards added around the time the crashes began. Restart and use the PC for a while. If the error stops, reconnect devices one at a time to identify the offender, and update its driver from the manufacturer's official site.

  8. Check the disk for errors. In an admin Terminal, run chkdsk C: /f /r and confirm the schedule for the next restart. This scans for bad sectors and file system damage. It can take an hour or more on large drives.

  9. Use System Restore if the problem is recent. Search for Create a restore point, open System Protection, and click System Restore. Pick a restore point from before the crashes started. This reverts system files and drivers without touching your personal documents, but it does remove apps and updates installed after that point.

  10. Reset Windows as a last resort. Go to Settings > System > Recovery > Reset this PC. Choose Keep my files to reinstall Windows while preserving documents, photos, and other personal data (installed apps and settings are removed). If the blue screen prevents Windows from starting, use Troubleshoot > Reset this PC from the recovery menu. Back up important files first if you can still access them.

Common Mistakes

  • Ignoring the timing. The stop code alone rarely identifies the cause. The action that preceded the crash — a new driver, a Windows update, a new USB device — is usually the strongest clue.
  • Downloading drivers from random driver-updater sites. Use Windows Update or the hardware manufacturer's official support page. Third-party driver packs often install mismatched or outdated drivers that cause the same error.
  • Skipping Safe Mode. Running repairs in a normal session can be interrupted by another blue screen. Safe Mode loads a minimal set of drivers, so the fixes are more likely to complete.
  • Resetting Windows too early. A reset wipes installed apps and settings. Exhaust the driver, file-check, and restore-point steps first.
  • Assuming the RAM is fine because the PC boots. Memory faults can be intermittent. Run the memory diagnostic before replacing other parts.

Tips

  • Create a restore point before installing major driver updates so you can roll back quickly if a new driver misbehaves.
  • Keep at least 15–20% of your system drive free. A nearly full drive can prevent Windows from writing crash dumps and can worsen stability.
  • If you use overclocking or XMP memory profiles, temporarily disable them to rule out instability.
  • Check the PC manufacturer's support site for BIOS and chipset updates; these often fix kernel-level compatibility issues.
  • After each fix, use the PC normally for a day or two before deciding the problem is solved. Some driver faults only appear under load.

Troubleshooting

The PC blue-screens before you can open Safe Mode. Use the three-interruption method to reach Automatic Repair, then Troubleshoot > Advanced options > Startup Settings > Restart and choose Safe Mode. If that fails, create Windows 11 installation media on another PC using the official Media Creation Tool, boot from it, and choose Repair your computer.

Safe Mode also crashes. This points to a hardware or low-level driver problem. Run the memory diagnostic, disconnect all non-essential peripherals, and check the drive with chkdsk from the recovery command prompt. If crashes continue in Safe Mode with minimal hardware, have the RAM and storage checked.

System File Checker reports it cannot repair files. Run DISM with the RestoreHealth switch first, then run sfc /scannow again. If DISM cannot complete, check your internet connection and try an in-place upgrade repair using the installation media.

The error returns after a reset. Reinstall or update the driver for the device that was connected when the crash first appeared, and check for BIOS updates. Persistent crashes after a clean install usually indicate failing hardware — most often RAM or the storage drive.

Frequently Asked Questions

What does KERNEL_SECURITY_CHECK_FAILURE mean?

It is a Windows bug check (0x139) that occurs when the kernel detects a critical data structure has been corrupted, typically by a faulty driver, damaged system file, or bad memory.

Is it caused by a virus?

Malware can damage system files and trigger it, but driver and hardware problems are far more common. Run a full scan with Microsoft Defender if you suspect infection.

Will resetting Windows delete my files?

Choosing Keep my files preserves documents, photos, and other personal data, but removes installed apps and resets settings. Back up important files first whenever possible.

Can I fix it without Safe Mode?

Sometimes. If Windows starts normally, you can run System File Checker, Windows Update, and Device Manager directly. Safe Mode is safer because it reduces the chance of another crash during repairs.

Does this error mean my hard drive is failing?

Not necessarily. It is more often software-related. Run chkdsk and the memory diagnostic to check the drive and RAM before replacing hardware.

How do I know which driver caused it?

Check Reliability Monitor (search for Reliability Monitor in Start) or Event Viewer > Windows Logs > System for the crash entry. The timing of recent driver installs or device connections usually identifies the culprit.