Error Medic

BSOD Windows 11 Fix: Memory Management, ntoskrnl.exe, ksecdd.sys & More

Fix BSOD on Windows 11 caused by ntoskrnl.exe, ksecdd.sys, ntkrnlmp.exe, or memory management errors. Step-by-step commands and solutions inside.

Last updated:
Last verified:
1,992 words
Key Takeaways
  • Most Windows 11 BSODs (Blue Screen of Death) are triggered by faulty RAM, outdated or corrupt drivers, system file corruption, or incompatible kernel modules like ntoskrnl.exe, ntkrnlmp.exe, or ksecdd.sys.
  • Memory management BSODs specifically point to RAM hardware failure, overclocking instability, or a driver that is improperly accessing kernel memory — run Windows Memory Diagnostic and MemTest86 to confirm.
  • Quick fix summary: Run 'sfc /scannow' and 'DISM /Online /Cleanup-Image /RestoreHealth' in an elevated command prompt, update all drivers (especially GPU and chipset), check Event Viewer for the faulting module, and if ntoskrnl.exe or ksecdd.sys is listed, update Windows or roll back recent patches.
Fix Approaches Compared
MethodWhen to UseTimeRisk
SFC + DISM ScanSystem files are corrupt, random BSODs after update10-30 minLow
Driver Update / RollbackBSOD started after hardware or driver change, ksecdd.sys or ntoskrnl.exe listed15-45 minLow-Medium
Windows Memory Diagnostic / MemTest86MEMORY_MANAGEMENT stop code, random crashes under load30 min – 8 hrsNone
Windows Update / Patch RollbackBSOD appeared after a cumulative update20-60 minLow
Startup Repair / System RestoreCannot boot into Windows at all20-60 minMedium
Clean Boot (msconfig)Suspect third-party software conflict10-20 minLow
RAM ReplacementMemTest86 reports errors, MEMORY_MANAGEMENT persists30-60 minLow (hardware)
Windows 11 Reset / ReinstallAll other methods failed, BSOD on every boot1-3 hrsHigh (data loss risk)

Understanding Windows 11 BSOD Errors

A Blue Screen of Death (BSOD) in Windows 11 is a critical system failure that forces the OS to halt to prevent further damage. You will typically see a blue screen with a sad emoji, a stop code such as:

  • MEMORY_MANAGEMENT (0x0000001A)
  • SYSTEM_SERVICE_EXCEPTION (0x0000003B)
  • KERNEL_SECURITY_CHECK_FAILURE (0x00000139)
  • PAGE_FAULT_IN_NONPAGED_AREA (0x00000050)
  • IRQL_NOT_LESS_OR_EQUAL (0x0000000A)

The faulting file listed beneath the stop code (e.g., ntoskrnl.exe, ntkrnlmp.exe, ksecdd.sys) tells you which kernel component triggered the crash. Here is what each means:

  • ntoskrnl.exe / ntkrnlmp.exe: The Windows NT OS Kernel. When this is listed, the crash is usually caused by a third-party driver corrupting kernel memory, or a Windows Update issue — not the kernel itself being bad.
  • ksecdd.sys: The Kernel Security Support Provider Interface driver. BSODs attributed to ksecdd.sys are frequently linked to Secure Boot conflicts, antivirus kernel-mode drivers, VPN software, or a corrupted Windows security component.
  • MEMORY_MANAGEMENT: Signals physical RAM errors, a driver incorrectly freeing memory, overclocking instability, or a corrupt page file.

Step 1: Read the Crash Dump in Event Viewer

Before applying any fix, identify the exact faulting module.

  1. Press Win + X and select Event Viewer.
  2. Navigate to Windows Logs > System.
  3. Filter by Critical level events and look for entries with source BugCheck or Kernel-Power (Event ID 41).
  4. Note the stop code and the module name listed.

Alternatively, use WinDbg or the built-in Get-WinEvent PowerShell command to read the minidump:

Get-WinEvent -LogName System | Where-Object {$_.Id -eq 1001} | Select-Object -First 10 | Format-List

Minidump files are stored at C:\Windows\Minidump\. You can analyze them with WinDbg Preview from the Microsoft Store.


Step 2: Run System File Checker and DISM

Corrupt system files are a leading cause of BSODs after Windows Updates. Run these commands in an elevated Command Prompt (Run as Administrator):

sfc /scannow

Wait for the scan to complete. If it reports violations it could not fix:

DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth

Reboot after completion and monitor for BSODs.


Step 3: Update or Roll Back Drivers

Outdated GPU, NIC, or chipset drivers are a very common cause of ntoskrnl.exe and ksecdd.sys BSODs.

Update drivers:

  1. Press Win + X > Device Manager.
  2. Right-click your GPU (Display Adapters), NIC (Network Adapters), and chipset entries.
  3. Select Update driver > Search automatically.

For NVIDIA: Download the latest Game Ready or Studio driver from nvidia.com and use DDU (Display Driver Uninstaller) in Safe Mode for a clean install.

Roll back a driver:

  1. In Device Manager, right-click the device > Properties.
  2. Go to the Driver tab and click Roll Back Driver if available.

For ksecdd.sys specifically: Disable or uninstall third-party antivirus and VPN software temporarily. If BSODs stop, that software's kernel-mode driver is the culprit. Check for updates or contact the vendor.


Step 4: Run Memory Diagnostics

For MEMORY_MANAGEMENT BSODs:

Windows Memory Diagnostic (quick):

  1. Press Win + R, type mdsched.exe, press Enter.
  2. Choose Restart now and check for problems.
  3. After reboot, results appear in Event Viewer under Windows Logs > System (source: MemoryDiagnostics-Results).

MemTest86 (thorough):

  1. Download MemTest86 from memtest86.com.
  2. Flash to a USB drive and boot from it.
  3. Run at least 2 full passes (8+ hours recommended).
  4. If any errors are found, your RAM module(s) are failing and need replacement.

Also check for overclocking: If XMP/EXPO is enabled in BIOS, try disabling it and running at stock RAM speeds to rule out instability.


Step 5: Check the Page File and Virtual Memory

A corrupt or undersized page file can cause MEMORY_MANAGEMENT BSODs:

  1. Press Win + X > System > Advanced system settings.
  2. Under Performance, click Settings > Advanced > Virtual Memory > Change.
  3. Uncheck Automatically manage paging file size for all drives.
  4. Select the C: drive, choose System managed size, click Set, then OK.
  5. Reboot.

Step 6: Uninstall Recent Windows Updates

If BSODs began after a cumulative update:

  1. Go to Settings > Windows Update > Update history > Uninstall updates.
  2. Sort by Installed On and remove the most recent cumulative or optional update.
  3. Reboot and test.

You can also use the command line:

wusa /uninstall /kb:XXXXXXX

Replace XXXXXXX with the KB number shown in Update History.


Step 7: Startup Repair and System Restore (Boot Failures)

If Windows 11 cannot boot:

  1. Boot from a Windows 11 USB installer.
  2. Select Repair your computer > Troubleshoot > Advanced options.
  3. Try Startup Repair first.
  4. If that fails, use System Restore to roll back to a point before the BSODs started.
  5. As a last resort, use Reset this PC (keep files or remove everything).

Step 8: Check Hardware — Temperatures and Storage

  • Use HWInfo64 or HWMonitor to check CPU and GPU temperatures. Sustained temps above 95°C (CPU) or 90°C (GPU) can cause crashes.
  • Run CrystalDiskInfo to check SSD/HDD SMART data. A failing drive with reallocated sectors will cause BSODs.
  • Reseat RAM sticks and try booting with one stick at a time to isolate a faulty module.
  • Check all power connectors are fully seated, especially GPU power cables.

Frequently Asked Questions

powershell
# ============================================================
# Windows 11 BSOD Diagnostic & Fix Script
# Run in an elevated PowerShell (Run as Administrator)
# ============================================================

# 1. Check for recent BugCheck events in System log
Write-Host "=== Recent BugCheck Events ==="
Get-WinEvent -LogName System -ErrorAction SilentlyContinue |
    Where-Object { $_.Id -eq 1001 -or $_.Id -eq 41 } |
    Select-Object -First 10 |
    Format-List TimeCreated, Id, Message

# 2. List minidump files with timestamps
Write-Host "
=== Minidump Files ==="
Get-ChildItem -Path "C:\Windows\Minidump\" -Filter "*.dmp" -ErrorAction SilentlyContinue |
    Sort-Object LastWriteTime -Descending |
    Select-Object Name, LastWriteTime, @{N='SizeMB';E={[math]::Round($_.Length/1MB,2)}}

# 3. Run System File Checker
Write-Host "
=== Running SFC Scan ==="
Start-Process -FilePath "sfc" -ArgumentList "/scannow" -Wait -NoNewWindow

# 4. Run DISM to repair Windows image
Write-Host "
=== Running DISM RestoreHealth ==="
DISM /Online /Cleanup-Image /RestoreHealth

# 5. Check disk health via SMART
Write-Host "
=== Disk Health (SMART) ==="
Get-PhysicalDisk | Select-Object FriendlyName, OperationalStatus, HealthStatus, Size |
    Format-Table -AutoSize

# 6. Check RAM info
Write-Host "
=== Installed RAM Modules ==="
Get-CimInstance -ClassName Win32_PhysicalMemory |
    Select-Object Manufacturer, PartNumber, Capacity, Speed, ConfiguredClockSpeed |
    Format-Table -AutoSize

# 7. Check for recent driver installations (last 30 days)
Write-Host "
=== Recently Installed Drivers (Last 30 Days) ==="
$cutoff = (Get-Date).AddDays(-30)
Get-WindowsDriver -Online -ErrorAction SilentlyContinue |
    Where-Object { $_.Date -ge $cutoff } |
    Select-Object Driver, OriginalFileName, Date, ProviderName |
    Sort-Object Date -Descending |
    Format-Table -AutoSize

# 8. List recently installed updates
Write-Host "
=== Recent Windows Updates ==="
Get-HotFix | Sort-Object InstalledOn -Descending | Select-Object -First 10 |
    Format-Table HotFixID, Description, InstalledOn -AutoSize

# 9. Export full driver list to desktop for review
$exportPath = "$env:USERPROFILE\Desktop\Drivers_Export.txt"
Get-WindowsDriver -Online | Sort-Object OriginalFileName | Out-File -FilePath $exportPath
Write-Host "
Driver list exported to: $exportPath"

# 10. Schedule Memory Diagnostic on next reboot
Write-Host "
=== Scheduling Windows Memory Diagnostic ==="
Start-Process -FilePath "mdsched.exe"

Write-Host "
=== Diagnostic Complete ==="
Write-Host "Review Event Viewer > Windows Logs > System for BugCheck entries."
Write-Host "Open minidumps with WinDbg Preview and run: !analyze -v"
Write-Host "Check MemoryDiagnostics-Results in Event Viewer after reboot."
E

Error Medic Editorial

The Error Medic Editorial team is composed of senior DevOps engineers, SREs, and Windows systems administrators with 10+ years of experience diagnosing critical system failures across enterprise and consumer environments. We specialize in translating kernel-level error analysis into actionable, step-by-step remediation guides for developers and IT professionals.

Sources

Related Articles in Windows 11 Bsod Windows

Explore More windows Guides