Dell BSAFE Crypto-C _A_DecodeType out-of-bounds read vulnerability
An integer overflow in the _A_DecodeType function of Dell BSAFE Crypto-C allows a malformed ASN.1 record to make a length calculation wrap around, which then causes an out-of-bounds read. An attacker supplying such a record could leak memory contents, which may help bypass ASLR and, combined with other flaws, lead to code execution.
Originally disclosed on Cisco Talos
An integer overflow vulnerability exists in the ADecodeType functionality of Dell BSAFE Crypto-C xxx. A specially crafted ASN.1 record can lead to an out-of-bounds read.
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 length calculation adds a 32-bit length field to fixed offsets without checking for overflow, so a huge declared length wraps to a small value that passes the later bounds check.
Impact
An attacker could leak memory to bypass ASLR and, in combination with other vulnerabilities, gain the ability to execute arbitrary code; the CVSS vector rates only availability impact, so the leak is described as a possible consequence rather than a demonstrated one.
What the attacker needed
Attacker-supplied ASN.1 record; application parses untrusted ASN.1
The fix
The vendor released a patch, though the text does not describe what the fix changed.
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.
This library reads ASN.1, a standard way of encoding structured data such as certificates. When it works out how long a piece of data is, a very large declared length can wrap around to a small number, so the code then reads past the end of the buffer. That leaked memory could help an attacker defeat protections that randomise memory layout.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.