You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
node: register_lane race can roll a lane's stored frontier back to zero #2701
Source: GHSA-jr93-46mf-88wx (low bundle, internal audit at 772c8f4, re-confirmed on main).
register_lane (crates/node/src/handlers/client/mod.rs:1931-1951) checks contains_key and returns if the lane exists. Otherwise it calls pool_state_store.record(&state) before the atomic Entry::Vacant insert. The state it records is a fresh lane with amount 0, no last_signature and LaneChain::NONE (:1897-1908). PoolStore::record (crates/node/src/pool_store.rs:1219-1241) overwrites the row and keeps only registered_until, owner_sig and paid_cumulative. Two first streams on a lane can race, with one of them advancing and recording a voucher in between. The stored last_amount, signature and frontier then roll back to zero. The in-memory lane stays correct until the next record. A restart inside that window rehydrates the lane at zero, and the redeemer sees no signature.
Persist the zero state only from the thread that wins the Entry::Vacant insert (or make record refuse to lower the frontier)
Test: interleave two first-stream registrations with a voucher record; the stored frontier does not go backwards
Activity
docs: review follow-ups for the limiter, admin and config docs
fix(node): batch fix for the node security audit issues (#2712)