---
title: "liboqs LMS signing: ignored lock failures allow one-time key reuse and forgery"
url: "https://pqt-19a6ffd695e12a.pages.dev/feed/2026-10-06-liboqs-lms-signing-ignored-lock-failures-allow-o/"
date: "2026-10-06"
classification: "Implementation vulnerability · Demonstrated"
action: "Patch"
affects: ["LMS / HSS"]
site: "PQ Tracker, maintained by zkSecurity"
reviewed: "2026-11-25"
license: "https://creativecommons.org/licenses/by/4.0/"
---

# liboqs LMS signing: ignored lock failures allow one-time key reuse and forgery

2026-10-06 · Implementation vulnerability · Demonstrated · Action: patch

The LMS/HSS wrapper in liboqs up to 0.16.0 ignored the return values of application-supplied lock callbacks, so signing could proceed and consume a one-time key when locking failed, and key serialization could return a stale pre-signing state that an application might reload. Reusing an LM-OTS key breaks unforgeability; the advisory says a forgery was demonstrated from eight signatures made at the same leaf. This is a state-management bug in one library (LMS is off by default there), with the fix listed for 0.17.0; it shows the state-reuse risk of stateful schemes in real code.

- Affects: [LMS / HSS](https://pqt-19a6ffd695e12a.pages.dev/algorithms/lms-hss/)

## Sources

- [liboqs advisory GHSA-xv6c-h66p-6mfq](https://github.com/open-quantum-safe/liboqs/security/advisories/GHSA-xv6c-h66p-6mfq)

## Related entries

- 2026-10 · Policy · [NSA issues CNSA 2.0 FAQ Version 2.2: 2027 / 2030 / 2031 dates, no new algorithms planned](https://pqt-19a6ffd695e12a.pages.dev/feed/2026-10-nsa-issues-cnsa-2-0-faq-version-2-2-2027-2030-20/)
- 2026-10-24 · Reduced security margin · Action: monitor · [Preprints: herding attacks lower security of SHA-256 LMS/HSS and XMSS parameter sets](https://pqt-19a6ffd695e12a.pages.dev/feed/2026-10-24-preprints-herding-attacks-lower-security-of-sha/)
- 2026-05-11 · Implementation vulnerability · Demonstrated · Action: patch · [liboqs XMSS and LMS verification: out-of-bounds reads on malformed inputs (three CVEs)](https://pqt-19a6ffd695e12a.pages.dev/feed/2026-05-11-liboqs-xmss-and-lms-verification-out-of-bounds-r/)
- 2025-11-14 · Implementation vulnerability · Demonstrated · Action: monitor · [Laser fault injection on WOTS verification demonstrated for XMSS on a microcontroller](https://pqt-19a6ffd695e12a.pages.dev/feed/2025-11-14-laser-fault-injection-on-wots-verification-demon/)
- 2025-06 · Standards action · [RFC 9802 published: HSS and XMSS hash-based signatures in X.509](https://pqt-19a6ffd695e12a.pages.dev/feed/2025-06-rfc-9802-published-hss-and-xmss-hash-based-signa/)
