|

How To Fix ATTEMPTED_WRITE_TO_READONLY_MEMORY Blue Screen

ATTEMPTED_WRITE_TO_READONLY_MEMORY is a Windows blue screen with the stop code 0xBE.

Microsoft says it is issued when a driver tries to write to a read-only memory segment.

The fix is to find that driver, update or roll it back, and repair Windows if the cause is not clear.

Table of Contents

Quick answer

The table gives the fastest route for each situation.

SituationWhat to do
The blue screen names a fileUpdate, roll back or remove that driver
You added hardware before it startedShut down, remove it and restart
The PC restarts before you can workStart in Safe Mode and use Device Manager
It began after a Windows or driver updateUse System Restore or uninstall the update
Nothing points to one driverRun DISM and SFC, then check updates and firmware

What the error means

The bug check has the value 0x000000BE.

Microsoft describes it as an error issued if a driver attempts to write to a read-only memory segment.

Windows protects some memory so that it can be read but not changed, and a write to that area stops the system to prevent damage.

Microsoft’s page is written for programmers, so the steps below combine it with the company’s general guidance for customers.

What the four parameters show

The crash screen and dump file record four values.

ParameterMeaning
1Virtual address of the attempted write
2Contents of the page table entry (PTE)
3Reserved
4Reserved

These values mainly help a developer, but they confirm that a program running in kernel mode made the bad write.

Find the driver named on the screen

Microsoft says that if the responsible driver can be identified, its name is printed on the blue screen.

The same name is stored in memory at the location called KiBugCheckDriver.

Photograph the screen or write down the file name, because it tells you which device or program to fix.

If no name appears, the later steps on Windows Update, DISM and System Restore still apply.

Remove new hardware first

Microsoft’s blue screen guide says to shut down the PC and remove any hardware you added just before the error began.

Restart and see whether the stop code returns.

If it does not, check the maker’s site for a driver that supports your version of Windows before you reconnect the device.

Start in Safe Mode if the PC will not stay up

You can run the remaining steps from Safe Mode, which loads only a limited set of files and drivers.

  1. Open Settings, then System, then Recovery.
  2. Next to Advanced startup, select Restart now.
  3. Select Troubleshoot, then Advanced options, then Startup Settings, then Restart.
  4. Press 4 or F4 for Safe Mode, or 5 or F5 for Safe Mode with Networking.

If you cannot reach Settings, Microsoft says you can interrupt startup by holding the power button during boot twice, and the third start shows the Automatic Repair screen.

Our guide to starting Windows 11 in Safe Mode covers the same entry points.

Update or roll back the driver

Microsoft’s Device Manager page lists these steps for an automatic update.

  1. Right-click Start and select Device Manager.
  2. Expand the device category and right-click the device.
  3. Select Update driver, then Search automatically for updated driver software.
  4. If nothing is found, select the option to search Windows Update, then select Close.

If the error began right after a driver changed, roll it back instead.

  1. Right-click the device and select Properties.
  2. Open the Driver tab and select Roll Back Driver.
  3. Pick a reason, select Yes and restart if asked.

Microsoft warns against drivers from sites other than the device maker’s own.

Install Windows updates

Microsoft lists Windows Update as a standard step for stop codes.

Open Start, then Settings, then Windows Update, and select Check for updates.

Microsoft’s advanced stop code guide also says to install the latest cumulative updates.

Our guide to optional updates in Windows 11 shows where driver updates appear.

Repair system files with DISM and SFC

Microsoft’s System File Checker page says to run DISM first because it supplies the files used for repairs.

  1. Type cmd in search, right-click Command Prompt and select Run as administrator.
  2. Run DISM.exe /Online /Cleanup-image /Restorehealth and wait for it to finish.
  3. Run sfc /scannow and keep the window open until it reaches 100%.

Our SFC and DISM guide explains the result messages.

Other checks Microsoft recommends

Microsoft’s stop error guidance lists several checks that apply to any bug check code.

CheckWhat Microsoft says
BIOS and firmwareMake sure they are up to date
Hardware and memoryRun any relevant hardware and memory tests
MalwareRun Microsoft Safety Scanner or another scanner that checks the MBR
Disk spaceKeep about 10 to 15 percent free

Be careful with Driver Verifier

Driver Verifier is a Microsoft tool that stress-tests drivers to find faulty ones.

Microsoft warns that it uses a lot of CPU, can slow the computer and may cause extra crashes.

It advises against verifying all drivers at once and suggests groups of 10 to 20 at most.

If the PC cannot reach the desktop because of it, start in Safe Mode, where the tool does not run.

Restore Windows if the cause stays unclear

Microsoft says to use a restore point or another recovery option when earlier steps fail.

  • System Restore rolls back system files and settings, not personal files.
  • Startup Repair is under Troubleshoot, then Advanced options.
  • Uninstall updates is in the same menu and leaves your files and apps alone.
  • Reset this PC lets you keep your files or remove everything.

Back up your files first, and have your BitLocker recovery key ready if the drive is encrypted.

When to contact the device or app maker

Microsoft’s advanced guidance says to contact the vendor for updated drivers and applications when the error message names a specific driver.

The same advice applies after any software or hardware change you made before the crashes started.

If the maker has no newer driver, Microsoft recommends disabling the related service, and removing a driver that was recently added.

Keep the stop code and the file name from the blue screen ready, because the support team will ask for both.

For IT staff: read the crash dump

Microsoft’s advanced steps use the memory dump to name the faulting driver.

  1. Open Advanced system settings, then under Startup and Recovery select Settings and set Write debugging information to Automatic memory dump.
  2. After the next crash, copy MEMORY.DMP from the Windows folder to another computer.
  3. Open it in WinDbg from the Windows SDK, run !analyze -v and review the STACK_TEXT section.

Small dumps are saved in the Minidump folder inside the Windows folder.

Official sources

This guide draws on Microsoft pages only.

Leave a Reply

Your email address will not be published. Required fields are marked *