Dell BSAFE Crypto-C GetIndefiniteElementLen stack overflow vulnerability
The ASN.1 parsing routine for elements with indefinite lengths can call itself recursively without any limit on depth. A malformed ASN.1 record could therefore exhaust the stack and cause a denial of service.
Originally disclosed on Cisco Talos
A stack overflow vulnerability exists in the GetIndefiniteElementLen functionality of Dell BSAFE Crypto-C xxx. A specially crafted ASN.1 record can lead to denial of service.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the indefinite-length element parser recurses on nested elements without any depth limit, so deeply nested input exhausts the call stack.
Impact
A remote attacker could send a malformed ASN.1 record to cause a stack overflow and denial of service; the text claims no confidentiality or integrity impact.
What the attacker needed
Attacker can supply ASN.1 input to the library
The fix
The vendor released a patch; the underlying fix should add a limit on recursion depth when parsing indefinite-length elements.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
ASN.1 is a standard way of encoding structured data, and some encodings mark an element's length as 'indefinite', ending it with a special marker instead. The library's routine that measures such elements calls itself again for each nested element, with nothing stopping it going deeper and deeper. A crafted input with very deep nesting uses up all the memory reserved for these calls, crashing the program so it cannot serve users.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.