CVE-2021-40418 Use after free in Blackmagic Design
An attacker can achieve code execution by submitting a malicious file to the DPDecoder service, exploiting an uninitialized pointer dereference in the R3D SDK.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-40418?
CVE-2021-40418 is a critical use after free vulnerability in Blackmagic Design, published on 22 Dec 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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 dereferenced and then destroyed using the object’s virtual destructor. Due to the object property being uninitialized, this can 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.
Which versions are affected by CVE-2021-40418?
It affects 1 product.
Products include Blackmagicdesign Davinci Resolve.
How do I fix CVE-2021-40418?
No fix has been published for CVE-2021-40418 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2021-40418 being exploited?
There is no known exploitation of CVE-2021-40418 in the wild and no public exploit code.
Other vulnerabilities in Blackmagic Design
Sources
Also known as GHSA-c57m-77h8-88cm.