Independent security research on RUSTSEC-2026-0620 - AVX-512 negate_lazy underflow in curve25519-dalek.
Author: Michael D. Bullet Date: 2026-11-29
![]() VULNERABILITY CONFIRMED - negate_lazy underflow on AMD EPYC 9354P (AVX-512) |
F51x4Unreduced::negate_lazy in the AVX-512 backend uses bias = 16p (limbs < 2^55), but inputs from prior operations can have limbs slightly above 2^55 (e.g. x[4] = 2^55 + 8). This causes unsigned underflow, producing incorrect results in vartime_multiscalar_mul.
- Affected versions: curve25519-dalek >= 1.1.0, <= 5.0.0 (including pre-releases and forks like
-ng,-ml,-fiat) - Fixed in: >= 5.1.0 (
biaschanged to32p) - Worst case per advisory: valid signatures under the attacker's public key interpreted as invalid
| Range | Versions | AVX-512 Activation | Risk |
|---|---|---|---|
| Legacy | 1.1.0 - 3.2.1 | RUSTFLAGS=--cfg curve25519_dalek_backend="avx512" |
Requires explicit opt-in |
| Auto-detect | 4.0.0 - 4.1.3 | Nightly + runtime CPU detection | Highest - auto-enabled on capable CPUs |
| Unstable | 4.2.0 - 5.0.0-rc.x | Nightly + unstable_avx512 feature flag |
Requires explicit feature |
| Stable v5 | 5.0.0 | avx512 feature flag |
Requires explicit feature |
poc/ Rust PoC - regression test vectors verification
src/main.rs Runs issue #934 vectors against vartime_multiscalar_mul
Cargo.toml Pins curve25519-dalek 4.1.3 (vulnerable)
checklist-bounty-rustsec-2026-0620.md Triaging checklist + bounty/CVE workflow
prd-scanner-zig-rustsec-2026-0620.md PRD for the scanner tool
rustsec-scanner/ Zig scanner - finds vulnerable downstream projects
src/
main.zig CLI entry point + arg parsing
types.zig SemVer, VersionRange, ScanResult, constants
parser.zig Cargo.lock parser + file analysis (15 patterns)
rules.zig Risk scoring engine (0-100)
reporter.zig Terminal, JSON and Markdown output
local.zig Local directory scanner + product/bounty detection
github.zig GitHub Code Search API scanner
test/fixtures/ Test Cargo.lock files
public/ Evidence screenshots
# --- PoC: verify the bug with official test vectors ---
cd poc
cargo run --release # stable = PASS (serial/simd backend)
cargo +nightly run --release # nightly + AVX-512 CPU = FAIL
# --- Scanner: build ---
cd rustsec-scanner
zig build -Doptimize=ReleaseFast
zig build test # 11/11 tests
# Scan a single repo (sparse checkout - no full clone)
./zig-out/bin/rustsec-scanner --repo https://github.com/chainflip-io/chainflip-backend --min-score 1
# Batch scan - multiple targets via stdin
echo "https://github.com/jito-foundation/jito-solana
https://github.com/anoma/namada
https://github.com/MystenLabs/sui
https://github.com/penumbra-zone/penumbra
https://github.com/webb-tools/tangle
https://github.com/AstarNetwork/Astar" | ./zig-out/bin/rustsec-scanner --stdin --min-score 1
# Scan local clones
./zig-out/bin/rustsec-scanner --local ~/code/rust-projects --min-score 1
# Export results as JSON
echo "https://github.com/chainflip-io/chainflip-backend" | ./zig-out/bin/rustsec-scanner --stdin --json results.json --min-score 1
# GitHub Code Search (requires GITHUB_TOKEN env var)
./zig-out/bin/rustsec-scanner --github --min-score 50| Project | Version | Range | Score | Backend | Surface | Bounty |
|---|---|---|---|---|---|---|
| jito-solana | 4.1.3 | auto-detect | 100 | nightly (CI) | ed25519-dalek | $$ |
| namada | 4.1.3 | auto-detect | 100 | nightly (Makefile, 30+ refs) | ed25519-dalek | - |
| sui | 4.1.3 | auto-detect | 100 | nightly (workflows) | ed25519-dalek, bulletproofs | $$ |
| penumbra | 4.1.1-ng | auto-detect | 88 | nightly (nix) | - | $$ |
| tangle | 4.1.3 | auto-detect | 100 | nightly (5 workflows) | ed25519-dalek, schnorrkel | - |
| chainflip | 4.1.3 | auto-detect | 100 | nightly-2026-01-06 (toolchain!) | ed25519-dalek, schnorrkel | $$ |
| astar | 4.1.3 | auto-detect | 20 | no evidence | ed25519-dalek, schnorrkel | - |
- SemVer parsing with 4 version range classifications (legacy, auto-detect, unstable, stable_v5)
- AVX-512 activation detection - nightly, RUSTFLAGS, .cargo/config, CI workflows, Makefile, Dockerfile
- Product vs library detection -
[[bin]],src/main.rs(only products are CVE-worthy) - Bounty program detection - SECURITY.md, HackerOne, Immunefi, Bugcrowd
- Risk scoring 0-100 with CRIT/HIGH/MED/LOW classification
- Sparse checkout for remote repos (no full clone, handles monorepos)
- JSON and Markdown export
- Static binary ~3.4MB, zero dependencies
For authorized security testing and educational purposes only.




