Reported-by: Francisco Tacliad
Severity: Low (informational)
CWE: CWE-407 (Inefficient Algorithmic Complexity)
The campaign produced 36 hang inputs. Analysis:
- 2 true timeouts (>5 seconds, did not complete)
- 33 slow completions (finished given more time, but exceeded AFL++'s timeout threshold)
- 1 memory leak (Finding 2 above)
The timeout inputs contain crafted ASN.1 length fields and nested
structures that trigger quadratic or worse processing time. In a
network-facing context (OCSP responder, key server), these could
be used for CPU exhaustion.
METHODOLOGY
Tool: AFL++ 4.x with afl-clang-fast, AddressSanitizer enabled
Target: libksba master, commit 63df565
Harness: Custom fuzz_ksba_dn.c exercising both ksba_dn_str2der()
and _ksba_derdn_to_str() code paths
Seeds: libksba test suite + hand-crafted RFC 2253 DN strings
Duration: ~16 hours on standard workstation
Results: 62 crashes, 36 hangs, 4800+ unique code paths explored
Full crash corpus and fuzz harness available on request.