Walt Disney Per-Face Texture Mapping faceInfoSize Code Execution Vulnerability
A file header field controlling the size of face information is read without validation and can be negative, causing a buffer overflow when the data is read. An attacker could craft a malicious PTEX file that, when opened, leads to code execution.
Originally disclosed on Cisco Talos
An exploitable out of bounds write vulnerability exists in version 2.2 of the Per Face Texture mapping application known as PTEX. The vulnerability is present in the reading of a file without proper parameter checking.
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 faceinfosize value from the file header is used without checking that it is non-negative, so a negative value bypasses a size check and is later treated as a large positive number during reading.
Impact
An attacker could cause a buffer overflow that may lead to code execution when a victim opens a malicious PTEX file.
What the attacker needed
Victim opens a malicious PTEX file
The fix
A patch was included to check that the size value is greater than zero before processing the vulnerable block.
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 program that reads a special texture file trusts a number in the file that says how big a section is. If that number is negative, the program gets confused and writes more data than it should into a fixed-size memory area, which can crash it or let an attacker run their own code.
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.