TikTag: Breaking ARM's Memory Tagging Extension with Speculative Execution
Juhee Kim, Jinbum Park, Sihyeon Roh, Jaeyoung Chung, Youngjoo Lee, Taesoo Kim, Byoungyoung Lee
TL;DR
This work shows that ARM MTE, while offering strong protection against memory corruption, can be undermined by speculative execution through TikTag gadgets that leak MTE tags from arbitrary memory. It introduces two gadgets, TikTag-v1 and TikTag-v2, each exploiting distinct micro-architectural behaviors to reveal tags and bypass MTE mitigations in Chrome and the Linux kernel, achieving high success rates and practical attack times. The authors provide a detailed analysis of the root causes, validate attacks across real-world surfaces, and propose mitigation strategies including speculation barriers, padding, and hardware-enforced isolation of tag checks from speculative paths. The findings highlight critical considerations for both the design of MTE-enabled hardware and the deployment of MTE-based defenses in production systems, and they contribute open-source gadget implementations to aid ongoing security research.
Abstract
ARM Memory Tagging Extension (MTE) is a new hardware feature introduced in ARMv8.5-A architecture, aiming to detect memory corruption vulnerabilities. The low overhead of MTE makes it an attractive solution to mitigate memory corruption attacks in modern software systems and is considered the most promising path forward for improving C/C++ software security. This paper explores the potential security risks posed by speculative execution attacks against MTE. Specifically, this paper identifies new TikTag gadgets capable of leaking the MTE tags from arbitrary memory addresses through speculative execution. With TikTag gadgets, attackers can bypass the probabilistic defense of MTE, increasing the attack success rate by close to 100%. We demonstrate that TikTag gadgets can be used to bypass MTE-based mitigations in real-world systems, Google Chrome and the Linux kernel. Experimental results show that TikTag gadgets can successfully leak an MTE tag with a success rate higher than 95% in less than 4 seconds. We further propose new defense mechanisms to mitigate the security risks posed by TikTag gadgets.
