Skip to content
DoS Advisory Intermediate CVE-2022-43593

OpenImageIO Project OpenImageIO DPXOutput::close() denial of service vulnerability

A null pointer dereference in OpenImageIO's DPXOutput::close() can be triggered by a specially crafted image specification with a channel count that leads to an uninitialised buffer. An attacker could cause a denial of service by providing malicious input to an application that uses OpenImageIO to write DPX files.

Lilith >_> Follow

Originally disclosed on Cisco Talos

Medium 5.9 View original

A denial of service vulnerability exists in the DPXOutput::close() functionality of OpenImageIO Project OpenImageIO v2.4.4.2. A specially crafted ImageOutput Object can lead to null pointer dereference.

Lilith >_>, on Cisco Talos

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 fails to check whether the buffer m_buf has been allocated before writing to it, because an early return in prep_subimage skips allocation when the image descriptor is unsupported.

Impact

An attacker could cause a denial of service by crashing the application that uses OpenImageIO to process a malicious image.

What the attacker needed

Attacker controls input image or spec; application uses OpenImageIO to write DPX

The fix

The vulnerability was fixed in a vendor patch release.

How it was found

  1. Create an input image with a specification that has a channel count of 2 or 5-8, causing an unsupported descriptor.
  2. Use the iconvert utility or similar to convert the image to a .dpx output file.
  3. During DPXOutput::close(), the code attempts to write buffered pixels without m_buf being allocated.
  4. A null pointer dereference occurs in memmove when writing to the file.

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 image files. When it tries to save an image in DPX format, a mistake can cause it to use a memory buffer that was never set up, leading to a crash. This means an attacker who can control the image data or settings could make the program crash, causing a denial of service.

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.

More by Lilith >_>

View all

148 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.