The Kernel Security Check Failure error (bug check 0x139) is a Blue Screen of Death (BSOD) that appears when Windows detects a violation in its core security mechanisms, usually caused by faulty drivers, corrupted system files, or hardware issues. The fix typically involves updating or removing problematic drivers, running system file checks, and testing hardware components. Below is a detailed guide to understanding and resolving this error.
What Is the Kernel Security Check Failure Error?
This is a Windows stop code that triggers a system crash to prevent further damage when the kernel (the core of the operating system) detects an invalid operation. The error often appears suddenly during startup, while running demanding applications, or when waking from sleep. It is not a virus itself, but malware can indirectly cause it by corrupting system files.
The kernel manages memory, processes, and security policies. When a driver or program tries to access memory it shouldn’t, the kernel’s security check fails, and the system halts. The error is more common on Windows 10 and 11, but it can occur on older versions too.
Common Causes
- Outdated or corrupt drivers – especially graphics, network, or storage drivers.
- Corrupted system files – often from improper shutdowns or disk errors.
- Faulty RAM or hard drive – physical damage can trigger this error.
- Overheating or power supply issues – unstable hardware conditions.
- Third-party security software – conflicting with Windows’ built-in protections.
- Recent Windows updates – sometimes a patch introduces a regression.
How to Fix the Error: Step-by-Step
Start with the simplest solutions and move to more complex ones. Always back up important files before making system changes.
1. Boot into Safe Mode
- Restart your PC. When the Windows logo appears, press and hold the power button to force shutdown. Repeat this twice.
- On the third restart, Windows will enter the Recovery Environment. Go to Troubleshoot > Advanced Options > Startup Settings > Restart.
- Press 4 or F4 to boot into Safe Mode.
Safe Mode loads only essential drivers. If the error doesn’t appear in Safe Mode, a third-party driver or software is the culprit.
2. Run System File Checker and DISM
In Safe Mode, open Command Prompt as administrator and run:
sfc /scannow– repairs corrupted system files.DISM /Online /Cleanup-Image /RestoreHealth– fixes Windows image issues.
Restart after completion and check if the error persists.
3. Update or Roll Back Drivers
Outdated drivers are the leading cause. Use Device Manager to update:
- Right-click the Start button and select Device Manager.
- Expand categories (e.g., Display adapters, Network adapters).
- Right-click a device and choose Update driver. Select Search automatically.
If the error started after a driver update, roll back: right-click the device, go to Properties > Driver > Roll Back Driver.
4. Check for Windows Updates
Go to Settings > Update & Security > Windows Update. Install any pending updates. If the error started after a recent update, uninstall that update from View update history > Uninstall updates.
5. Test Your RAM and Hard Drive
Faulty hardware can trigger this error. Use Windows Memory Diagnostic:
- Press Win + R, type
mdsched.exe, and press Enter. - Choose Restart now and check for problems.
For the hard drive, open Command Prompt as admin and run chkdsk /f /r. You may need to restart.
6. Disable Fast Startup
Fast Startup can cause kernel issues on some systems. Go to Control Panel > Power Options > Choose what the power buttons do > Change settings that are currently unavailable. Uncheck Turn on fast startup.
7. Perform a Clean Boot
This isolates third-party software conflicts. Press Win + R, type msconfig, and go to the Services tab. Check Hide all Microsoft services, then click Disable all. In the Startup tab, open Task Manager and disable all startup items. Restart.
8. Reset or Reinstall Windows
If all else fails, back up your data and use Settings > Update & Security > Recovery > Reset this PC. Choose Keep my files to preserve personal data while reinstalling Windows.
How to Read the Error Details
The BSOD screen shows the stop code and sometimes a QR code. The error message may include a driver name (e.g., ntoskrnl.exe or atikmpag.sys). Note these details – they point to the specific component causing the issue. You can also use the Windows Event Viewer (under Windows Logs > System) to find the exact time and source of the crash.
Prevention and Long-Term Tips
- Keep Windows and drivers updated regularly.
- Use a surge protector to avoid power-related hardware damage.
- Clean dust from fans and ensure proper ventilation to prevent overheating.
- Run periodic disk checks and defragmentation (for HDDs).
- Avoid installing untrusted software or beta drivers.
Frequently Asked Questions
Can this error damage my computer?
The BSOD itself is a protective measure – it halts the system to prevent data corruption. However, the underlying cause (e.g., failing hard drive) can lead to data loss if not addressed.
Does this error mean my computer is hacked?
Not necessarily. While malware can cause it, the most common causes are driver issues and hardware problems. Run a full antivirus scan to rule out infection.
Why does the error happen during gaming?
Games stress the GPU and CPU, which can expose unstable overclocks, overheating, or faulty graphics drivers. Update your GPU driver and check temperatures.
Is there a permanent fix?
There is no one-size-fits-all permanent fix. The solution depends on the root cause. For most users, updating drivers and running SFC resolves it. If the error returns after a specific action, that action is likely the trigger.
Should I replace my RAM if I get this error?
Not immediately. Run Windows Memory Diagnostic first. If it reports errors, test each RAM stick individually (remove one at a time) to find the faulty module. Only replace if the diagnostic confirms a hardware fault.
Can a BIOS update fix it?
Yes, if the error is caused by a firmware bug. Check your motherboard manufacturer’s website for the latest BIOS version. Update carefully – a failed BIOS update can brick your system.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Google Desktop Search Widget on Windows 11
- How to Build a Computer Stand (Saturday Workshop)
- Customize Touch Keyboard Themes in Windows 11
- Excel Pivot Table: Change Multiple Field Settings
- WhatsApp: How to Block Unknown Numbers
- How to Exit Vi in Linux: A Simple Guide