bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-107496

7.5high

libopenssl3.5.8in 2 of 4 releases

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

v25.03.1not in NVD's range
v26.01.0not in NVD's range
v26.09.03.5.8
v26.10.0latest3.5.8
aarch64_minimal
x86_64
aarch64_minimal–
x86_64–
aarch64_minimal–
x86_64–
aarch64_minimalAAwaiting reviewx86_64AAwaiting reviewaarch64_minimalAAwaiting reviewx86_64AAwaiting review

Description · NVD

Issue summary: Encrypting a CMS message to an EC certificate whose group order is 1 may cause CMS_encrypt() or CMS_encrypt_ex() to loop indefinitely.

Impact summary: An attacker able to supply the recipient certificate to an application performing CMS encryption can cause that application to loop indefinitely, consuming CPU and resulting in Denial of Service.

CWE: CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')

Description: CMS_encrypt() and CMS_encrypt_ex() encrypt a message to one or more recipient certificates and, for an EC recipient, generate an ephemeral key in the recipient's group. If the certificate declares a group order of 1, random scalar generation can only produce zero. The key generation routine then retries without limit while waiting for a nonzero private scalar, so the call never returns.

The OpenSSL TLS and QUIC implementations do not use this path. An application is exposed only if it calls CMS_encrypt() or CMS_encrypt_ex() with a recipient certificate whose EC parameters are attacker-controlled. Certificates with normal EC group orders do not trigger the loop.

OpenSSL 4.0 and later reject unknown explicit EC groups in default builds. These versions are affected only when configured with the enable-ec_explicit_curves option.

The result is a hang that consumes a CPU core until the process is interrupted, a Denial of Service. The severity is Low because the attacker must supply the recipient certificate and the application must choose to encrypt to it; ordinary CMS encryption to trusted recipients is unaffected.

The fix makes EC key generation fail when the group has no valid nonzero private scalar, instead of retrying indefinitely.

FIPS impact: no The FIPS modules in 4.1, 4.0, 3.5 and 3.0 are not affected. The FIPS provider does not support arbitrary explicit EC domain parameters, so an order-1 group is rejected during key import before the vulnerable key generation path is reached.

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
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 4
Review Av26.10.0aarch64_minimalNot exposedFable 5.2 · medium confidence · 2026-11-19

The build is affected: libopenssl 3.5.8 is in the target image with CMS and EC compiled in, and the unbounded retry loop in EC key generation is still present in output/build/libopenssl-3.5.8/crypto/ec/ec_key.c, with no patch addressing it.

Nothing in the shipped product calls CMS_encrypt() in the default configuration or through YANG, the CLI or the web UI. The only callers in the image are the openssl cms -encrypt command and rauc encrypt, both of which have to be run by hand from a shell with an attacker-chosen recipient certificate. The product's own CMS use is verify-only (ddi, RAUC bundle install), and the advisory states TLS and QUIC do not use this path, so it is not reachable from the network.

Evidence 12
  1. The vulnerable loop is present: `do ... BN_priv_rand_range_ex(priv_key, order, 0, ctx) ... while (BN_is_zero(priv_key));` with no check for a group order of 1.

    output/build/libopenssl-3.5.8/crypto/ec/ec_key.c:302-305

  2. The source is OpenSSL 3.5.8, release date 25 Aug 2026, which predates the advisory of 2026-11-10.

    output/build/libopenssl-3.5.8/VERSION.dat

  3. The newest changelog section is "Changes between 3.5.7 and 3.5.8"; neither CVE-2026-107496 nor any of the three fix commit hashes appears in `CHANGES.md`, `NEWS.md`, `buildroot/package/libopenssl/` or `patches/`.

    output/build/libopenssl-3.5.8/CHANGES.md:31

  4. Only the four Buildroot patches are applied (reproducible build, ppc64 ELFv2, static revert, serialized install); none touches EC key generation.

    output/build/libopenssl-3.5.8/.applied_patches_list

  5. `BR2_PACKAGE_OPENSSL=y`, `BR2_PACKAGE_LIBOPENSSL=y` and `BR2_PACKAGE_LIBOPENSSL_BIN=y`: the library and the `openssl` command are selected for the target, not only the host.

    output/.config:2152-2155

  6. `libopenssl` installs `./usr/lib/libcrypto.so.3` and `./usr/bin/openssl` into the target.

    output/build/packages-file-list.txt:19440,19444

  7. The configured options contain neither `no-cms` nor `no-ec`, so both features are built; `crypto/cms/build.info:5` and `crypto/ec/build.info:71` list `cms_kari.c`, `cms_ec.c` and `ec_key.c`.

    output/build/libopenssl-3.5.8/configdata.pm:246

  8. The CMS key-agreement recipient path calls `EVP_PKEY_keygen()` on a context built from the recipient's public key, which is how `CMS_encrypt()` reaches the EC keygen loop.

    output/build/libopenssl-3.5.8/crypto/cms/cms_kari.c:302-307

  9. The only caller of `CMS_encrypt()` in any target package outside OpenSSL itself; it is reached only from `encrypt_bundle()` in `src/bundle.c:1608`.

    output/build/rauc-1.13/src/signature.c:1613

  10. `encrypt_bundle()` is reached only from the `rauc encrypt <INBUNDLE> <OUTBUNDLE>` command, which is compiled into the target binary (`output/build/rauc-1.13/buildroot-build/config.h:8` sets `ENABLE_CREATE 1`).

    output/build/rauc-1.13/src/main.c:2772-2786

  11. The only `rauc` command the CLI exposes is `rauc install`; `src/confd/src/system-software.c:17` likewise uses only the RAUC installer D-Bus proxy. Neither encrypts.

    src/klish-plugin-infix/xml/infix.xml:1236

  12. The only `openssl cms` use in the rootfs overlay is `openssl cms -verify`; no script under `src/`, `board/` or `package/` runs `cms -encrypt`, `smime -encrypt` or `rauc encrypt`.

    board/common/rootfs/usr/bin/ddi:203

Version and patches

The tree has no copy of the upstream advisory or fix commits, so the affected range is taken from the CVE text, which lists 3.5 among the affected branches. The fixed 3.5.x version is not known from the tree, but it must be later than 3.5.8, which was released on 25 Aug 2026 before the advisory of 2026-11-10. The vulnerable loop is present unmodified in crypto/ec/ec_key.c, and none of the four applied Buildroot patches touches it.

Recommendation

Document as not exposed and pick up the fix with the next routine libopenssl 3.5.x bump that includes the 2026-11-10 advisory fixes; no urgent backport is needed.

Upstream rates this Low. Triggering it on a device needs a shell user to run openssl cms -encrypt or rauc encrypt against an attacker-supplied EC certificate, and the result is only a hung process owned by that user.

Open questions

I could not read the upstream advisory or fix commits from this tree, so the exact fixed 3.5.x release is unconfirmed.

The caller search covered the unpacked sources under output/build/ and the Infix sources in src/, board/ and package/. Prebuilt binaries and container workloads an operator might add were not inspected.

The brief describes libopenssl as a host package. host-libopenssl-3.5.8 is also built and carries the same code, but it runs only on the build machine; the review above covers the target copy.

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