OpenImageIO DDS native tile reading denial of service vulnerability
A crafted .dds file can trigger a null pointer dereference in OpenImageIO's DDS tile reading code, causing a crash. An attacker can provide a malicious file to cause denial of service.
Originally disclosed on Cisco Talos
A denial of service vulnerability exists in the DDS native tile reading functionality of OpenImageIO Project OpenImageIO v2.3.19.0 and v2.4.4.2. A specially-crafted .dds 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
The tile reading function does not check if the internal buffer is empty before writing to it, leading to a null pointer dereference.
Impact
A crafted .dds file can cause a denial of service by crashing the application.
What the attacker needed
Victim opens a malicious .dds file
The fix
The vulnerability was fixed in a vendor patch release.
How it was found
- Craft a .dds file with tile dimensions set and cube map flags indicating a missing face.
- Open the file with OpenImageIO and call ReadImage().
- The library enters read_native_tile, finds m_buf empty, and attempts to zero it, causing a crash.
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.
OpenImageIO is a library for reading and writing many image formats. A specially crafted .dds image can make the library try to write to a null memory address, which crashes the program. This means an attacker could cause a denial of service by supplying such a file.
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.