Not yet analysed by NVD. Matched on the vendor's record; this may change when NVD has analysed it.
Reach libopenssl · 4 builds in 2 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
Issue summary: Setting an AES-GCM-SIV IV shorter than the expected nonce length via EVP_CipherInit_ex() may trigger a heap out-of-bounds read. Supplying a longer IV is silently truncated instead of rejected.
Impact summary: An application passing a caller-supplied IV of the wrong length may crash or read beyond its buffer. Because trailing IV bytes are ignored, an attacker who knows one message and tag may forge messages under a different IV.
CWE: CWE-125: Out-of-bounds Read
Description: AES-GCM-SIV copies the caller-supplied IV or nonce into its internal state using a copy whose length is taken from the expected nonce size rather than from the length the caller actually provided. When the caller passes a shorter IV, the copy reads past the end of the caller's buffer; AddressSanitizer confirms a heap out-of-bounds read reached through EVP_CipherInit_ex() into ossl_aes_gcm_siv_init(). When the caller passes a longer IV, the implementation silently discards the trailing bytes instead of rejecting the length.
The truncation breaks the binding between the IV and the computed authentication tag. An attacker who has observed a message and its tag under one IV can produce a message and tag that verify under a different IV whose first bytes match, since the surplus bytes never influence the computation. The message itself is unchanged, so this is a failure of IV commitment rather than a classic existential forgery.
Only applications that call EVP_CipherInit_ex() (or the equivalent provider cipher initialization) with an IV length other than the standard 12 bytes for AES-GCM-SIV are affected. The severity is limited because the out-of-bounds read is small and attacker-controlled only in length, and the forgery requires an unusual IV length choice by the application.
FIPS impact: no The FIPS modules are not affected by this issue, as AES-GCM-SIV is not an approved algorithm.
Published 2026-11-10NVD
CVSS 3.1Network · no privileges · no user interaction
How it is reached
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
What it costs
- Confidentiality
- High
- Integrity
- None
- Availability
- None
- Scope
- Unchanged
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
The fix for the flaw this CVE describes is already in the libopenssl 3.5.8 source this build compiles. ossl_aes_gcm_siv_init() in output/build/libopenssl-3.5.8/providers/implementations/ciphers/cipher_aes_gcm_siv.c rejects any IV whose length is not exactly the 12-byte nonce size (PROV_R_INVALID_IV_LENGTH) before it copies the IV. So neither the short-IV out-of-bounds read nor the long-IV silent truncation can occur.
AES-GCM-SIV itself is compiled in (BR2_PACKAGE_LIBOPENSSL_ENABLE_SIV=y, so no-siv is not passed), which means the result rests on the length check and not on the feature being absent. Reachability was not assessed, because the fix is present.
Confidence is medium only because the upstream advisory and fix commits are not in the tree, so I could not compare the code against the actual fix hunk or confirm the official affected range.
Evidence 10
`if (ivlen != sizeof(ctx->nonce)) { ERR_raise(ERR_LIB_PROV, PROV_R_INVALID_IV_LENGTH); return 0; }` runs before `memcpy(ctx->nonce, iv, sizeof(ctx->nonce))`. Short and long IVs are both rejected, so the unchecked copy the CVE describes is not present.
output/build/libopenssl-3.5.8/providers/implementations/ciphers/cipher_aes_gcm_siv.c:109-115 (ossl_aes_gcm_siv_init)
Both the encrypt and decrypt init entry points pass the caller's `ivlen` straight into `ossl_aes_gcm_siv_init()`, so the length check covers both directions. A search of this file found no other place where a caller-supplied IV is copied.
output/build/libopenssl-3.5.8/providers/implementations/ciphers/cipher_aes_gcm_siv.c:123-135 (ossl_aes_gcm_siv_einit / ossl_aes_gcm_siv_dinit)
The hardware layer only reads the already-validated `ctx->nonce` (`NONCE_SIZE` bytes); it does not copy from the caller's buffer.
output/build/libopenssl-3.5.8/providers/implementations/ciphers/cipher_aes_gcm_siv_hw.c:59
The source is OpenSSL 3.5.8, with `RELEASE_DATE="25 Aug 2026"`.
output/build/libopenssl-3.5.8/VERSION.dat
`LIBOPENSSL_VERSION = 3.5.8`, fetched as the upstream release tarball.
buildroot/package/libopenssl/libopenssl.mk:7-9
Four Buildroot patches are applied. Their `+++` headers show they touch only `Configure`, `crypto/build.info` and `Configurations/unix-Makefile.tmpl`; none touches the AES-GCM-SIV code, so the length check comes from the 3.5.8 source itself.
output/build/libopenssl-3.5.8/.applied_patches_list
`BR2_PACKAGE_LIBOPENSSL_ENABLE_SIV=y`: the SIV ciphers are enabled in this build.
output/.config:2188
`no-siv` is passed only when `BR2_PACKAGE_LIBOPENSSL_ENABLE_SIV` is unset, so AES-GCM-SIV is compiled in here.
buildroot/package/libopenssl/libopenssl.mk:124
A compiler dependency file exists for `cipher_aes_gcm_siv.c`, which indicates the file was compiled into the default provider.
output/build/libopenssl-3.5.8/providers/implementations/ciphers/libdefault-lib-cipher_aes_gcm_siv.d
The only AES-GCM-SIV security entry in the changelog is a different issue (CVE-2026-45446, empty-message tag handling). CVE-2026-95692 is not mentioned, so the changelog does not say which release added the IV length check.
output/build/libopenssl-3.5.8/CHANGES.md:522-536
Version and patches
The tree is upstream OpenSSL 3.5.8 (output/build/libopenssl-3.5.8/VERSION.dat, released 25 Aug 2026) plus four Buildroot build-system patches that do not touch cipher code. The IV length check that fixes the described flaw is present in ossl_aes_gcm_siv_init() in this source. The upstream advisory (secadv/20261110.txt) and the three fix commits are not available in the tree, so the official affected range and fixed version could not be checked; the NVD match on 3.5.8 appears to be broader than the code warrants. CHANGES.md in the tree does not mention CVE-2026-95692.
Recommendation
Document as not applicable: the IV length validation is already in the shipped 3.5.8 source, so no upgrade or backport is needed for this CVE.
Before closing, compare upstream commit 257a3427aa0ef8d9dd2ef5b3e2d1c021a221b116 (and the two sibling commits) against providers/implementations/ciphers/cipher_aes_gcm_siv.c to confirm the fix contains nothing beyond the ivlen != sizeof(ctx->nonce) check.
Open questions
The upstream advisory and fix commits could not be read (no network access, and they are not in the tree). I therefore could not confirm the official affected range, or whether the fix also changes anything outside ossl_aes_gcm_siv_init(), such as a parameter-setting path or a different file.
Reachability (which Infix components, if any, use AES-GCM-SIV) was not assessed, because the fix is present.
Members of Kernel Kit decide. Sign in if you are one.