Repository navigation
quic-transport: bump quinn to 0.11 (CVE-2026-31812) - #111
Conversation
quinn-proto < 0.11.14 panics on a malformed max_datagram_frame_size transport parameter (GHSA-6xvm-j4wr-6v98, RUSTSEC-2026-0037). The miner workspace was on 0.10.6, which carries the same unwrap. quinn and rustls become workspace dependencies with the node's feature set. PinnedCertVerifier is ported to the rustls 0.23 danger trait; the handshake signature checks that 0.21 supplied as trait defaults are now explicit and delegate to the ring provider. Two tests run connect() against a local quinn server with a self-signed cert: a wrong fingerprint is still a PermanentConnectError, the right one connects.
n13
left a comment
There was a problem hiding this comment.
Reviewer model: GPT-6.1 Sol
Verdict (advisory): Approve
Reviewed head 39a1267b7a7b6f68659277fd7b15eb43bfe5f9b6 against base c7838cbc86f7d74477da1771139f377a8e438072. No blocking findings.
The miner and pool both use the upgraded shared transport. Certificate pinning remains intact, and the explicit ring-backed TLS signature verification rejects a server presenting the pinned certificate with a different private key. TLS 1.3, ALPN quantus-miner/2, message framing, and permanent pin/auth rejection behavior are preserved. The lockfile resolves a single quinn-proto 0.11.18, beyond the 0.11.14 fix documented in the upstream advisory; its affected parser propagates the error instead of unwrapping it.
Validation:
cargo test --locked -p quic-transport -p miner-service -p pool-service: 14 tests passed, including both new pinning tests.- Four temporary loopback integration tests passed against the unchanged PR library: mismatched signing key rejected, invalid auth classified as permanent, old ALPN rejected, and Ready/NewJob frames exchanged successfully.
cargo clippy --locked -p quic-transport -p miner-service -p pool-service --all-targets -- -D warnings,cargo fmt --all -- --check, Taplo, andgit diff --check: passed.- GitHub CI at the reviewed head: format, build/test, Clippy/docs, benchmark, and dependency cooldown all passed.
Local runtime validation used loopback servers; a deployed-node session was not exercised.
Bumps the miner workspace from quinn 0.10 / rustls 0.21 to quinn 0.11 / rustls 0.23.
Why.
quinn-protobefore 0.11.14 panics on a malformedmax_datagram_frame_sizetransport parameter (CVE-2026-31812, RUSTSEC-2026-0037, fixed in quinn#2559). We were on 0.10.6, which has the samer.get().unwrap()inTransportParameters::read. Exposure is low: the miner and pool service are QUIC clients that only connect to a configured node with a pinned certificate, so an attacker has to be that node or sit on the path during the handshake. The node side is already on quinn-proto 0.11.15.Changes
quinnandrustlsmove to[workspace.dependencies]with the same feature set the node uses (runtime-tokio,rustls-ring,log; rustlsring+std), consumed by quic-transport, miner-service and pool-service.PinnedCertVerifierported to the rustls 0.23client::danger::ServerCertVerifiertrait. The handshake signature checks that 0.21 provided as trait defaults are now explicit and delegate to the ring provider, so possession of the pinned cert's private key is still verified.QuicClientConfig.rcgen, dev-dependency): a wrong fingerprint still surfaces asPermanentConnectErrorwith "pin rejected" (the error-string match inconnectsurvives the quinn error-type changes), and the right fingerprint connects.No wire or config change: same ALPN
quantus-miner/2, same flags, same auth flow.Lockfile. Drops rustls 0.21, ring 0.16, rustls-webpki 0.101 and the native-certs / security-framework chain; adds rcgen and its x509 parsing deps (dev only).
Verified locally.
cargo fmt --check,cargo build --locked --workspace,cargo test --locked --workspace(all pass),cargo clippy --locked --workspace --all-features,cargo doc --no-deps --all-features: all clean.