← Lab /Systems

Return-oriented programming works on commercial PIM processors

ROP attacks are feasible on the UPMEM DPU and bypass standard defenses

Systems arXiv 4 Nov 2026 Attack Prototype evidence Threat model

Published as “PIMROP: A Feasibility Study of Return-Oriented Programming on Commercial Processing-in-Memory Architectures”

Why it matters

The work shows that current PIM deployments lack control-flow defenses and are vulnerable to code-reuse attacks, motivating the need for mitigations such as bounds-checked DMA or new canary designs.

Summary

PIMROP shows that return-oriented programming is feasible on the commercial UPMEM processing-in-memory DPU: the runtime library alone contains 517 non-trivial gadgets covering all five canonical ROP primitive classes, and every one of 13 real DPU benchmarks also has gadgets. The authors demonstrate two end-to-end attacks on a functional simulator that overwrite a saved return (stored as an instruction index) to leak a secret, including a sink-free chain that uses only reused library gadgets. Stack canaries are ineffective due to placement bugs, but a bounds-checked DMA can stop the attack. The evidence is based on scans of real DPU binaries and simulator runs; no hardware measurements are reported.

What they found 5

  1. The runtime library alone provides 517 non-trivial gadgets spanning all five ROP primitive classes.

    “the runtime library alone yields 517 non-trivial gadgets spanning all five canonical ROP primitive classes”

  2. All 13 PrIM benchmarks contain register-indirect terminators and non-trivial gadgets (8-49 terminators per 1000 instructions).

    “Every one contains register-indirect terminators and non-trivial gadgets, ranging from 8 to 49 terminators per 1000 instructions.”

  3. The saved return register is stored as an instruction index rather than a byte address.

    “The saved return register is not a byte address.”

  4. Stack canaries are placed on the wrong side of the overflow on the DPU.

    “Why stack canaries fail on the DPU: the upward-growing frame leaves the canary on the wrong side of the overflow (Section VIII-B).”

  5. A bounds-checked DMA prevents the ROP attack.

    “We also verify a bounds-checked DMA that stops the attack.”

Caveats 1

  • Moving the canary slot to the correct side of the frame via source-level simulation does not close the gap either: a sink-free gadget chain that preserves the DPU’s fixed, host-unseeded guard value leaks the secret on 10 of 10 runs against a kernel with a correctly placed canary.

What’s new here 4

  • First demonstrated code-reuse (ROP) attack on a commercial PIM ISA.
  • A gadget scanner (Galileo-for-DPU) tailored to the DPU's fixed-width, 8-byte-aligned RISC encoding.
  • Identification of DPU-specific exploitation details: saved return stored as an instruction index and upward-growing stack breaking conventional canaries.
  • A sink-free gadget chain that leaks data without invoking any victim function.

Threat model stated by the source

Adversaryattacker who can supply malicious input to a DPU kernel with a memory-safety bug and knows the DPU runtime library binary
Capabilitytrigger buffer overflow, enumerate gadgets offline, construct ROP chains; cannot inject or modify DPU code
Assumeshost CPU, OS, and orchestration runtime are trusted; DPU has no ASLR, CFI, or pointer authentication; gadget and sink addresses are static and known