Pixar OpenUSD SDF layer path remote code execution
A use-after-free in Pixar OpenUSD 20.08 occurs when processing reference paths in textual USD files, where a saved path reference becomes stale after node processing. An attacker could craft a malformed file that triggers memory corruption and potentially arbitrary code execution when the victim opens it.
Originally disclosed on Cisco Talos
A use-after-free vulnerability exists in a way Pixar OpenUSD 20.08 processes reference paths textual USD files. A specially crafted file can trigger the reuse of a freed memory which can result in further memory corruption and arbitrary code execution.
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 code saves a reference to the current node's path before iterating over references, but processing those references can change or free the node, leaving the saved reference dangling and later reused.
Impact
A crafted file could cause memory corruption and potentially arbitrary code execution when opened by the victim.
What the attacker needed
Victim opens a malicious USD file
How it was found
- Create a textual USD file defining a prim with two references, one of which has a scale of zero.
- Open the file with a vulnerable OpenUSD build.
- Observe the use-after-free in a debugger when the stale path reference is reused during error handling.
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 use-after-free is a memory bug where a program keeps using a pointer to memory it has already released. In this case, a 3D model file can make the software reuse a freed path object, which can corrupt memory and let an attacker run their own code. The victim only needs to open a malicious file.
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.