Skip to content

How-ToCPU

How to Turn On Kernel-mode Hardware-enforced Stack Protection in Windows 11

Kernel-mode Hardware-enforced Stack Protection uses Intel CET or AMD Shadow Stack to block attacks on the Windows kernel, but it's off by default. From Microsoft's documentation, we cover what it does, which CPUs and Windows versions support it, how to turn it on and how to deal with incompatible drivers.

By , Systems & Technical Editor

4 min read

How to Turn On Kernel-mode Hardware-enforced Stack Protection in Windows 11

Open Windows Security's core isolation page on a recent PC and you may see a setting with a mouthful of a name: Kernel-mode Hardware-enforced Stack Protection. It uses a security feature built into newer Intel and AMD processors to stop a common kind of attack on the Windows kernel, and it's off by default, whereas memory integrity is switched on automatically on many newer PCs. This guide explains what it does, which CPUs support it, how to turn it on, and what to do if Windows says a driver is incompatible. It's based on Microsoft's support and Learn documentation, checked on 1 December 2026.

What it does

When code runs, the processor keeps return addresses on a stack so it knows where to go back to after each function finishes. Malicious programs or drivers can corrupt those return addresses in kernel-mode memory to redirect execution to their own code. With this feature on, supported CPUs keep a second copy of valid return addresses on a read-only shadow stack that drivers can't modify. If an address on the normal stack doesn't match the shadow copy, Windows stops with a blue screen rather than let the malicious code run.

Microsoft describes it as complementing Control Flow Guard: Control Flow Guard checks indirect calls, while hardware-enforced stack protection checks returns.

What you need

According to Microsoft, the prerequisites are:

  • Windows 11 2022 update or newer.

  • Windows Security app version 1000.25330.0.9000 or newer.

  • A CPU that supports Intel Control-flow Enforcement Technology (CET) or AMD Shadow Stack. Microsoft's examples are 11th Gen Intel Core mobile processors and AMD Zen 3 cores and newer.

  • Virtualization-based security (VBS) and memory integrity, also called hypervisor-protected code integrity (HVCI), turned on.

Memory integrity in turn needs hardware virtualization enabled in your UEFI/BIOS. If it's off, see our guide to enabling virtualization in the BIOS first. Microsoft says VBS and memory integrity are switched on automatically on Windows systems that meet the minimum hardware requirements, so many newer PCs already have them. If you're not sure what CPU you have, a tool from our best free system information tools will tell you.

Step 1: Turn on memory integrity

  1. Open the Windows Security app.

  2. Go to Device security > Core isolation details > Memory integrity.

  3. Set it to On, then restart your PC.

If memory integrity won't turn on because of an incompatible driver, our guide to fixing memory integrity incompatible drivers walks through finding and removing it.

Step 2: Turn on hardware-enforced stack protection

  1. Open Windows Security again.

  2. Go to Device security > Core isolation details > Kernel-mode Hardware-enforced Stack Protection.

  3. Set it to On, and restart if prompted.

Microsoft notes that the features shown on the core isolation page vary with your Windows version and hardware. If the setting doesn't appear at all, check the prerequisites above: Windows and Windows Security app versions, and CPU support for CET or AMD Shadow Stack.

Using Group Policy instead

If your edition of Windows includes the Local Group Policy Editor, Microsoft documents a second route aimed at business users:

  1. Open the Local Group Policy Editor.

  2. Go to Computer Configuration > Administrative Templates > System > Device Guard > Turn on Virtualization Based Security.

  3. Make sure the policy is Enabled.

  4. Under Options, find Kernel-mode Hardware-enforced Stack Protection and select Enabled in enforcement mode.

  5. Select Apply, then OK.

If it says a driver is incompatible

Microsoft says a small number of legitimate drivers modify return addresses for non-malicious reasons, so they don't work with this feature. Its examples are apps that use obfuscation engines to protect their code and disguise control flow. Windows keeps a list of drivers known to be incompatible, and instead of letting them crash the PC, it simply doesn't let them load when the feature is on, showing a prompt that a driver cannot load on this device.

The feature can't be turned on until incompatibilities are resolved. Select Review incompatible drivers to see what's blocking it, then either get an updated driver from the device maker or app publisher, or remove the app or device that installed it. Microsoft notes that some apps install a service first and only load their driver when the app launches, so Windows also lists services known to be associated with incompatible drivers. If an app you rely on stops working after you turn the feature on, you can switch it off again in Windows Security, though Microsoft points out that doing so lowers your PC's security.

Should you turn it on?

If your CPU supports it and memory integrity is already running without problems, it's an extra layer of kernel protection that's easy to try, and you can reverse it from the same toggle. It sits alongside the other core isolation settings rather than replacing them: the Microsoft Vulnerable Driver Blocklist stops known-bad drivers loading at all, and memory integrity checks kernel code before it runs.

The bottom line

Kernel-mode Hardware-enforced Stack Protection uses Intel CET or AMD Shadow Stack to stop attacks that tamper with return addresses in the Windows kernel. You need Windows 11 22H2 or later, a supported CPU (Microsoft cites 11th Gen Intel Core mobile and AMD Zen 3 or newer) and memory integrity turned on. Then switch it on in Windows Security under Device security > Core isolation details. If Windows lists an incompatible driver, update or remove the app behind it rather than leaving the feature off for good.

Sources

  1. 01Microsoft Learn, Kernel-mode Hardware-enforced Stack Protection
  2. 02Microsoft Support, Device Security in the Windows Security App

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

How to Choose an AI Upscaling Model: Using OpenModelDB to Find the Right One

How-To

How to Choose an AI Upscaling Model: Using OpenModelDB to Find the Right One

AI upscalers are only as good as the model you use. We explain how to use OpenModelDB to find the right one: subject and purpose tags, scale, architecture and app compatibility, file formats for PyTorch, ONNX and NCNN, licences, and how to shortlist and test models on your own images.

Marcus Thorne5 min

chaiNNer vs Upscayl: Which Free AI Image Upscaler Should You Use?

Versus

chaiNNer vs Upscayl: Which Free AI Image Upscaler Should You Use?

chaiNNer and Upscayl are two free, open source AI image upscalers you can run on your own PC. We compare ease of use, GPU support, model support, batch and video processing, how actively each is maintained, and licensing to help you choose.

Callum Reid6 min

How to Batch Upscale Images With chaiNNer: Free, Local AI Upscaling for Any GPU

How-To

How to Batch Upscale Images With chaiNNer: Free, Local AI Upscaling for Any GPU

chaiNNer is a free, open source, node-based app for running AI upscaling models locally. We cover which framework to install for NVIDIA, AMD and Intel graphics cards, downloading a model, building a simple upscale chain, turning it into a folder batch job and fixing black output and other common errors.

Marcus Thorne7 min

Best Monitor Control Apps for Windows in 2026: Ditch the OSD Buttons

Best Picks

Best Monitor Control Apps for Windows in 2026: Ditch the OSD Buttons

Most big monitor brands offer a free Windows app that replaces fiddly OSD buttons with mouse controls, plus extras such as layouts, per-app modes and firmware updates. Using each maker's own pages, we pick five: Dell Display and Peripheral Manager, ASUS DisplayWidget Center, LG OnScreen Control, BenQ Display Pilot 2 and Gigabyte OSD Sidekick.

Hannah Vance5 min