Zebra Coverage-Guided Fuzzing Infrastructure

Milestone 1 — Final delivery

With the 2026-05-30 sign-off approaching, here is the Milestone 1 close-out for the Zebra Coverage-Guided Fuzzing Infrastructure grant. The full code, seed corpus, and reproduction scripts are now published on GitHub (link below) — this post is the summary; anyone who wants the per-file detail can clone the repository and reproduce everything in a few minutes.

Fuzz targets & coverage

The five Milestone 1 fuzz targets are complete and running under cargo-fuzz (libFuzzer + AddressSanitizer), covering Zebra’s core untrusted-input surface:

  • block_deserialize — block parsing + merkle-root / hash / coinbase-height invariants

  • block_deep_fuzz — 4-layer block fuzz reaching the consensus-validation layer

  • p2p_message_parse / p2p_deep_fuzz — P2P codec framing + multi-message decode

  • addr_message_fuzz — application-layer Addr handling

On the security-critical deserialization surface — the code an attacker reaches with malformed serialized data — region coverage is 77–89% (transaction 85%, transparent 86%, sapling 84%, orchard 89%, nullifiers 77%). Entry/parser layers (the P2P codec, the outer block parser) read lower by nature for decode-oriented fuzzing. Every figure reproduces against the published repository via the included run-coverage.sh, which replays the committed corpus — no long fuzzing run required.

Bugs found & disclosed

During Milestone 1 our coverage-guided fuzzing surfaced a V6 transaction hash panic (issue #10534): a crafted V6 transaction passes deserialization but then panics while computing its transaction ID, on a path reachable from P2P message decode before consensus checks run. It only affects nodes built with the nu7 + tx_v6 feature flags, which are not enabled in production builds, so it is not currently exploitable — we caught it ahead of the NU7 release and coordinated-disclosed it to the Zcash Foundation, where it is tracked as public issue #10534.

Code

The Milestone 1 fuzzing code is published here:

GitHub - robustfengbin/zebra-fuzz-m1: Milestone 1 of ZCG "Zebra Coverage-Guided Fuzzing Infrastructure" — five cargo-fuzz targets, committed seed corpus, coverage-reproduction scripts, built against ZcashFoundation/zebra main · GitHub

It ships the five fuzz targets, the committed seed corpus (16,180 real mainnet-derived inputs, ~134 MB), and the coverage-reproduction scripts, built against ZcashFoundation/zebra main. The repository is deliberately trimmed to the crates needed to build and reproduce the targets — this keeps the deliverable focused and lets reviewers diff the retained Zebra crates against upstream to confirm the only changes are the two fuzzing feature gates. The five targets themselves are not reduced in scope; they span the full core attack surface listed above.

What’s next

Milestone 2 extends to the proposal’s wider target set (RPC interface, script and address parsing, note-commitment trees, Equihash verification) along with corpus optimization and CI integration. A Month 2/3 progress update will follow in this thread.

Thanks again to ZCG, the Zcash Foundation security team, and the community for the continued review and engagement. Happy to answer questions or walk through reproduction.