Pixar OpenUSD Binary File Format Token Strings Information Leak Vulnerability
A heap buffer overflow in Pixar OpenUSD's parsing of compressed token strings in binary USD files allows an attacker to read out-of-bounds memory by supplying a malformed file with a token count larger than the actual number of strings. This can lead to information disclosure and aid in bypassing mitigations such as ASLR.
Originally disclosed on Cisco Talos
A heap overflow vulnerability exists in the Pixar OpenUSD 20.05 parsing of compressed string tokens in binary USD files. A specially crafted malformed file can trigger a heap overflow which can result in out of bounds memory access which could lead to information disclosure.
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
The code does not verify that the number of tokens read from the file matches the actual number of null-terminated strings in the decompressed buffer, so it continues reading past the buffer end.
Impact
An attacker could leak sensitive process memory, which may help bypass ASLR and aid further exploitation; the vulnerability requires user interaction to open a malformed file.
What the attacker needed
Victim opens a malformed USD file
The fix
The vulnerability was fixed by the vendor, as confirmed by testing with a later macOS beta.
How it was found
- Craft a binary USD file with a TOKENS section where the numTokens value is larger than the actual number of null-terminated strings in the decompressed data.
- Ensure the compressed buffer decompresses successfully to a buffer containing fewer strings than numTokens.
- Open the malformed file with a vulnerable application (e.g., using sdfdump or a thumbnail generator).
- The parser reads past the end of the decompressed buffer, copying adjacent heap memory into the token list until numTokens is reached or a crash occurs.
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.
A heap buffer overflow is a bug where a program reads or writes past the end of a memory buffer allocated on the heap. Here, the program trusts a number in the file that says how many text strings are present, but does not check that the decompressed data actually contains that many strings. By lying about the count, an attacker can make the program read adjacent memory and copy it into its internal list, potentially leaking sensitive data.
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.