0:00
–:––
React at 0:00

When and where

Day
Sat 8 Aug 2026
Time
12:30 to 13:30 PDT
Room
LVCC - L1 - Exhibit Hall West 3 - 1007 (Main Track 2)

Speaker

  • Vladimir Tokarev is a vulnerability researcher tech lead at Cyera, specializing in Cloud, IoT/OT, Windows, Linux, and AI vulnerability research and exploit. Talks: Black Hat USA 2024 and 2023, DEF CON 33 Recon Village 2025, CodeBlue 2025, RSA 2024.

Abstract

CET shadow stacks are supposed to make return-address corruption a dead end. This talk presents three techniques that write attacker-chosen values directly into shadow stack memory on Linux. The first uses /proc/self/mem. The kernel's FOLL_FORCE flag overrides shadow stack page protections, letting an unprivileged process write to its own shadow stack with open() and pwrite(). Works on x86-64 CET and ARM64 GCS. After our report, Linus Torvalds merged commit 599bbba5a36f to restrict this path. A fork+ptrace variant still works on patched kernels. No distribution ships the new default yet. The second uses userfaultfd. We register a fault handler on the shadow stack VMA, discard a page with MADV_DONTNEED, and when RET faults on the missing page, provide a replacement filled with chosen return addresses. The kernel maps it with valid shadow stack PTE encoding. Not blocked by the /proc/self/mem patch. The third uses Intel's WRSSQ instruction, which writes to shadow stack pages from user mode. We corrected a widespread encoding bug in prior PoC code (0x66 prefix produces ADCX, not WRSSQ) and confirmed it on Sapphire Rapids bare metal. Validated against three CVEs (dnsmasq, libinput, rsync) with demos on bare metal, including a root shell with CET still enabled. 1. Intel, "Control-flow Enforcement Technology Specification," Rev. 3.0, 2019. 2. ARM, "Guarded Control Stack (GCS) Extension," Arm Architecture Reference Manual for A-profile architecture. 3. Linux kernel source, mm/gup.c and fs/proc/base.c, including FOLL_FORCE, /proc/*/mem, and VM_SHADOW_STACK handling. 4. Lindenmeier and Schwarz, "Ghost in the Stack: CET Shadow Stack Bypass," Black Hat Europe 2025. 5. Muench et al., "Control Flow-Oriented Programming," USENIX Security 2025. 6. Schuster et al., "Counterfeit Object-oriented Programming: On the Difficulty of Preventing Code Reuse Attacks in C++ Applications," IEEE S&P 2015. 7. CVE-2017-14493, dnsmasq stack buffer overflow. 8. CVE-2022-1215, libinput format string vulnerability. 9. CVE-2024-12084, rsync heap buffer overflow.

What you'll get from it

Shadow stacks were meant to make overwriting a return address a dead end, closing off a whole family of memory attacks. Vladimir Tokarev shows that on Linux the protection isn't as final as hoped. Tokarev presents several ways attacker-chosen values can still reach shadow stack memory, including one the kernel maintainers have since moved to restrict. People who follow exploit mitigations closely will see how a hardware defence still depends on the software around it.

Did you find what you came for?