KAT-Seeded Fuzzing of Stateful Hash-Based Signature Verification in liboqs
Presents a KAT-seeded libFuzzer methodology for stateful hash-based signature verification (XMSS, LMS) in liboqs, finding a heap overflow CVE-2026-46344 fixed in 0.16.0.
Schemes: XMSS, XMSSMT, LMS, HSS-LMS
Findings (quotes checked against the source text)
-
KAT vectors can seed valid public key, signature and message buffers once at harness setup, allowing high-throughput fuzzing of verification without repeated costly key generation.
The proposed approach uses pre-computed Known Answer Test (KAT) vectors to initialise valid public key, signature, and message buffers once during harness setup, enabling high-throughput mutation of verification inputs without repeated key generation.
-
Attacker-controlled public-key OID bytes can select a parameter set whose expected signature length exceeds the caller buffer, causing an out-of-bounds read in xmssmt_core_sign_open (CVE-2026-46344).
The flaw occurs when attacker-controlled public-key OID bytes derive a parameter set whose expected signature length exceeds the caller-allocated buffer, resulting in an out-of-bounds read during signature parsing.
-
The bug was reproduced from a five-byte minimal crashing input and fixed in liboqs 0.16.0 via OQS coordinated disclosure.
The issue was reproduced using a five-byte minimal crashing input and a standalone C reproducer, disclosed through the Open Quantum Safe coordinated disclosure process, and fixed in liboqs 0.16.0.
-
A mutation-distribution bias hurt short-input LMS fuzzing and was resolved with a round-robin field-rotation strategy.
We further identify a mutation-distribution bias affecting short-input LMS fuzzing and resolve it using a round-robin field-rotation strategy.
Numbers (as extracted, not quote-checked)
- AddressSanitizer fuzzing campaign duration: ten minutes
- Minimal crashing input length: five bytes
For builders
Fuzz the parsing of attacker-supplied public-key OIDs and signature lengths in any stateful hash-based verifier you ship, using KAT-seeded inputs to keep throughput high.
Limits
Abstract only; full text not reviewed. Results cover liboqs XMSS/XMSSMT and LMS harnesses in a ten-minute campaign, so coverage completeness is not established.
Topics: implementation-sidechannel sig-stateful sig-hash-based standards-policy