All articles
Security researchAwarely Monitor editorial team8 min

Shadow stack bypass: three Linux paths at DEF CON 34

On Saturday, 8 August 2026, at DEF CON 34, researcher Vladimir Tokarev presented three techniques that let a process write attacker-chosen values directly into Linux shadow-stack memory. The demonstrations covered Intel CET on x86-64, ARM64 GCS, and a root shell obtained while CET remained enabled.

This is not a standalone zero-day granting remote access. An attacker needs an underlying memory-corruption flaw and the preconditions for each technique. The finding does show that a hardware mitigation cannot compensate for every write path exposed by the operating system.

What shadow stack protects

Intel Control-flow Enforcement Technology keeps return addresses on a separate, protected stack. When a function returns, the processor compares the normal-stack address with the shadow-stack copy; a mismatch stops the diverted flow.

On Linux, user shadow-stack support must exist in the processor, kernel, and executable. The kernel documentation explains how to check the CPU capability, ELF note, and process state. Seeing CET in a processor specification does not prove every service is using it.

The three write paths

All three reach the same result — attacker-chosen values in memory the control-flow mechanism trusts — but use different kernel and processor surfaces. That is why changing /proc/self/mem does not automatically close userfaultfd or WRSSQ.

  • ▸/proc/self/mem: FOLL_FORCE could force a write into a region that was otherwise not writable; the technique worked against x86-64 CET and ARM64 GCS
  • ▸userfaultfd: a page in the shadow-stack VMA is discarded with MADV_DONTNEED, then the fault is resolved with an attacker-controlled replacement page
  • ▸WRSSQ: the instruction explicitly intended to write to shadow stack can be emitted from user mode when the feature is enabled

What the Linux change fixes — and what it does not

After disclosure, commit 599bbba5a36f changed the choice for new configurations toward PROC_MEM_FORCE_PTRACE. FOLL_FORCE through /proc/pid/mem is thereby reserved for ptrace operations instead of being more broadly available.

This is neither a universal fix nor a retroactive change to every system. The commit message says an existing configuration carried forward with make oldconfig retains the old option. Administrators must inspect the distribution kernel’s actual configuration rather than infer it from the version number.

The research abstract also says explicitly that the userfaultfd route is not blocked by the first change. The patch reduces one surface; it does not make the underlying vulnerability or other primitives irrelevant.

Real impact, with real preconditions

The researcher validated the techniques against three vulnerabilities in dnsmasq, libinput, and rsync and demonstrated exploitation on bare metal, including a root shell with CET enabled. The public abstract does not list the CVE IDs, application versions, or complete configuration for each demo.

It should therefore not be translated as “any user can become root”. This is a way to turn certain existing primitives into a chain that passes shadow stack. Initial privileges, the memory bug, enabled features, and the process boundary determine the result.

What a Linux team should check now

  • ▸apply distribution-supplied kernel updates and follow advisories rather than relying only on the upstream version
  • ▸inspect the effective configuration for CONFIG_PROC_MEM_FORCE_*; do not assume a new default rewrote an existing kernel configuration
  • ▸separately verify CPU support, ELF properties, and shadow-stack state for critical processes as described by the kernel documentation
  • ▸keep vm.unprivileged_userfaultfd at 0 unless workloads require otherwise, and control permissions on /dev/userfaultfd
  • ▸prioritise patches for memory-corruption bugs in exposed services; CET is defence in depth, not a substitute
  • ▸monitor unusual /proc/*/mem access and use of userfaultfd or MADV_DONTNEED in sensitive services against a legitimate-behaviour baseline

The right risk signal

The abstract provides no evidence of in-the-wild exploitation and no CVE IDs for the three demonstrations. Until identifiers are published, the useful alert is about kernel configuration and memory vulnerabilities in installed software, not an invented “shadow stack bypass” CVE.

MONITOR AWARELY can correlate public CVEs for dnsmasq, libinput, rsync, or the kernel with inventory versions. The platform team must add context feeds do not contain: whether CET is active, whether userfaultfd is required, and the service’s threat model.

How to monitor CVEs and get alerts for products in your inventory