OpenSSL 3.6.5 收紧 FIPS 判定:缺少 fips-indicator 不再等同于“已批准”
来源:openssl-library.org/news/openssl-3.6-notes/(3.6 series release notes)
3.6.5(2026-09-29)是安全补丁版,最严重的 CVE 级别为 High。真正会影响存量运维脚本的,是 release notes 里 potentially significant / incompatible changes 一节的这条语义变更:
“Changed the OpenSSL FIPS provider so that every algorithm advertised with fips=yes property explicitly exposes a fips-indicator gettable context parameter, that returns 1 for an approved operation. The absence of an indicator is no longer interpreted as approval. Algorithms advertised with fips=no property, including X448MLKEM1024, remain unapproved and return 0 when they expose the indicator.”
变更点
fips-indicator 是 provider 侧的 gettable 参数,应用通过 EVP_*_CTX_get_params 读取,参数名为 "fips-indicator",返回 1 表示本次操作被批准。
3.6.5 之前和之后的行为差异在于:
- 以前:读不到 indicator,很多探测代码按“已批准”处理。
- 3.6.5 起:带
fips=yes的算法必须显式暴露 indicator;读不到就是未批准。 - 带
fips=no的算法(如 X448MLKEM1024)即使暴露 indicator 也返回 0,仍未批准。
受影响的探测逻辑
凡是把“没有 indicator”当成“通过”的地方,升级后结论都会反转:
- 自研 FIPS 自检程序:调用
EVP_*_CTX_get_params后不检查OSSL_PARAM是否被 provider 实际填充,直接走成功分支。 - 启动时的 provider 能力探测:只确认算法能列出、能初始化,未读取 indicator。
- CI 里的合规断言脚本:解析
openssl list输出,把出现算法名等同于“该算法在 FIPS 模式下可用”。 - 巡检/监控脚本:沿用旧结论做基线比对,升级后会把未批准算法误报为批准,或反之把正常算法误报为退化。
自查步骤
先确认版本与 provider 状态:
openssl version -a
openssl list -providers
按属性区分算法清单,注意 fips=yes 与 fips=no 应分别看:
openssl list -digest-algorithms -propquery 'fips=yes'
openssl list -cipher-algorithms -propquery 'fips=yes'
openssl list -public-key-algorithms -propquery 'fips=yes'
openssl list -digest-algorithms -propquery 'fips=no'
在代码或脚本里搜索现有判定分支:
grep -rn "fips-indicator\|fips_indicator\|OSSL_PARAM_construct" ./src ./scripts
对自研检测程序,把判定改成显式读取、缺省为未批准:
int approved = 0;
OSSL_PARAM params[] = {
OSSL_PARAM_construct_int("fips-indicator", &approved),
OSSL_PARAM_construct_end()
};
if (EVP_MD_CTX_get_params(ctx, params) != 1)
approved = 0; /* 读不到 indicator 按未批准处理 */
升级前后各跑一遍同一套自检脚本,对比输出差异,差异项就是需要人工复核的算法。X448MLKEM1024 这类 fips=no 算法即使是 0,也属于预期结果,不要当成回归。
同版本里的其他修复
AES-SIV 认证失败误报成功。 EVP_DecryptFinal() 在 AES-SIV 认证失败时曾经错误地返回陈旧的成功结果。凡是靠 EVP_DecryptFinal() 返回值判断密文完整性的路径,都要用篡改过的密文重新跑一遍负向用例。
QUIC 相关。
- CVE-2026-35191:未验证的 amplification credit 可能被超额计入。
- CVE-2026-42772:分片重组 O(n²),可造成 CPU DoS。
- CVE-2026-54873:STREAM 分片元数据 DoS。
- CVE-2026-75804:连接级流控未对 stream 强制执行。
- CVE-2026-84784:RETIRE_CONNECTION_ID 积压无上限。
自建 HTTP/3 网关的实例需要评估这几项,尤其是暴露在公网、直接处理分片与连接 ID 的场景。
DTLS 与握手。
- CVE-2026-84782:从陈旧缓冲区偏移重传握手消息。
- CVE-2026-75806:未认证且过小的 DTLS 1.2 AEAD 记录导致 DoS。
- CVE-2026-72897:握手期间调用
SSL_set_SSL_CTX()后出现越界访问。
侧信道与内存。
- CVE-2026-54872:通用椭圆曲线标量乘法的时序侧信道。
- CVE-2026-54875:ARM64 与 RISC-V 上 SM2 标量乘法非常量时间。
- CVE-2026-77696:SM2 签名生成的时序侧信道。
- CVE-2026-35189:相对 CRLDP 处理中的过量内存分配。
- CVE-2026-75805:CMP 客户端撤销响应处理中的空指针解引用。
生命周期
3.6 分支的 OSS 支持已于 2026-11-01 结束(据 versionlog 记录)。新部署应直接考虑 4.0 线,把 3.6.5 当作存量环境的过渡补丁版本。