bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-72897

7.5high

libopenssl3.5.8 · 3.4.3 · 3.4.1in 4 of 4 releases

Reach libopenssl · 8 builds in 4 of 4 releases

full reviewcross-check✓ a member decided

Description · NVD

Issue summary: A TLS server that calls SSL_set_SSL_CTX() to switch a connection to a different SSL_CTX part way through a handshake may access memory beyond the end of an internal array if the replacement context knows about more provider signature algorithms than the context the connection was created from. Applications which never call SSL_set_SSL_CTX() are not affected.

Impact summary: A remote peer may be able to cause a small out-of-bounds read, and in some circumstances a fixed-value out-of-bounds write, on the server heap. This may lead to a Denial of Service.

CWE: CWE-787: Out-of-bounds Write

Description: A TLS connection records how many certificate slots it has when it is created, taken from the SSL_CTX that created it: the built-in certificate types plus one slot for each provider TLS-SIGALG entry that context was aware of. That count sizes an internal array of per-slot certificate validity flags.

An application may replace a connection's SSL_CTX part way through the handshake by calling SSL_set_SSL_CTX(), most commonly from a servername callback in order to serve a different virtual host. Doing so did not refresh the recorded count. A provider signature algorithm's slot index is its position in the list of whichever context resolves it, so if the replacement context is aware of more of them than the original, an algorithm offered by the peer can resolve to an index beyond the end of the array. Processing the peer's signature algorithms then reads one four byte word past the end for each such algorithm and, where the word read is zero, writes a fixed value over it. A peer offering many of them can corrupt heap metadata and abort the process.

Only provider signature algorithms which occupy one of the excess slots, and which the server also has configured, have this effect. Codepoints the replacement context does not recognise are discarded without being resolved to a slot, and provider signature algorithms are usable only from TLS 1.3.

The two contexts must therefore be aware of different numbers of provider signature algorithms, which requires separate library contexts, a provider loaded between the two being created, or providers which differ in what they advertise - in 4.0, for example, the default provider advertises SM2 where the FIPS provider does not. A deployment meeting the condition is also unable to negotiate the affected algorithms with legitimate clients, since the same stale count hides the corresponding certificates, so the misconfiguration is likely to be noticed. For that reason, and because the configuration is not the default, this issue has been assessed as Low severity.

FIPS impact: no No FIPS modules are affected by this issue as the affected code is outside the OpenSSL FIPS module boundary.

Published 2026-09-29NVD

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
None
Integrity
None
Availability
High
Scope
Unchanged

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References 5
Review Av26.10.0x86_64Not exposed✓ accepted by a member, 2026-11-12 · settles 4 of 8

Fable 5.1 · high confidence · 2026-11-05

The vulnerable SSL_set_SSL_CTX() (no refresh of sc->ssl_pkey_num) is present unpatched in libopenssl 3.5.8 and is called from nginx's SNI callback, which runs in the factory-default configuration (web/restconf/console enabled on 443/7681). However, the out-of-bounds condition requires the replacement SSL_CTX to know about more provider TLS-SIGALGs than the original, i.e. separate library contexts or a provider loaded between the two SSL_CTX_new() calls. In this image all nginx contexts are created in the one default libctx with only the built-in default provider (no ossl-modules shipped, openssl.cnf activates nothing extra, nginx never uses OSSL_LIB_CTX_new/OSSL_PROVIDER_load), so every context has the identical sigalg count and the stale count is never too small. Reaching the bug would require a root shell to install a third-party provider module, edit openssl.cnf and hand-write multi-vhost nginx config; none of this is exposed via YANG/CLI/web UI. The other SSL_set_SSL_CTX callers (libwebsockets, python _ssl, nghttpx) are not in the target image.

Evidence 11
  1. Swaps sc->cert and ssl->ctx but never updates sc->ssl_pkey_num — the unfixed code described by the CVE.

    output/build/libopenssl-3.5.8/ssl/ssl_lib.c:5485-5535 (SSL_set_SSL_CTX)

  2. ssl_pkey_num set once at SSL_new from ctx->sigalg_list_len and used to size s3.tmp.valid_flags.

    output/build/libopenssl-3.5.8/ssl/ssl_lib.c:957 and ssl/t1_lib.c:2929-2931

  3. Plain 3.5.8 (released 25 Aug 2026, before the 29 Sep 2026 advisory); the 4 Buildroot patches are build-system only, no backport of the fix.

    output/build/libopenssl-3.5.8/VERSION.dat; CHANGES.md:31; .applied_patches_list

  4. ml-dsa enabled, so the default provider advertises 3 TLS-SIGALG entries; the provider-sigalg slot machinery is live in this build.

    output/build/libopenssl-3.5.8/configdata.pm:455; providers/common/capabilities.c:286-319

  5. nginx calls SSL_set_SSL_CTX() in its servername (SNI) callback on every TLS connection carrying SNI.

    output/build/nginx-1.30.3/src/http/ngx_http_request.c:977

  6. web/enabled=true by default; confd enables the nginx service; TLS server blocks on 443 and 7681 — the caller runs by default and is network reachable.

    src/confd/share/factory.d/10-infix-services.json; src/confd/src/services.c:862; output/target/etc/nginx/available/default.conf, ttyd.conf

  7. sigalg_list_len is computed per SSL_CTX from the providers loaded in its libctx at SSL_CTX_new time.

    output/build/libopenssl-3.5.8/ssl/t1_lib.c:681 (OSSL_PROVIDER_do_all in ssl_setup_sigalgs)

  8. nginx loads config once via OPENSSL_init_ssl before creating all SSL_CTXs in the default libctx; it never creates separate libctxs or loads providers, so all contexts have equal sigalg counts.

    output/build/nginx-1.30.3/src/event/ngx_event_openssl.c:157-181; rg for OSSL_LIB_CTX_new/OSSL_PROVIDER_load in nginx src (none)

  9. No provider modules shipped and no provider activated beyond the implicit default — nothing can make two contexts differ.

    output/target/usr/lib/ossl-modules/ (empty); output/target/etc/ssl/openssl.cnf:53-72

  10. Other SSL_set_SSL_CTX callers (libwebsockets, python _ssl, nghttpx) are not in the image; ttyd runs plain HTTP on lo behind nginx.

    find output/target -name 'libwebsockets*' -o -name '_ssl*' (no results); output/target/etc/finit.d/available/ttyd.conf

  11. Management interface exposes only enable flags and a keystore certificate reference — no provider, libctx, or nginx virtual-host configuration.

    src/confd/yang/confd/infix-services.yang:311-360 (container web)

Version and patches

Affected per advisory: OpenSSL 3.x including 3.5.0–3.5.8 (fix lands in 3.5.9 / later lines); this tree is 3.5.8 with no backport of the SSL_set_SSL_CTX ssl_pkey_num refresh. Buildroot patches 0001-0004 are unrelated (reproducible build, ppc64 ABI, static-build revert, install serialization).

Recommendation

Document as not applicable in the shipped configuration (precondition of mismatched provider sigalg counts cannot occur). Pick up the fix with the next routine libopenssl bump to 3.5.9+; no urgent backport required.

Open questions

Could not fetch the upstream advisory/commits to confirm the exact fixed version string; conclusion that 3.5.8 lacks the fix is from the code itself. Rousette (RESTCONF) serves gRPC/HTTP on loopback behind nginx and was not individually checked for SSL_set_SSL_CTX, but it is not among the callers found by source grep.

Members of Kernel Kit decide. Sign in if you are one.