Blackmagic Design DaVinci Resolve R3D DPDecoder Service frame decoding heap-based buffer overflow vulnerability
The DPDecoder service in DaVinci Resolve calculates a heap buffer size from client-supplied decoding parameters combined with fields parsed from an R3D video file, and an integer overflow in that calculation can allocate a buffer that is too small. Writing to this undersized buffer causes a heap-based buffer overflow that could allow code execution in the context of the application.
When parsing a file that is submitted to the DPDecoder service as a job, the service will use the combination of decoding parameters that were submitted with the job along with fields that were parsed for the submitted video by the R3D SDK to calculate the size of a heap buffer. Due to an integer overflow with regards…
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 an integer overflow when multiplying or combining client-supplied decoding parameters with R3D SDK header fields to compute a heap allocation size, producing a smaller buffer than the subsequent write requires.
Impact
A remote, unauthenticated attacker could cause a heap-based buffer overflow that may 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 file and job
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 helper service that accepts video decoding jobs over the network. When it works out how much memory to reserve for a frame, the arithmetic can wrap around and reserve far too little, so the data written afterwards spills past the end of that memory. An attacker who can send jobs to this service could use that spill to run their own code on the machine.
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.