Dell ControlVault3 cv_close arbitrary free vulnerability
The cv_close function in Dell ControlVault3 firmware frees a session pointer after only checking that it lies within a heap range and starts with magic bytes, so an attacker can forge a fake session object and cause an arbitrary free. This can lead to heap corruption and potentially arbitrary code execution in the ARM firmware context.
Originally disclosed on Cisco Talos
An arbitrary free vulnerability exists in the cvclose functionality of Dell ControlVault3 5.14.3.0. A specially crafted ControlVault API call can lead to an arbitrary free.
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 session validation only checks that the pointer is within the heap range and that the first four bytes match a magic string, without verifying that the pointer actually refers to a real session object.
Impact
This enables various forms of heap corruption (use-after-free, corruption of heap metadata) potentially leading to arbitrary code execution in the context of the ARM firmware.
What the attacker needed
Low privilege user on Windows; ability to call ControlVault APIs; knowledge of heap address range
The fix
The vendor released a patch; the text does not describe the fix details.
How it was found
- Create an object on the ControlVault heap using cv_create_object and place fake heap metadata and the magic bytes 'SeSs' at its start.
- Use an API such as cv_get_random to leak the address of the forged object by observing different error codes.
- Call cv_close with the leaked address to free the fake session.
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.
The firmware that runs on a security chip trusts a pointer if it points into a certain memory area and starts with the letters 'SeSs'. An attacker can create their own object with those letters and trick the firmware into freeing it, which corrupts memory. This can crash the device or let the attacker run their own code on the chip.
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.