Add task: ecvebench-hashes-001#133
Merged
Merged
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds curated ECVEBench task
ecvebench-hashes-001for GHSA-fc7x-2cmc-8j2g (CVE-2021-45696).Advisory: The v0.9.7 release of the
sha2Rust crate introduced a buggy AVX2-accelerated backend that miscomputes SHA-512 hash digests for messages spanning multiple blocks (>128 bytes). The bug is in incorrect memory offsets and swapped lane insertion order when loading data for dual-block AVX2 processing.Vulnerability class:
crypto-weakness(CWE-327)CVSS: 9.8
Repo: RustCrypto/hashes
Patch PR: RustCrypto/hashes#314
Patch commit:
93d895de72c2cb3ac7bc106f03e33715f8f304c2Pre-patch commit:
726e3c3978a77eb4318b4511eed5ac885375acd0Files added
benchmark/data/tasks/ecvebench-hashes-001.jsonbenchmark/internal/metadata/GHSA-fc7x-2cmc-8j2g.jsonReview & Testing Checklist for Human
commitfield is the pre-patch SHA (parent), not the patch itselfpost_patch_commitin metadata is the actual patch commit SHANotes
sha2/src/sha512/x86.rs), sonoisy_patchisfalse.sha2/src/sha256/x86.rswas checked but does not contain an AVX2 backend or the same dual-block loading pattern, so no sibling locations were added.Link to Devin session: https://la-hacks-codebreaker.devinenterprise.com/sessions/66087e68a9ec4effac951a0aaa69bc64
Requested by: @jotalis