bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-54875

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: 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
Review Bv26.10.0x86_64Not affected✓ accepted by a member, 2026-11-18 · settles 4 of 8

Fable 5.1 · high confidence · 2026-11-05

CVE-2026-54875 concerns the architecture-specific optimised SM2 scalar multiplication (crypto/ec/ecp_sm2p256.c + ecp_sm2p256-armv8.S, selected by ECP_SM2P256_ASM) that OpenSSL only builds for AArch64 (and RISC-V in newer branches).

This Infix image is built for linux-x86_64; the configured build defines ECP_NISTZ256_ASM for libcrypto but never ECP_SM2P256_ASM, and the generated Makefile contains no ecp_sm2p256 objects at all. On x86_64 the SM2 curve falls back to the generic constant-time EC_GFp method (crypto/ec/ec_curve.c:2830-2834 #ifdef/#else), so the vulnerable code path is not compiled into the product.

The source is unpatched 3.5.8 (the fix is in 3.5.9), but the vulnerable feature is not present in this build.

Evidence 7
  1. Target image is x86_64, not AArch64 or RISC-V, the only platforms the advisory lists as affected.

    output/.config:49,52 (BR2_x86_64=y, BR2_ARCH="x86_64") and BR2_PACKAGE_LIBOPENSSL_TARGET_ARCH="linux-x86_64"

  2. OpenSSL configured with target => "linux-x86_64".

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

  3. libcrypto is compiled with ECP_NISTZ256_ASM etc. but no ECP_SM2P256_ASM define.

    output/build/libopenssl-3.5.8/configdata.pm:956-975 ("libcrypto" defines)

  4. ecp_sm2p256.c, ecp_sm2p256-armv8.S and ECP_SM2P256_ASM are added only under $ECASM_aarch64/$ECDEF_aarch64; no x86_64 (or riscv) entry exists in this 3.5.8 tree.

    output/build/libopenssl-3.5.8/crypto/ec/build.info:34-40

  5. The generated Makefile for this build compiles no SM2 optimised objects.

    output/build/libopenssl-3.5.8/Makefile (grep ecp_sm2p256 => 0 matches; ecp_nistz256 => 33 matches)

  6. NID_sm2 uses EC_GFp_sm2p256_method only #ifdef ECP_SM2P256_ASM; otherwise the generic (constant-time ladder) method, which is what x86_64 gets.

    output/build/libopenssl-3.5.8/crypto/ec/ec_curve.c:2828-2834

  7. Only the four Buildroot patches (reproducible build, ppc64 ABI, revert static fix, serialize install) are applied; none touch SM2. CHANGES.md has no 3.5.9/CVE-2026-54875 entry, so the source itself is unfixed 3.5.8 — irrelevant here since the code is not built.

    output/build/libopenssl-3.5.8/.applied_patches_list

Version and patches

Advisory: OpenSSL 3.4–4.0 vulnerable on AArch64 and RISC-V only; fixed in 3.5.9 (3.4.8, 3.6.5, 4.0.3). This tree is 3.5.8 without the upstream fix (no backport, no Buildroot patch naming the CVE). However, the vulnerable implementation (ECP_SM2P256_ASM / ecp_sm2p256*.c/.S) is only compiled for aarch64 in this release's build.info, and this build targets linux-x86_64, so the affected code is not compiled.

Recommendation

Document as N/A for the x86_64 image (vulnerable arch-specific code not compiled). No urgent action; the issue will be closed anyway by the next routine bump to OpenSSL >= 3.5.9. Note: if Infix also ships an aarch64 image built from the same libopenssl 3.5.8, that build should be triaged separately — there the SM2 asm path is compiled and the question becomes whether SM2 signing/decryption with secret keys is ever performed (it is not used by TLS by default and no YANG/CLI node selects SM2).

Open questions

Compiled objects/libcrypto.so are not present in the tree (only configured sources and generated Makefile/configdata.pm), so the absence of the SM2 asm objects is established from the build description rather than the final binary. Applicability to any non-x86_64 (aarch64) Infix builds was not assessed.

Review Av26.10.0aarch64_minimalNot exposedAccepted by a member, 2026-11-18. 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.Open the review →

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