arXiv:2609.01077cs.CRSep 2026

Manuscript Offprint

arXiv:2609.01077

JENGA: Exploiting Counter-Based RowHammer Countermeasures to Break Real-Time Predictability

Valentin Abgrall, Marcello Traiola, Ruben Salvador, Maria Méndez Real, Alessandro Palumbo, Angeliki Kritikakou

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Valentin Abgrall

Univ Rennes, CNRS, Inria

IRISA - UMR 6074, F-35000 Rennes

valentin.abgrall@irisa.fr

Marcello Traiola

Univ Rennes, CNRS, Inria

IRISA - UMR 6074, F-35000 Rennes

marcello.traiola@inria.fr

Ruben Salvador

CentraleSupélec, CNRS, Inria

IRISA - UMR 6074, F-35000 Rennes

ruben.salvador@inria.fr

Maria Méndez Real

Univ. Bretagne-Sud

Lab-STICC UMR CNRS 6285

maria.mendez-real@univ-ubs.fr

Alessandro Palumbo

CentraleSupélec, CNRS, Inria

IRISA - UMR 6074, F-35000 Rennes

alessandro.palumbo@inria.fr

Angeliki Kritikakou

Univ Rennes, CNRS, Inria

IRISA - UMR 6074, F-35000 Rennes

angeliki.kritikakou@irisa.fr

Abstract—Safety-critical real-time systems must satisfy multiple dependability requirements, notably time predictability and security. In such systems, tasks must complete within bounded and known execution times, typically characterised through Worst-Case Execution Time (WCET) analysis. At the same time, DRAM-based platforms are increasingly sensitive to the RowHammer read-disturbance security vulnerability, which has motivated the development of numerous hardware and software countermeasures in both academia and industry. However, the impact of these defences is generally evaluated in terms of average-case performance, a metric that is insufficient for safety-critical real-time systems, where worst-case behaviour is the primary concern.

In this paper, we study the impact of RowHammer countermeasures based on hardware counters on the timing behaviour of real-time systems. We use a Per-Row-Activation-Counter (PRAC) countermeasure as a case study, standardised for recent DDR5 memories, and show that it can introduce significant timing variations. Based on this observation, we introduce JENGA, an attack in which an attacker-controlled task manipulates the internal state of the RowHammer countermeasure mechanism to increase the execution time of a victim real-time task beyond its expected WCET. We implement JENGA in a gem5 and Ramulator 2.0 simulation environment and evaluate its impact on TACLeBench workloads. We show that such an attack can delay tasks up to 200% of their WCET, making the initial time-safety assumptions unsafe. To address this issue, we derive a safe analytical bound that accounts for mitigation-induced delays in WCET analysis for DRAM systems protected by hardware countermeasures, such as PRAC-N.

Index Terms—Real-time systems, DRAM memory, hardware security, timing safety, RowHammer, dependability

I. INTRODUCTION

Safety-critical real-time systems, such as avionics, Unmanned Aerial Vehicles (UAVs), autonomous vehicles, and medical devices, must satisfy stringent dependability requirements. In particular, tasks executing on these systems must complete within bounded and predictable execution times, as timing violations may lead to catastrophic consequences, including mission failure or threats to human safety [1]. Historically, the security of such systems has often received less attention than their timing and functional correctness properties, partly due to the assumption that embedded real-time platforms were unlikely targets for attackers [2]. However, this assumption has been challenged over the last decade by numerous demonstrations of attacks targeting real-time and cyber-physical systems, including connected vehicles and UAVs [3]–[5]. Consequently, modern critical systems must now simultaneously ensure both strong timing guarantees and robust security properties.

A major challenge is that security and real-time analysis have traditionally been investigated by distinct research communities. In practice, security mechanisms are not timing-neutral: they can introduce additional computations, memory accesses, resource contention, etc., thereby increasing execution-time overheads and timing variability [6]. While such overheads are generally acceptable in general-purpose systems, they can become problematic in safety-critical real-time systems, where even moderate increases in execution time may compromise schedulability or invalidate previously established Worst Case Execution Time (WCET) guarantees [2]. To address this limitation, on the one hand, security mechanisms should be designed with timing predictability in mind in order to be integrated into real-time systems. On the other hand, real-time approaches should account for the impact of security mechanisms on execution during WCET estimation and real-time guarantees.

Among well-known cybersecurity threats, the RowHammer vulnerability has emerged as a major concern for DRAM-based systems since its first disclosure in 2014 [7]. Due to physical coupling effects between adjacent DRAM cells, repeatedly activating (i.e., “hammering”) a given aggressor row can induce bit flips in neighbouring victim rows. In practice, RowHammer can be exploited at the software level to perform privilege escalation [8], [9] or to bypass logical memory isolation [10], [11]. Since 2014, sophisticated hammering patterns have been proposed [8], [12]–[16], progressively improving the attack’s effectiveness and stealthiness. This vulnerability is worsening with new DRAM generations. As DRAM feature sizes decrease, cell capacitance is reduced, and cells become increasingly susceptible to charge leakage and inter-cell interference [17]. Consequently, RowHammer represents a critical reliability and security concern for contemporary and future DRAM-based systems. Defending against RowHammer is very challenging, as it results from a hardware vulnerability that can be triggered through purely software-controlled memory accesses. Multiple software-level mitigations proposed in the literature have later been shown to be bypassable [13]. As a result, recent research has increasingly focused on hardware-level mitigations integrated directly into DRAM devices or memory controllers [18]. The majority of the proposed solutions follow a common paradigm: they monitor activations to different physical memory regions through counters and trigger a preventive mitigation action (usually refreshing a set of rows) when a specific condition on the counters is met.

These hardware countermeasures introduce overheads that remain reasonable when the RowHammer detection threshold is sufficiently high (e.g., when the triggering condition is set to 1000 row activations [19]). However, as the threshold decreases with technology scaling [17], mitigation actions must intervene more frequently, increasing memory interference and degrading overall system performance. This effect has led to the emergence of performance-oriented attacks [20]–[22], which deliberately trigger repeated mitigative actions to stall the memory subsystem and disrupt normal operation. To date, the impact of such attacks has been evaluated in terms of average performance degradation in general-purpose systems. However, to the best of our knowledge, their potential impact on real-time systems has not yet been assessed.

This paper addresses this limitation by assessing the time safety of counter-based preventive RowHammer countermeasure in the context of real-time systems. We consider a scenario in which an attacker task accesses the memory within its own address space to alter the state of the hardware counters associated with the RowHammer countermeasure. This modification is referred to as “building the JENGA tower”. By doing so, the attacker introduces delays in the execution time of the victim task, resulting from cascading mitigations, i.e., the collapse of the JENGA tower. We use the Per-Row-Activation-Counter (PRAC) countermeasure as a case study [23]. We show that such an attack can delay tasks up to 200% of their WCET, making the initial time-safety assumptions unsafe. Building on this finding, we provide a theoretical analysis of the impact of this scenario on task WCET and establish new bounds for tasks executing on DRAM memory protected against RowHammer.

In summary, this work makes the following contributions:

• We develop JENGA 1^{1}, a software attack against systems with RowHammer hardware countermeasures based on counters, capable of delaying real-time tasks by up to 200% of their WCET.

  • We develop a theoretical analysis to compute the WCET of programs running on a single-core system protected against RowHammer via a hardware-counter-based countermeasure.

• We apply our method to the PRAC countermeasure standardised for recent DDR5 memories and derive a safe analytical WCET bound.

  • We run an extensive simulation campaign based on gem5 and Ramulator 2.0 using TACLeBench workloads. The results show that JENGA effectively interferes with real-time guarantees across all considered workloads. Additionally, we empirically validate our analytical WCET bound for ten characteristic workloads.

References (52)