PC and Mac Error CodesWindows PC and Mac errors explained

Home › All codes › 0x00000139

Blue screen

0x00000139 - KERNEL_SECURITY_CHECK_FAILURE: Windows found damaged internal data

0x00000139   Microsoft name: ERROR_NOT_ALLOWED_ON_SYSTEM_FILE

What it means

Windows detected that an important internal data structure had been damaged and stopped to stay safe.

This number is listed more than once in Microsoft's tables (see the source box). Use the entry that matches where you saw it.

Where you see it

A blue screen (Windows 11 shows a black or blue screen with a sad face and a stop code name) followed by a restart.

Likely causes

Back up first. Before anything that resets, reinstalls or repairs the disk, copy your photos and documents to another drive or to the cloud. Back up your Windows PC. Do not reset, reinstall or format until your files are safe.

Three safe steps, in order

Try them one at a time and test after each. No registry edits, no repair tools to buy, and no switching off your security. If a step needs a driver, firmware or Windows installation media, get it only from Microsoft or your device maker.

  1. Install all Windows updates (Settings > Windows Update), which also updates many drivers.Related Microsoft page: Troubleshoot problems updating Windows
  2. Remove the last driver, app or device you added before the crashes began, using Microsoft's stop code steps.Related Microsoft page: Resolving blue screen errors in Windows
  3. Run DISM /Online /Cleanup-Image /RestoreHealth and then sfc /scannow.Related Microsoft page: Use the System File Checker tool to repair missing or corrupted system files

Stop and get help when…

it keeps coming back with the same driver named on the screen. Note the file name and ask for help.

Source and date

Official Microsoft reference
System Error Codes (WinError.h)
More Microsoft help
Resolving blue screen errors in Windows
Date checked
24 November 2026. Microsoft changes its pages; if a step no longer matches, trust the Microsoft page.

Windows system error (Win32) 313

ERROR_NOT_ALLOWED_ON_SYSTEM_FILE

Microsoft describes it as: “Operation is not allowed on a file system internal file.”

Source: System Error Codes (WinError.h) (Microsoft Learn content, CC BY 4.0)

Blue screen stop code (bug check)

KERNEL_SECURITY_CHECK_FAILURE

Source: Bug check code reference (Microsoft Learn content, CC BY 4.0)

The wording above is ours. Where a box quotes Microsoft's description, it comes from Microsoft Learn documentation published under CC BY 4.0 and is credited to the page linked.

All blue screen stop codes

Related codes