Skip to content
Memory corruption Advisory Advanced CVE-2021-40418

Blackmagic Design DaVinci Resolve R3D DPDecoder Service frame parsing uninitialized uuid object vulnerability

The R3D SDK inside DaVinci Resolve's DPDecoder service fails to assign a property holding a UUID object parsed from a frame in a submitted video container. When the owning object is destroyed, the uninitialised member is dereferenced through its virtual destructor, letting an attacker who submits a crafted file potentially execute code as the application.

A member Follow

Originally disclosed on Cisco Talos

Critical 9.8 View original

When parsing a file that is submitted to the DPDecoder service as a job, the R3D SDK will mistakenly skip over the assignment of a property containing an object referring to a UUID that was parsed from a frame within the video container. Upon destruction of the object that owns it, the uninitialized member will be…

a member, 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 a code path in the R3D SDK skips assigning a member that should hold a parsed UUID object, leaving it uninitialised before the owning object's virtual destructor is invoked.

Impact

This could result in dereferencing an arbitrary pointer for the object's virtual method table, which can result in code execution under the context of the application.

What the attacker needed

Network access to the DPDecoder service; ability to submit a crafted R3D video file

How it was found

  1. Send a command string to the DPDecoder service socket to start a decode job.
  2. Supply the header fields and a filename pointing at a crafted video container.
  3. The service opens the file and the R3D SDK parses its header and stages.
  4. A frame containing a UUID is parsed but the property assignment is skipped.
  5. When the owning object is destroyed, the uninitialised member is dereferenced via its virtual destructor.

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.

DaVinci Resolve runs a background service that accepts video files to decode. When it reads a particular kind of video file, it forgets to fill in one internal pointer, so later it follows whatever leftover value happens to be there. An attacker who can send a crafted file to that service could make the program jump to a memory address they influence, which may let them 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.

More by A member

View all

110 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.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.