Kernel Kit / Infix / v26.10.0latest
CVE-2026-54875
3.7lowlibopenssl3.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 non-constant-time optimized implementation of scalar point multiplication is used for SM2 private key operations on ARM64 and RISC-V platforms.
Impact summary: An attacker able to measure the time taken by, or to observe the cache-line access pattern of SM2 signing or decryption on an affected platform can learn information about the secret scalar.
CWE: CWE-208: Observable Timing Discrepancy
Description: On ARM64 and RISC-V processors, the SM2 curve uses an optimized scalar multiplication implementation whose conditional branches and table look ups are chosen according to the bits of the secret scalar. The execution time and the cache-access pattern therefore depend on the long-term private key (during SM2 decryption) or the per-signature nonce (during SM2 signature generation), forming a timing and cache side-channel.
FIPS Impact: no SM2 is not a FIPS algorithm and the optimized SM2 implementation is not part of the FIPS module.
OpenSSL 4.0, 3.6, 3.5 and 3.4 are vulnerable to this issue on AArch64 and RISC-V.
OpenSSL 3.0, 1.1.1 and 1.0.2 are not affected by this issue.
OpenSSL 4.0 users should upgrade to OpenSSL 4.0.3. OpenSSL 3.6 users should upgrade to OpenSSL 3.6.5. OpenSSL 3.5 users should upgrade to OpenSSL 3.5.9. OpenSSL 3.4 users should upgrade to OpenSSL 3.4.8.
This issue was reported on 2 May 2026 by Abhinav Agarwal. It was independently reported on 6 June 2026 by Feng Xue. The fix was developed by Igor Ustinov.
-- cut (non-publishing metadata for internal use) -- Reported by: Abhinav Agarwal, Feng Xue Fixed by: Igor Ustinov
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 5
- github.com/openssl/openssl/commit/3f01bbc28f7e08211fcdc797fd43816504f94257
- github.com/openssl/openssl/commit/469f3e42629f4a0b5631796e20c66c92c138a3e8
- github.com/openssl/openssl/commit/9794ed473764839275cb701b4850f3c24d929c28
- github.com/openssl/openssl/commit/dddad955d5ff3e9507619cf4e0f13e9988e2197c
- openssl-library.org/news/secadv/20260929.txt
Fable 5.1 · medium confidence · 2026-11-06
The build is affected: OpenSSL 3.5.8 (fixed in 3.5.9) is built for linux-aarch64 with SM2 and sm2-precomp enabled, so the non-constant-time ecp_sm2p256 scalar multiplication (secret-nibble-indexed table lookups with if (index) branches) is compiled into libcrypto, and none of the 4 Buildroot patches touch it.
However, the side channel only arises during SM2 private-key operations (signing/decryption), and nothing on the device performs them: libssl in this version has no SM2 signature algorithm at all (no "sm2" anywhere under ssl/), the device cert/SSH keys are generated as RSA by gencert/mkkeys, and confd's keystore only auto-generates RSA keys. Even if an operator uploaded an SM2 key via the ietf-keystore YANG, nginx/libssl cannot use it for a handshake, so no secret-scalar operation would run.
Reaching the code requires a root shell running the openssl CLI (or a custom program) with an SM2 private key — outside the product's management interfaces.
Evidence 12
MAJOR=3 MINOR=5 PATCH=8 — within the affected range (3.5 < 3.5.9)
output/build/libopenssl-3.5.8/VERSION.dat
Vulnerable code present: index = secret nibble; `if (index)` branch and precomputed[index] table lookup keyed by secret scalar — not constant-time
output/build/libopenssl-3.5.8/crypto/ec/ecp_sm2p256.c:ecp_sm2p256_point_P_mul_by_scalar (~line 393-410)
Generator multiply also branches on secret byte and memcpy()s from table at secret-dependent offset (used for signing nonce k*G)
output/build/libopenssl-3.5.8/crypto/ec/ecp_sm2p256.c:ecp_sm2p256_point_G_mul_by_scalar (~line 332-360)
Only 4 Buildroot patches (reproducible build, ppc64 ABI, static revert, serialize install); none touch crypto/ec
output/build/libopenssl-3.5.8/.applied_patches_list
ECP_SM2P256_ASM defined; ecp_sm2p256-armv8.S, ecp_sm2p256.c and ecp_sm2p256_table.c compiled into libcrypto
output/build/libopenssl-3.5.8/configdata.pm:952 (ECP_SM2P256_ASM) and :8167-8169, :10630
"sm2" and "sm2-precomp" are in the enabled options list; OPENSSL_NO_SM2 is not defined
output/build/libopenssl-3.5.8/configdata.pm:484 and include/openssl/configuration.h
Buildroot passes no `no-sm2-precomp`, so the precomputed-table G path is built
buildroot/package/libopenssl/libopenssl.mk:125 + output/.config BR2_PACKAGE_LIBOPENSSL_ENABLE_SM2_PRECOMP_TABLE=y
libssl has no SM2 signature-algorithm support; TLS servers (nginx) or clients cannot perform SM2 signing in a handshake
output/build/libopenssl-3.5.8/ssl/ (rg -il sm2 → no matches)
Device TLS cert and SSH host keys are generated as RSA (EVP_PKEY_RSA 2048) — no SM2 keys exist by default
src/gencert/gencert.c:106-108 and board/common/rootfs/usr/libexec/infix/mkkeys:12
confd keystore auto-generation only handles rsa-private-key-format; Infix-defined key formats are RSA, SSH, X.509 SPKI and X25519 — no SM2
src/confd/src/keystore.c:186,266-268 and src/confd/yang/confd/infix-crypto-types.yang:37-83
Operator-uploaded keystore keys are written to /etc/ssl for nginx only; since libssl cannot negotiate SM2, an uploaded SM2 key would not trigger SM2 private-key ops
src/confd/src/keystore.c:84-124 (gen_webcert) + board/common/rootfs/etc/nginx/ssl.conf:1-2
`openssl` CLI binary is in the image but not exposed through the Infix CLI; only usable from a root shell
output/.config BR2_PACKAGE_LIBOPENSSL_BIN=y; src/klish-plugin-infix (no 'openssl' references)
Version and patches
Affected: OpenSSL 3.4.x < 3.4.8, 3.5.x < 3.5.9, 3.6.x < 3.6.5, 4.0.x < 4.0.3 on AArch64/RISC-V. This build: 3.5.8 on linux-aarch64 (VERSION.dat), vulnerable ecp_sm2p256.c code present; fix (constant-time table selection in ecp_sm2p256 scalar multiply) not backported. Buildroot patches 0001-0004 do not address it; no IGNORE_CVES entry.
Recommendation
Document as not exposed and pick up the fix with the next routine libopenssl bump to 3.5.9 (or later); no emergency backport needed. Reasoning: CVSS 3.7, requires a local co-resident attacker measuring timing/cache behaviour of an SM2 private-key operation, and no Infix service or management path performs SM2 signing/decryption.
Open questions
Not verified by execution: whether SSL_CTX_use_PrivateKey in nginx rejects an SM2 key outright (expected, since libssl has no SM2 cert type) versus loading it and never using it — either way no SM2 private-key operation occurs in a handshake. Did not inspect every libcrypto consumer (hostapd/wpa_supplicant, libcurl, rauc, libssh) line by line, but none have a configuration path for SM2 keys in this product; rauc only performs public-key verification, which does not involve the secret scalar.
Members of Kernel Kit decide. Sign in if you are one.