bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-54872

3.7low

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: The generic elliptic-curve scalar multiplication used for ECDSA and SM2 signature operations with curves that do not have a dedicated implementation leaks information about the secret nonce through timing.

Impact summary: An attacker able to measure signing times may learn information about the per-signature secret nonce, which over many signatures can, via a lattice / Hidden Number Problem attack, lead to recovery of the private key.

CWE: CWE-208: Observable Timing Discrepancy

Description: The generic elliptic-curve scalar multiplication used for curves that do not have a dedicated constant-time implementation pads the secret scalar with non-constant-time BIGNUM operations, so the time taken depends on the value of the secret scalar derived from the ECDSA and SM2 nonce.

The leak is very small; observing it requires a large number of measurements. The effect is largest for curves whose group order lies on a machine-word boundary, such as brainpoolP384r1.

Applications using ECDSA signing over the Brainpool and other generic prime curves, and SM2 signing on platforms that use the generic implementation, are vulnerable to this issue.

The NIST curves P-256, P-384 and P-521 use dedicated constant-time implementations and are not affected.

FIPS Impact: no The FIPS modules are not affected: the approved NIST curves used in the FIPS provider have dedicated constant-time implementations and do not use the affected code path.

Published 2026-09-29NVD

CVSS 3.1Network · no privileges · no user interaction

How it is reached

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None

What it costs

Confidentiality
Low
Integrity
None
Availability
None
Scope
Unchanged

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

References 6
Review Bv26.10.0x86_64Not exposed✓ accepted by a member, 2026-11-18 · settles 4 of 8

Fable 5.1 · medium confidence · 2026-11-05

OpenSSL 3.5.8 in this tree is unpatched for CVE-2026-54872: the generic EC ladder in crypto/ec/ec_mult.c:234-239 still pads the secret scalar with non-constant-time BN_add(), the 3.5.8 release (25 Aug 2026) predates the advisory, and the four Buildroot patches are build-system only.

EC/ECDSA/SM2 are compiled into the target libcrypto (configdata.pm shows no no-ec/no-sm2), and because no-ec_nistp_64_gcc_128 is set, Brainpool, SM2 and even P-384/P-521 all use the generic ladder in this build.

However, the CVE only leaks via ECDSA/SM2 signing, and every signing key the product provisions is RSA-2048 (mkkeys, gencert.c, factory keystore/services JSON); the management model (infix-crypto-types.yang, confd keystore.c) only supports RSA (plus X25519 for WireGuard DH) private keys, so an operator cannot select an affected ECDSA/SM2 signing key through YANG/CLI/web UI. Reaching the path requires a root shell or off-model misuse of the keystore.

Evidence 11
  1. 3.5.8 released 25 Aug 2026, before the 29 Sep 2026 advisory; CVE-2026-54872 not in the 3.5.8 fix list

    output/build/libopenssl-3.5.8/VERSION.dat, NEWS.md (3.5.8 section)

  2. Pre-fix scalar padding via plain BN_add(lambda,k,cardinality)/BN_add(k,lambda,cardinality) — the non-constant-time path the CVE describes

    output/build/libopenssl-3.5.8/crypto/ec/ec_mult.c:234-239 (ossl_ec_scalar_mul_ladder)

  3. Only four Buildroot build-system patches applied; none touch crypto/ec

    output/build/libopenssl-3.5.8/.applied_patches_list

  4. BR2_PACKAGE_LIBOPENSSL=y — target library, used by openssh, nginx, netopeer2, rousette, hostapd

    output/.config:2200, configs/x86_64_defconfig:54

  5. ec, sm2, ec2m not disabled; only no-ec_nistp_64_gcc_128 and no-sm2-precomp — ECDSA/SM2 compiled in

    output/build/libopenssl-3.5.8/configdata.pm:247 (options) and %disabled

  6. Brainpool and SM2 curves have method 0 → EC_GFp_mont (mul=NULL) → ossl_ec_wNAF_mul → generic ladder

    output/build/libopenssl-3.5.8/crypto/ec/ec_curve.c:2808-2835, ec_lib.c:1104-1108

  7. OPENSSL_NO_EC_NISTP_64_GCC_128 defined, so P-384/P-521 also have method 0 in this build; only P-256 uses ecp_nistz256 asm

    output/build/libopenssl-3.5.8/include/openssl/configuration.h:69; ec_curve.c:2647-2664

  8. Factory SSH host key is RSA-2048; EC P-256 generation is commented out

    board/common/rootfs/usr/libexec/infix/mkkeys:11-12

  9. Factory self-signed TLS certificate uses an RSA-2048 key

    src/gencert/gencert.c:106-108

  10. sshd, nginx/RESTCONF and NETCONF are enabled by default but all reference the RSA 'genkey'/'gencert' keystore entries

    src/confd/share/factory.d/10-infix-services.json, 10-netconf-server.json, 10-keystore.json

  11. Management model defines only rsa-private-key-format (and x25519 for WireGuard DH); confd generates RSA only and wraps installed keys as RSA PEM — no YANG/CLI path selects an EC/Brainpool/SM2 signing key

    src/confd/yang/confd/infix-crypto-types.yang:37-91; src/confd/src/keystore.c:132,186,266

Version and patches

NVD/upstream: OpenSSL 3.5.x < 3.5.9 affected (fix in 3.5.9; 3.5.8 released 25 Aug 2026, advisory 29 Sep 2026). Tree source is unpatched (ec_mult.c retains BN_add padding, no CVE reference in CHANGES.md). Applied patches (0001-0004) are build-system only and do not touch EC code.

Recommendation

Document as not exposed; upgrade to OpenSSL 3.5.9 with the next routine Buildroot bump rather than an urgent backport. Re-evaluate if EC host keys or EC TLS certificates are ever added to the keystore/management model.

Open questions

(1) The advisory states P-384/P-521 have dedicated constant-time implementations, but in this build (no-ec_nistp_64_gcc_128) they fall to the generic ladder alongside Brainpool; could not read the fix commits offline to confirm whether the fixed ladder covers that case. (2) confd does not validate that cleartext-private-key content matches private-key-format (keystore.c:322-369 dispatches on public-key-format only), so an operator could in theory push an EC PKCS#8 blob labelled RSA into /ietf-keystore:keystore/asymmetric-keys/asymmetric-key and sshd might load it as a NIST ECDSA host key; this is off-model misuse rather than a supported enable path, so it was not counted as USED_WHEN_ENABLED.

Review Av26.10.0aarch64_minimalNot exposedAccepted by a member, 2026-11-18. OpenSSL 3.5.8 in this tree is unfixed: crypto/ec/ec_mult.c still pads the secret scalar with plain BN_add() in ossl_ec_scalar_mul_ladder, EC/ECDSA/SM2 are compiled in, and Brainpool (and, because no-ec_nistp_64_gcc_128 is set, also P-384/P-521) use that generic ladder.Open the review →

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