OpenSSL: Buffer overflow in EVP_EncodeBlock() (CVE-2026-121481, CVSS 9.8)
Conversation This fixes the buffer overflow in `EVP_EncodeBlock()` (CVE-2026-121481) by returning `-1` for invalid inputs. It also provides a similar guard for `EVP_DecodeBlock()`, and fixes the incorrect length check in the `base64encode()` function of `http_client.c`. Also updates the documentation and adds new tests. This fixes the buffer overflow in `EVP_EncodeBlock()` (CVE-2026-121481) by calling `OPENSSL_assert()` for inputs that lead to undefined behavior. The same fix is applied to `EVP_DecodeBlock()`, and the incorrect length check in `base64encode()` of `http_client.c` is fixed. Also updates the documentation and adds new tests to document the existing behavior for zero-length inputs. …ock() This fixes the buffer overflow in `EVP_EncodeBlock()` (CVE-2026-121481) by calling `OPENSSL_assert()` for inputs that lead to undefined behavior. The same fix is applied to `EVP_DecodeBlock()`, and the incorrect length check in `base64encode()` of `http_client.c` is fixed. Also updates the documentation and adds new tests to document the existing behavior for zero-length inputs. …ncodeBlock() This fixes the buffer overflow in `EVP_EncodeBlock()` (CVE-2026-121481) by calling `OPENSSL_assert()` for inputs that lead to undefined behavior. The same fix is applied to `EVP_DecodeBlock()`, and the incorrect length check in `base64encode()` of `http_client.c` is fixed. Also updates the documentation and adds new tests to document the existing behavior for zero-length inputs. OpenSSL 4.x AVX2 encoder (openssl/openssl#33652 area) vs scalar via the public API, toggling OPENSSL_ia32cap_P[2] bit 5; decode round trip as second oracle. Mismatch raises SIGABRT (shim swallows abort()). Vendor default 4.1.0, stale-tree guard, version in build stamp, asm libcrypto variant, apps/include workaround for 4.1.0 Configure. Co-Authored-By: Claude Opus 5.5
Claude-Session: https://claude.ai/code/session_01XPHAxcmCVco7xEZjip8Axk Reviewers Requested changes must be addressed to merge this pull request. Uh oh! There was an error while loading. Please reload this page. Assignees nmouha Labels Projects Milestone Development Successfully merging this pull request may close these issues. Uh oh! There was an error while loading. Please reload this page. 7 participants