arXiv:2609.10347cs.ARSep 2026

Manuscript Offprint

arXiv:2609.10347

CertiFlash: A Formal Verification Framework for Flash Translation Layers in Computational Solid State Drives

Harshita Gupta, Mayank Kabra, Rakesh Nadig, Nika Mansouri Ghiasi, Sahand Divsalar, F. Nisa Bostanci, Ataberk Olgun, Konstantinos Kanellopoulos, Jisung Park, Haiyu Mao, Abdullah Giray Yaglikci, Mohammad Sadrosadati, Onur Mutlu

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

Harshita Gupta† Mayank Kabra† Rakesh Nadig† Nika Mansouri Ghiasi† Sahand Divsalar† Fatma Nisa Bostanci† Ataberk Olgun† Konstantinos Kanellopoulos† Jisung Park‡ Haiyu Mao§ Abdullah Giray Yağlıkçı¶ Mohammad Sadrosadati† Onur Mutlu†

†ETH Zürich ‡POSTECH §King's College London ¶CISPA

In traditional compute-centric systems, many modern data-intensive applications suffer from significant data movement overhead because they move large amounts of data from storage to the compute unit. Storage-centric computing reduces this overhead by moving computation near or inside solid-state drives (SSDs). To enable it, SSD policies (e.g., address translation, garbage collection, and data placement) require modification. These policies are part of the Flash Translation Layer (FTL), the SSD's firmware. However, modifying them is complex and error-prone, and a single bug can violate the device's correctness, isolation, and ownership guarantees. Even a functionally correct FTL can leak data between tenants sharing the device, drop integrity tags, or assign a flash block to the wrong tenant. This is because FTL logic has direct access to many security-critical device components, e.g., the host-interface queue and the metadata in internal DRAM. We show that a faulty FTL can corrupt the device state at five surfaces inside the SSD, and we demonstrate those failures on a DaisyPlus OpenSSD platform. Prior work verifies individual FTL designs, but faces two limitations. (1) These works establish only functional correctness, so a modified FTL can violate isolation, integrity, and ownership and still pass verification, providing no security guarantee. (2) They are tied to the state and operations of a single FTL design, so every FTL modification requires regenerating every proof from scratch, significantly increasing the verification effort.

We propose CertiFlash, a formal verification framework for FTLs, mechanized in the Rocq proof assistant, that gives designers a machine-checked proof of both security and correctness. CertiFlash models an FTL as a deterministic state machine with a single global invariant over mapping, isolation, integrity, ownership, and allocation, grouped by primary purpose. We prove once, over a general FTL model, that (i) every FTL operation preserves the global invariant and (ii) the model refines an idealized block device. For a new design, a designer discharges five hypotheses about its own operations through a Rocq interface instead of redoing either proof. Across four case studies, a designer adds 27 to 3,231 lines against a 16,489-line framework, significantly reducing the verification effort. The source code of CertiFlash is freely available at: https://github.com/CMU-SAFARI/CertiFlash.

1. Introduction

Modern data-intensive applications suffer from significant data movement overhead because they access large amounts of

low-reuse data [1–50]. This data moves all the way from the solid-state drive (SSD) through main memory to the processing units for its first use, and is rarely used again. Many prior works (e.g., [6, 8, 19, 26, 29–33, 45, 48, 51–106]) demonstrate that moving computation near or inside the SSD [107–117] (§2.1.1), i.e., storage-centric computing, accelerates data-intensive applications such as genome analytics (e.g., [30–33, 106, 118]), machine learning (e.g., [85, 91, 96]), graph processing (e.g., [77, 92, 119, 120]), and database analytics (e.g., [121–123]) by reducing data movement between storage, main memory, and processing units.

Storage-centric computing [9, 14, 15, 124–126] requires customizing SSD policies (§2.1.2), e.g., logical-to-physical address translation or data placement, which are present in the Flash Translation Layer (FTL). The vendor modifies the FTL to build an application-specific SSD (§2.2.1), and the modified FTL runs on the SSD's controller. Custom FTL logic has direct access to shared, security-critical device components, i.e., the host-interface queue, internal DRAM, the embedded compute units, the flash controller, and the NAND flash chips, which we treat as five failure surfaces (§4.1). These surfaces are commonly shared in a scenario where multiple tenants [127–135] share a common SSD. NVMe namespaces and per-namespace keys define the isolation boundary among multiple tenants [136, 137], but the FTL enforces them and must implement them correctly.

An FTL is complex, so modifying it correctly is error-prone for any FTL designer, i.e., the party that supplies or extends the FTL. Production-scale FTLs maintain many runtime data structures, e.g., a logical-to-physical (L2P) mapping table that maps host-supplied addresses to physical flash pages, free-block pools, write pointers, and (in modern designs) demand-cached translation pages [138] and per-tenant ownership metadata. These structures are continuously updated, both by (i) host-visible read and write requests, and (ii) internal maintenance operations such as garbage collection and wear leveling [139–146], which silently relocate live data and update persistent metadata without explicit host invocation. The risk is not limited to an FTL being functionally incorrect, but in a multi-tenant scenario, even a functionally correct FTL can expose one tenant's data to another, drop an integrity tag the host relies on, or assign a flash block to the wrong tenant. We observe that a single bad state, e.g., a stale L2P entry, a duplicate in the free-block list, or an omitted integrity tag, can corrupt address translation, leak data across tenants, or invalidate data-integrity guarantees the host relies on.

Real-System Attack Demonstration. We demonstrate these risks on a real SSD, the DaisyPlus OpenSSD [147], by modifying its FTL (§4.1.2). The attacks fall into two settings. First, in a single-tenant setting, a modified FTL can, e.g., corrupt the tenant's own data, breaking data integrity. Second, in a multi-tenant setting, it can, e.g., expose one tenant's data to another or assign a flash block to the wrong tenant, breaking tenant isolation and block ownership. Each attack modifies only the FTL and issues ordinary host I/O, with no privileged access. The corruption can persist silently in FTL metadata for many operations before any host-visible failure, so neither the host nor the victim observes the violation. Unverified FTL modifications therefore pose a fundamental security risk.

Key Problem. Conventional SSD validation methods, such as unit testing, trace replay [139, 148], and fault injection [149] on emulated or prototyped devices [150–152], cover only part of the reachable FTL states, i.e., the combinations of values its internal data structures can hold, namely the logical-to-physical mapping table, the free-block and allocation lists, and the per-block valid-page and erase counts. Hence, these methods can miss faults that require specific sequences of host requests and maintenance transitions [149, 153]. Each customization changes which states the FTL can reach, so its validation cannot be reused and must be redone for the new design. Formal verification closes testing's coverage gap, because a proof holds over every reachable state. Prior work verifies FTLs formally in two ways. (1) SCFTL [153] and Flashix [154] each verify one specific FTL design. (2) Qiao et al. [155] instead build a framework that applies to any FTL and demonstrate it on BAST [156]. Unfortunately, these approaches have two limitations. (i) They establish only functional correctness. None of them states an isolation, integrity, or ownership property, so a functionally correct FTL passes while leaking data across tenants. (ii) Their proofs do not carry over to a new design. The invariant is supplied per design, so a new FTL writes its own and proves it. An effort that verifies every customization independently re-establishes every property of the unchanged parts, so its cost scales with the size of the FTL rather than with the size of the change.

Our goal is to design a reusable formal verification framework that enables FTL designers to develop a machine-checked proof of the correctness and security of their customized FTL. To this end, we propose CertiFlash, a formal verification framework implemented in the Rocq proof assistant [157].

Key Mechanism. CertiFlash defines a general FTL model that captures what every FTL has in common, i.e., the address mapping, page states, ownership labels, free blocks it keeps, and the six operations it performs on them, i.e., read, write, invalidate, integrity-tag update, garbage collection, and wear leveling. CertiFlash proves the two properties, i.e., (1) invariant preservation and (2) refinement of the idealized block device, once over this model. CertiFlash provides two ways to establish these two properties for a given FTL. (i) Direct verification, in which the FTL designer writes their FTL as a Rocq model

and proves end-to-end that the operations preserve all the required properties. CertiFlash carries out this mode once for its own model. A design repeats it only if it changes the global invariant. (ii) Modular verification, in which the designer describes their FTL through a Rocq interface and discharges five hypotheses instead of redoing the existing proofs. The interface asks for three inputs (§6.2): (a) the FTL's state and operations; (b) a refinement map that projects the FTL's state onto CertiFlash's model; and (c) proofs of five hypotheses about the FTL's own operations, namely that they preserve the global invariant and that a write neither loses nor corrupts data. CertiFlash's proofs then carry over unchanged, so the designer proves only what the modification changes.

Key Results. We evaluate CertiFlash on four case studies spanning the ways a new design can differ from a verified one (§7): an orthogonal extension, DFTL [138], the in-storage-processing system MegIS [33], and deduplication [158]. Across the four case studies, a designer adds 27 to 3,231 lines against a 16,489-line framework.

Contributions. We make the following contributions:

  • We identify five failure surfaces that custom FTL logic can violate, and we demonstrate attacks on each surface, using a real SSD, the DaisyPlus OpenSSD platform [147] (§4.1.2).

  • We propose CertiFlash, the first framework that gives a modified FTL a machine-checked proof of tenant isolation, data integrity, and block ownership, not only functional correctness. CertiFlash states mapping correctness, tenant isolation, data integrity, block ownership, and block allocation as a single global invariant (Definition 5.2) and proves that 1) every FTL operation, including garbage collection and wear leveling, preserves it (Theorem 5.1), and 2) reads return the data stored at the corresponding address in the idealized block device (Theorem 5.3).

  • We make verification reusable across FTL designs through two modes (§5): direct verification, in which a designer proves their implementation correct end-to-end, and modular verification, in which a designer describes their FTL through a small Rocq interface and discharges five hypotheses instead of redoing CertiFlash's proofs. To our knowledge, this is the first work to make FTL security proofs reusable across designs.

  • We evaluate CertiFlash on four case studies and show that verification effort is significantly reduced by CertiFlash's modular verification.

References (100)

Couldn't load all references. Reload the page to try again.