The branch target buffer mechanism in Intel Haswell CPUs can be used to leak ASLR memory addresses A feature in Intel’s Haswell CPUs can be abused to reliably defeat an anti-exploitation technology that exists in all major operating systems, researchers have found.The technique, developed by three researchers from State University of New York at Binghamton and the University of California in Riverside, can be used to bypass address space layout randomization (ASLR) and was presented this week at the 49th annual IEEE/ACM International Symposium on Microarchitecture in Taipei.ASLR is a security mechanism used by operating systems to randomize the memory addresses used by key areas of processes, so that attackers don’t know where to inject their exploit shellcode.ASLR is used to prevent memory corruption bugs, such as stack and heap overflows, from arbitrary code execution as opposed to crashes. Once such a vulnerability is exploited, the malicious code needs to be injected at a position in memory where the target process or the OS kernel itself will execute as part of normal operation. In their paper, the three researchers show that the branch target buffer (BTB), a caching mechanism used by the CPU’s branch target predictor, can be leveraged to leak ASLR addresses by triggering BTB collisions between different user processes or processes and the kernel. The branch prediction mechanism is used in modern CPUs to optimize performance.“The BTB stores target addresses of recently executed branch instructions, so that those addresses can be obtained directly from a BTB lookup to fetch instructions starting at the target in the next cycle,” the researchers explain in their paper. “Since the BTB is shared by several applications executing on the same core, information leakage from one application to another through the BTB side-channel is possible.” The researchers demonstrated their BTB-based ASLR bypass on a computer equipped with an Intel Haswell microarchitecture CPU and running a recent Linux kernel (version 4.5). Their attack can reliably recover kernel ASLR using BTB collisions in around 60 milliseconds.The research paper proposes both software and hardware-based mitigations that could prevent BTB-based side-channel attacks in the future or harden current ASLR implementations.Attackers currently have other methods of bypassing ASLR, but they typically require finding additional memory leak vulnerabilities and chaining those together with the original memory corruption flaw. Due to software security improvements in recent years, most remote code execution attacks today require the use of chained exploits.Intel didn’t immediately respond to a request for comments. Related content news UK government plans 2,500 new tech recruits by 2025 with focus on cybersecurity New apprenticeships and talent programmes will support recruitment for in-demand roles such as cybersecurity technologists and software developers By Michael Hill Sep 29, 2023 4 mins Education Industry Education Industry Education Industry news UK data regulator orders end to spreadsheet FOI requests after serious data breaches The Information Commissioner’s Office says alternative approaches should be used to publish freedom of information data to mitigate risks to personal information By Michael Hill Sep 29, 2023 3 mins Government Cybercrime Data and Information Security feature Cybersecurity startups to watch for in 2023 These startups are jumping in where most established security vendors have yet to go. By CSO Staff Sep 29, 2023 19 mins CSO and CISO Security news analysis Companies are already feeling the pressure from upcoming US SEC cyber rules New Securities and Exchange Commission cyber incident reporting rules don't kick in until December, but experts say they highlight the need for greater collaboration between CISOs and the C-suite By Cynthia Brumfield Sep 28, 2023 6 mins Regulation Data Breach Financial Services Industry Podcasts Videos Resources Events SUBSCRIBE TO OUR NEWSLETTER From our editors straight to your inbox Get started by entering your email address below. Please enter a valid email address Subscribe