PREVAIL
PREVAIL: Context-write no-op in do_mem_store allows unsafe eBPF programs to pass verification
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.2.4
Fixed in 0.2.4
Mitigation
Upgrade prevail to 0.2.4 or later.
References
- Vendor advisory github.com/vbpf/prevail/security/advisories/GH…
- Patch github.com/vbpf/prevail/commit/de65234f67d2608…
- Release notes github.com/vbpf/prevail/releases/tag/v0.2.4
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.