---
id: "CVE-2026-104254"
page: "https://infrastack.ai/live/CVE-2026-104254"
kind: "vulnerability"
aliases: ["CVE-2026-104254"]
title: "liboqs: LMS signature verification can over-read memory and crash"
severity: "medium"
cvss: 5.3
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["c", "hss", "liboqs", "lms", "package", "post-quantum"]
not_affected_if: ["default-config", "lms-disabled", "trusted-input-only"]
published_at: "2026-11-06T22:17:50+00:00"
first_seen_at: "2026-11-06T22:44:32+00:00"
updated_at: "2026-11-06T22:44:51+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-104254", "first_seen_at": "2026-11-06T22:44:32+00:00"}]
exploit_sources: []
---

# liboqs: LMS signature verification can over-read memory and crash

Link for people: https://infrastack.ai/live/CVE-2026-104254 (this .md is for agents)

liboqs builds with LMS/HSS stateful signatures enabled read up to 40 bytes past a caller-supplied signature or public key buffer when given a truncated signature. The read data is only hashed internally and not exposed, so the realistic impact is a verifier crash (denial of service) rather than data theft or a forged signature.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check whether the build sets `OQS_ENABLE_SIG_STFL_LMS=ON`.
- Check the liboqs version in use; affected range is `0.11.0` through `0.16.0`.

## Fix

- liboqs: move to `0.17.0` (the source says the fix is scheduled for this version; confirm it is released).

## Timeline

- 2026-11-06T22:44:32+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-104254

## Documents

- [advisory] Vendor advisory: github.com https://github.com/open-quantum-safe/liboqs/security/advisories/GHSA-wh5q-mpc8-67wf
- [fix] Patch: github.com https://github.com/open-quantum-safe/liboqs/commit/df3eb80fe68d2e5db0ecf5d503082cd5699e0859

## From the sources

liboqs is a C-language cryptographic library that provides implementations of post-quantum cryptography algorithms. From 0.11.0 through 0.16.0, builds configured with OQS_ENABLE_SIG_STFL_LMS=ON can read beyond a caller-supplied signature buffer when an untrusted truncated LMS or HSS-LMS signature reaches OQS_SIG_STFL_verify or OQS_SIG_STFL_alg_lms_verify. In hss_validate_signature_init() in src/sig_stfl/lms/external/hss_verify_inc.c, consumed-length checks do not ensure that the bottom-level q and C fields remain available, allowing up to 32 bytes to be read past the buffer. In version 0.16.0, is_hss_public_key() also reads at offset 8 after only a four-byte length check, allowing an over-read of up to eight bytes. No valid signature is required, but the public key must be syntactically plausible. The read data is consumed only by an internal hash and is not exposed, so the supported impact is a possible verifier crash and denial of service, not memory disclosure or acceptance of an invalid signature. This issue is scheduled to be fixed in version 0.17.0.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
