Skip to content

quic-transport: bump quinn to 0.11 (CVE-2026-31812) - #111

Merged
n13 merged 3 commits into
mainfrom
n13/bump-quinn-0.11
Oct 22, 2026
Merged

n13 merged 3 commits into
mainfrom
n13/bump-quinn-0.11

Conversation

@n13

@n13 n13 commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Bumps the miner workspace from quinn 0.10 / rustls 0.21 to quinn 0.11 / rustls 0.23.

Why. quinn-proto before 0.11.14 panics on a malformed max_datagram_frame_size transport parameter (CVE-2026-31812, RUSTSEC-2026-0037, fixed in quinn#2559). We were on 0.10.6, which has the same r.get().unwrap() in TransportParameters::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

  • quinn and rustls move to [workspace.dependencies] with the same feature set the node uses (runtime-tokio, rustls-ring, log; rustls ring + std), consumed by quic-transport, miner-service and pool-service.
  • PinnedCertVerifier ported to the rustls 0.23 client::danger::ServerCertVerifier trait. 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.
  • Client config pins TLS 1.3 explicitly and goes through QuicClientConfig.
  • Two new tests spin up a local quinn server with a self-signed cert (rcgen, dev-dependency): a wrong fingerprint still surfaces as PermanentConnectError with "pin rejected" (the error-string match in connect survives 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.

n13 added 3 commits October 22, 2026 16:30
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 n13 added the bot-review label Oct 22, 2026

@n13 n13 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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, and git 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.

@n13 n13 removed the bot-review label Oct 22, 2026
@n13
n13 merged commit af4610e into main Oct 22, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants