Repository navigation
Fix EVP AES-CFB1 length overflow - #12276
Merged
Merged
Conversation
ageprocpp
marked this pull request as ready for review
November 26, 2026 00:08
|
retest this please |
|
wolfSSL-Fenrir-bot
left a comment
There was a problem hiding this comment.
Fenrir Automated Review — PR #12276
Scan targets checked: wolfcrypt-src, wolfcrypt-bugs, wolfssl-bugs
Not reviewed (no scan target covers them): tests/api/test_evp_cipher.h
Coverage: 2 of 2 in-scope changed file(s) opened by the reviewer
Fenrir result: Approved ✅
No new issues found in the changed files.
Advisory only — this automated result does not count as a GitHub approval.
Review tier: Max
ageprocpp
force-pushed
the
fix/fenrir-18642
branch
from
November 26, 2026 00:56
fe8a2ac to
a021a40
Compare
SparkiDev
approved these changes
Nov 26, 2026
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.
Description
Fixes Fenrir#18642
Reject EVP AES-CFB1 updates of 512 MiB or more before converting the byte length to a 32-bit bit count. Previously, the multiplication could wrap, causing the update to report success and the full output length even though some or all input was not processed. For in-place encryption, the unprocessed portion remained plaintext.
Testing
git diff --checkpassed.unit_testwith CMake usingWOLFSSL_AESCFB=yesandWOLFSSL_OPENSSLEXTRA=yes.unit.test --api -test_evp_cipher_cfb1_length_overflowpassed. It checks rejection at 512 MiB and 512 MiB + 1 byte for both encryption and decryption, unchanged output, and unchanged feedback state after rejection.Checklist