跳到正文
Hacker News 熱門(buzzing.cc 中文翻譯)·· 2 天前AI 評分57

OpenSSL 修復 EVP_EncodeBlock() 緩衝區溢出漏洞(CVE-2026-121481,CVSS 9.8)

OpenSSL:EVP_EncodeBlock() 函数中的缓冲区溢出漏洞(CVE-2026-121481,CVSS 9.8)

AI 導讀

OpenSSL 已合併 PR #33652,修復 EVP_EncodeBlock() 的緩衝區溢出漏洞 CVE-2026-121481(CVSS 9.8)。改動亦為 EVP_DecodeBlock() 加入相似防護,修正 http_client.c 中 base64encode() 的長度檢查,並更新文件及新增記錄零長度輸入既有行為的測試。

正文

@nmouha

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.

@nmouha

nhorman

nhorman previously approved these changes Nov 11, 2026

t8m

t8m requested changes Nov 12, 2026

Draft

1 task done

bob-beck

@bob-beck bob-beck added the hold: discussion

The community needs to establish a consensus how to move forward with the issue or PR

label

Nov 13, 2026

bob-beck

@nmouha

@nmouha

@nmouha

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.

@nmouha

@andrewkdinh

Open

@nmouha

@nmouha

…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.

@nmouha

andrewkdinh

@nmouha

@nmouha

@nmouha

…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.

@nmouha

andrewkdinh

daedalus pushed a commit to daedalus/fuzzer that referenced this pull request

Nov 20, 2026

@claude

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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XPHAxcmCVco7xEZjip8Axk

Merged

Merged

Open

來源:Hacker News 熱門(buzzing.cc 中文翻譯) · github.com