(Pwn2Own) Synology DiskStation Manager iscsi_snapshot_comm_core Use-After-Free Remote Code Execution Vulnerability
The iscsi_snapshot_comm_core service on Synology DiskStation Manager lacks proper locking when operating on an object, so a pointer can be reused after the memory it points to has been freed. A local attacker without authentication could exploit this, in combination with other flaws, to escalate privileges and run code in the context of the current process.
This vulnerability allows local attackers to execute arbitrary code on affected installations of Synology DS418play. Authentication is not required to exploit this vulnerability.
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 missing lock around operations on a shared object, allowing a pointer to be used after the object was freed.
Impact
A local, unauthenticated attacker could combine this flaw with others to escalate privileges and execute code in the context of the current process; the text does not claim a standalone exploit.
What the attacker needed
Local access to the device; no authentication needed; chained with other flaws
The fix
The vendor issued an update that corrects the vulnerability.
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.
When a program finishes with a piece of memory it normally hands it back so it can be reused. A use-after-free happens when the program keeps a reference to that memory and uses it after handing it back, so it may read or write data that now belongs to something else. Here the service did not coordinate access to a shared object properly, which allowed this to happen, and an attacker on the same machine could try to turn that into running 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.