Skip to content

fix(deps): patch ctutils constant-time advisories - #41

Closed
po4yka wants to merge 2 commits into
mainfrom
security/ctutils-0.4.4-oct23
Closed

po4yka wants to merge 2 commits into
mainfrom
security/ctutils-0.4.4-oct23

Conversation

@po4yka

@po4yka po4yka commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

ctutils constant-time security update

Update ctutils 0.4.2 to 0.4.4 in rust/Cargo.lock and rust/fuzz/Cargo.lock. Only its version and official checksum change; all other dependency records, source, manifests and pinned Git revisions are preserved.

Official evidence: RustSec advisory commit, upstream release. The advisory is now assigned RUSTSEC-2026-0385. It fixes constant-time masks and 32-bit u128 comparisons. Rust 1.87 is required, already below this project's declared MSRV/toolchain; cmov remains unchanged.

Verification

  • Independent lockfile and published-source diff review; archive checksum verified.

  • Published ctutils 0.4.4: all-feature tests passed (150 unit + 41 property tests, 2 upstream-ignored doctests); all-feature i686 compile check passed.

  • TOML and exact lock-record comparison passed; no unrelated package change.

  • Cargo regenerated both lockfiles byte-identically to the reviewed candidates on pinned Rust 1.99.1.

  • cargo tree --locked --target all -e features -i ctutils passed.

  • cargo test --locked -p chur-crypto passed: 66 tests and 3 doctests. git diff --check passed.

Merge gate

Full repository gates have not run locally. Require successful mandatory CI and review on the exact new head before merge. Upstream tests do not replace application-level validation or prove exploitability. Current main already has a failing android-application job in run 39829810228; that baseline is not counted as a candidate pass. A narrow Android lock-state repair is included to address the pre-existing release CI failure; no Android dependency versions, source code, workflows or test criteria are changed. No deployment, permission changes, test weakening, advisory ignores or toolchain changes.

Android release lock-state repair

Commit 530c4e4 adds releaseRuntimeClasspath to exactly the 20 existing dependency coordinates reported missing by the previous head's Android release job. All versions, other configurations and other lockfile lines are preserved. Independent review verified the candidate against the actual failure log. Strict dependency locking remains enabled.

No local Android build was run for this repair because this environment lacks an Android SDK. The full CI suite has been queued for the exact new head; successful completion remains required before merge.

Add the 20 existing dependency coordinates missing from releaseRuntimeClasspath, as reported by the Android release CI on this branch. Preserve every dependency version and all other configurations; keep strict locking enabled.
@po4yka

po4yka commented Oct 24, 2026

Copy link
Copy Markdown
Owner Author

Superseded on main: f77491c cherry-picks the ctutils 0.4.4 patch from this branch, and 350636c regenerates apps/androidApp/gradle.lockfile with the debug and the release tasks, which also locks releaseCompileClasspath (this branch locked only the runtime classpath, so its release step still failed).

@po4yka po4yka closed this Oct 24, 2026
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.

1 participant