AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Informational 19 Bitcoin

Merge bitcoin/bitcoin#36838: guix: backport oscrypto PBKDF2 timing fix

Public commit record

What the developer wrote

Authored by merge-script

91/100 · Strong
Merge bitcoin/bitcoin#36838: guix: backport oscrypto PBKDF2 timing fix

1575462b22b8584a49103eee7ad5a7ccf3289c4b guix: backport oscrypto PBKDF2 timing fix (Sjors Provoost)

Pull request description:

With substitutes disabled, `guix-codesign` can fail when building [oscrypto](https://pypi.org/project/oscrypto/) 1.3.0. The `test_dump_private` test raises `ZeroDivisionError`.

The Guix time-machine bump in bitcoin/bitcoin#36233 (merged after the 32.x branch-off) pulls in OpenSSL 3.5.5, which can finish oscrypto's initial PBKDF2 benchmark in under a millisecond. oscrypto truncates this duration to zero and then divides by it. This was fixed upstream in wbond/oscrypto@144c12195001b08b9ccecb8a3fd041d22ae24474

This PR adds the fix to `contrib/guix/patches`. It can be dropped once a new oscrypto release includes the fix and a Guix time machine bump includes it.

ACKs for top commit:
fanquake:
ACK 1575462b22b8584a49103eee7ad5a7ccf3289c4b

Tree-SHA512: 6a9e5bccb3d239d1638cc4005445359d1674e7b3a5dfc037d9cac92757047068db154d5574b382e90ac2995d8ebdf8f15551021ad399683b8a5d92f1bd6965a2
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This change fixes a build-time bug in Bitcoin Core's release-signing toolchain. A helper library called oscrypto could crash with a 'division by zero' error when measuring how fast a password-stretching routine (PBKDF2) runs on very fast machines. The patch simply makes sure the measured time is never rounded down to zero, so the calculation can complete. It does not change Bitcoin's consensus rules, networking, or wallet code, and it is not a security vulnerability in Bitcoin itself.

Recommended action

No urgent action needed for node operators or wallet users. For maintainers, ensure the backported patch is included in release branches and remove it once Guix ships an oscrypto release containing the upstream fix. Review the patch file path and checksums if reproducing release builds.

Security signals we found

01

Fixes a divide-by-zero / ZeroDivisionError in a dependency build script

02

Backports an upstream timing-measurement fix for PBKDF2 benchmark

03

Applies only to Guix codesigning manifest and patched oscrypto package

04

No change to consensus, P2P, wallet, or cryptographic algorithms in Bitcoin Core

Risk score

Why this scored 19/100

Our methodology →
Potential impact 2/30
Exploitability 1/25
Stealth signal 1/15
Affected reach 2/15
Confidence 9/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.