PREVAIL: Context-write no-op in do_mem_store allows unsafe eBPF programs to pass verification
vbpf prevail
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| vbpf prevail |
| No fix yet |
Original description
PREVAIL is a Polynomial-Runtime EBPF Verifier using an Abstract Interpretation Layer. Prior to version 0.2.4, the abstract transformer in prevail treats writes through a T_CTX-typed base register as a silent no-op: do_mem_store in src/crab/ebpf_transformer.cpp only models T_STACK stores, and the checker's T_CTX bounds arm never tests AccessType::write. An attacker can craft an eBPF program that overwrites a context field (e.g., ctx->data), reload that field typed as T_PACKET, and dereference an attacker-controlled address — and prevail will report the program as safe. This issue has been patched in version 0.2.4.
From the CVE record · GitHub_M